[GeoNetwork-devel] [GeoNetwork opensource Developer website] #618: Show ISO LanguageCode as first/default option for language selection in metadata editor

#618: Show ISO LanguageCode as first/default option for language selection in
metadata editor
----------------------------------+-----------------------------------------
Reporter: josegar74 | Owner: geonetwork-devel@…
     Type: enhancement | Status: new
Priority: minor | Milestone: v2.6.5
Component: User interface (web) | Version: v2.6.3
Keywords: |
----------------------------------+-----------------------------------------
For language element in ISO metadata is used gmd:LanguageCode by default,
but the metadata editor when adding a new language shows as default option
gco:CharacterString (see attached image).

Attached a patch to show the gmd:LanguageCode as default option.

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/618&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#618: Show ISO LanguageCode as first/default option for language selection in
metadata editor
----------------------------------+-----------------------------------------
Reporter: josegar74 | Owner: geonetwork-devel@…
     Type: enhancement | Status: new
Priority: minor | Milestone: v2.6.5
Component: User interface (web) | Version: v2.6.3
Keywords: |
----------------------------------+-----------------------------------------

Comment(by Fxp):

Maybe it's better to set what is the default substitute (in your case for
gmd:language, the default one will be gmd:LanguageCode) for an element
instead of only reverting the sort order according to the type of element.
It will maybe not work when you have many substitutes (eg. DQ report with
more than 10 substitutes). In this last case, the default could be
gmd:DQ_DomainConsistency for gmd:report which could be the selected one
and the list still in alpha order.

Other points, to apply it to the widget UI, you need to update
metadata/layout.xsl (which is the equivalent of metadata.xsl for the
previous UI)

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/618#comment:1&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#618: Show ISO LanguageCode as first/default option for language selection in
metadata editor
-----------------------------------+----------------------------------------
  Reporter: josegar74 | Owner: geonetwork-devel@…
      Type: enhancement | Status: closed
  Priority: minor | Milestone: v2.6.5
Component: User interface (web) | Version: v2.6.3
Resolution: fixed | Keywords:
-----------------------------------+----------------------------------------
Changes (by josegar74):

  * status: new => closed
  * resolution: => fixed

Comment:

Thanks Francois for the suggestions. Modified and committed according
them.

In config-gui.xml can be defined the default substitutions for each
element (now only for gmd:language):

{{{
<!-- Define the default selection for metadata element substitutions in
the editor -->
<editor-default-substitutions>
     <!-- Default for gmd:language from 2 alternatives:
gco:CharacterString, gmd:LanguageCode -->
     <element name="gmd:language" default="gmd:LanguageCode" />
  </editor-default-substitutions>
}}}

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/618#comment:2&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.