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

Editor config / Define which fields can be populated from thesaurus and choose encoding mode eg. gmx:anchor #3044

Closed pvgenuchten closed 7 months ago

pvgenuchten commented 6 years ago

Is your feature request related to a problem? Please describe. inspire md profile v2 recommends the use of anchors linking to common thesauri (from inspire registry), for example for accessConstraints, spatial reference system, onlineresource/description.

Describe the solution you'd like would be interesting to link a thesaurus to the relevant gmx:anchor field, so users can select a value from a pull down, in stead of inserting the value and the uri manually

i wonder if we should also introduce a 'other' value, to allow users to insert an alternative value manually

pvgenuchten commented 6 years ago

suggestion from @josegar74: a combobox, for anchors that use a certain codelist, to allow users to add any string (and add it as gco:characterString) or select a value from dropdown, which adds the gmx:anchor with a link to the relevant codelist, config in config_editor should be something like

<field xpath="..." type="anchorSelector" codelist="thesaurus:inspire:mediatypes"/>
fxprunayre commented 6 years ago

Should this be defined at a field level for all views or only per view ?

An option would also be

<fields>
    <for name="gmd:useLimitation"
         use="data-gn-keyword-picker">
      <directiveAttributes data-thesaurus-key="external.theme.httpinspireeceuropaeucodelistEconomicActivityValue"/>
    </for>

or maybe both.

And then gn-keyword-picker should be able to deal with a couple of cases: