Project

General

Profile

feature request #7705

Improve handling of title/titleCache and multi-language support for Media

Added by Andreas Müller 7 months ago. Updated 7 months ago.

Status:
New
Priority:
New
Assignee:
Category:
taxeditor
Target version:
Start date:
08/30/2018
Due date:
% Done:

0%

Severity:
normal

Description

We need i18n support for Media title and description if i18n support is switched on in preferences.

Also we to edit the title, not the titleCache. It looks like editing the UI field "Title" currently sets the titleCache and sets it to protected. Better it should set the title and the titleCache field is then automatically set and only shown in the section label.

Additionally, an explicit titleCache field (as implemented at other places) should be available but hidden by default. Via preferences you may switch it on (or maybe also by using the advanced Media view).

However, this may create problems with existing data as many of them do have a protected titleCache only and no title set. For these cases we may want to show the titleCache field if hideen according to preferences. Otherwise users may not understand why the label is not changing though they do change the title.

It might be good to implement this in a way that it can be reused as for other classes we may need similar/same implementations: #7707

=====

FoG:

sometimes it automatically copies the image title to the image description and vice versa

AM:

Are you sure it does it vice versa? I could only reproduce from description to title, not the other way round. And this is on purpose because, if no title is explicitly defined, the description is taken as title. Once you enter data into the title it will not happen anymore. At least this is how it should be and what I could reproduce.
A agree that this is maybe unintuitive. Actually it is because the UI simplifies the underlying data modell. The model distinguishes (multi-language) title, (multi-language) description and 1-languages cached title. What you currently see in the UI is the cached title and the description (with single language support only).
It looks like multi-language support is not yet implemented in the Media details view. Something I also realized some time ago and will discuss with the developers (cc) again. Also explicit distinction of cached title and multi-language is not yet implemented. For Media the latter is not so important because the cached title is usually created only by 1 field: the title, if it exists, otherwise the description if it exists, otherwise the file name (last part of URL) if it exists, otherwise Media uuid.
For Flora of Greece this is not relevant as it supports only 1 language. However, I agree that the behavior is maybe sometimes unexpected and will discuss with the developers how the UI can be improved.


Related issues

Related to Edit - feature request #7706: Warning for reused Media is missing Closed 08/30/2018
Related to Edit - feature request #7707: Handle title / titleCache similar to Media in Classification and other classes New 08/30/2018
Related to Edit - feature request #7708: Unify handling of i18n title/representation in identifiable entities New 08/30/2018
Duplicated by Edit - task #6864: [DISCUSS] Title and titleCache in Media Duplicate 08/01/2017

History

#1 Updated by Andreas Müller 7 months ago

  • Description updated (diff)

Katja, Patrick: do you think we can move this ticket to one of the current target versions (5.3 or 5.4)?

#2 Updated by Andreas Müller 7 months ago

  • Description updated (diff)

#3 Updated by Andreas Müller 7 months ago

#4 Updated by Andreas Müller 7 months ago

  • Related to feature request #7707: Handle title / titleCache similar to Media in Classification and other classes added

#5 Updated by Andreas Müller 7 months ago

  • Related to feature request #7708: Unify handling of i18n title/representation in identifiable entities added

#6 Updated by Andreas Müller 7 months ago

  • Duplicated by task #6864: [DISCUSS] Title and titleCache in Media added

#7 Updated by Andreas Müller 7 months ago

  • Description updated (diff)

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)