We're updating the issue view to help you get more done. 

Add an app.conf setting to customize the value set when no preferred label is cataloged

Description

Add an app.conf setting so that a user can define what is set when a record is saved with no preferred label. This will allow users to override the default [BLANK] value with custom text.

Environment

None

Activity

Show:
User known
March 28, 2019, 12:33 AM

Implemented in GitHub/develop

Julia Weist
March 28, 2019, 10:30 AM

I gave this a try and it's setting the title correctly but I'm also getting this message:

Warning: Illegal offset type in isset or empty in /data/metabolic2/admin/app/helpers/utilityHelpers.php on line 70
Warning: Illegal offset type in /data/metabolic2/admin/app/helpers/utilityHelpers.php on line 91

User known
March 28, 2019, 10:47 AM

You had it set in app.conf to [No title], which is actually the syntax for a list with one item "No title" ... except it wants text and not a list so we get errors. I have code in place to catch this now.

Also, we add bracket around whatever text you specify automatically so the ones in app.conf are not needed. My revision allows you to include them or not, and doesn't issue repeated brackets. In other words, whether you have in app.conf "No title" or "[No title]" when saving a record without a label the label is always set to "[No title]"

Julia Weist
March 28, 2019, 11:47 AM

Got it. Looks good.

yelto
March 29, 2019, 5:59 AM

This is a great tweak from a UI point of view. Since you are revisiting these special-meaning labels, could you clarify the interaction with locales and indexing/retrieval of BLANK/SET? There is the locale of the user when entering the data, the language specified for the label being input, the locale of the user searching/accessing the record, all potentially different. In multilingual environments these issues get... confusing. Thanks.

Assignee

User known

Reporter

Julia Weist

Labels

Fix versions

Affects versions

Priority

Major
Configure