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
426 stars 489 forks source link

Tooltip 1/∞ tags allowed masks display of thesaurus definition tooltip #5157

Open jodygarnett opened 3 years ago

jodygarnett commented 3 years ago

Is your feature request related to a problem? Please describe.

I am frustrated doing keyword data entry, trying to determine keyword meaning and applicability.

The Canada Core Subject Thesaurus shown below includes extensive descriptions of each keyword, but these are not shown.

Describe the solution you'd like

Display Thesaurus definition as tooltip when selecting keywords to include.

Describe alternatives you've considered

Expand the list of displayed keywords to show both the keyword (in bold) and the definition (normal or grayed out).

I suspect the definitions are too long for this approach, the ability of a tooltip to be shown over multiple lines makes it a more appropriate approach.

Additional context

image

pvgenuchten commented 3 years ago

did you try with data-display-definition="true"

https://github.com/metadata101/iso19139.nl.geografie.2.0.0/blob/3b0ab272c25d7452a0cfede659344a00cafd03b7/src/main/plugin/iso19139.nl.geografie.2.0.0/layout/config-editor.xml#L179

josegar74 commented 3 years ago

That is used in a directive to autocomplete "standard" fields like the license field with values from a thesaurus, etc, using the directive gnKeywordPicker, but the keyword widget uses gnKeywordSelector that doesn't have that.

https://github.com/geonetwork/core-geonetwork/blob/4029f5546ec39b383c0d37400274f66568d8ed96/web-ui/src/main/resources/catalog/components/thesaurus/ThesaurusDirective.js#L692-L699

Not really a tooltip, but a text displayed in the suggestion list

vs

https://github.com/geonetwork/core-geonetwork/blob/4029f5546ec39b383c0d37400274f66568d8ed96/web-ui/src/main/resources/catalog/components/thesaurus/ThesaurusDirective.js#L410-L414

jodygarnett commented 3 years ago

Is there a good way forward on this?