geonetwork / core-geonetwork

GeoNetwork is a catalog application to manage spatially referenced resources. It provides powerful metadata editing and search functions as well as an interactive web map viewer. It is currently used in numerous Spatial Data Infrastructure initiatives across the world.
http://geonetwork-opensource.org/
GNU General Public License v2.0
420 stars 489 forks source link

Users asked for a template with empty title, but then it is not possible to select it from a list #2503

Open pvgenuchten opened 6 years ago

pvgenuchten commented 6 years ago

Sometimes records are created, some fields modified and then validates correctly, but the title still has the default title from the template. To prevent this, users would like to start with a template with a blank title. However in that case the template can not be selected (by title) on the create metadata page.

Suggestion to allow to store a template without title, but in that case display 'no title' or similar in the create metadata screen

Alternatively, add a schematron rule to verify if the user has changed the default title.

CorMelse commented 6 years ago

Great idea, this would help our users enormously and prevent mistakes about which record is the one just saved

[image: Logo Gissupport] Gissupport Webbased Geografische Informatievoorziening Cor Melse Diederichslaan 19, 3971PA Driebergen-Rijsenburg Website Gissupport http://www.gissupport.nl | M: 0655736842

2018-01-25 15:19 GMT+01:00 paul van genuchten notifications@github.com:

Sometimes records are created, some fields modified and then validates correctly, but the title still has the default title from the template. To prevent this, users would like to start with a template with a blank title. However in that case the template can not be selected (by title) on the create metadata page.

Suggestion to allow to store a template without title, but in that case display 'no title' or similar in the create metadata screen

Alternatively, add a schematron rule to verify if the user has changed the default title.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/geonetwork/core-geonetwork/issues/2503, or mute the thread https://github.com/notifications/unsubscribe-auth/AT2YI3dTyPHNE5S0NcDXaSFqsd2MqVnvks5tOI1tgaJpZM4Rs6pf .

pvgenuchten commented 6 years ago

@josegar74 suggested to introduce an inflate process before opening the editor, which empties the title, but how can you differentiate on that when opening the first time versus opening other times?

fxprunayre commented 6 years ago

On the client side, there is a "justCreated" location parameter. this could trigger title removal on client side ? Maybe better to do on server side as it may be hard to catch the input with the title on client side....

josegar74 commented 6 years ago

You can differentiate this, we're using such approach in a project. So the template has a meaningful name and when creating a new metadata the title is emptied using in the server a xslt.

I'll check to make a PR asap with this feature.

pvgenuchten commented 6 years ago

@josegar74, this approach only works for templates having a title hardcoded in some xslt? So not for any template a user may add?