[GeoNetwork-devel] [GeoNetwork opensource Developer website] #687: Add support to complex language range in keyword search

#687: Add support to complex language range in keyword search
---------------------+------------------------------------------------------
Reporter: fxp | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: major | Milestone: v2.7.0
Component: General | Version:
Keywords: |
---------------------+------------------------------------------------------
Currently, GeoNetwork use 2 letters code and search for keyword in current
GUI language. If thesaurus use more complex language range (rfc4647),
keyword search return nothing.

Example:
{{{
  <skos:Concept
rdf:about="http://vocab.nerc.ac.uk/collection/A02/current/Education&quot;&gt;
         <dc:identifier>SDN:A02:3:Education</dc:identifier>
         <skos:prefLabel xml:lang="en-GB">Public Education</skos:prefLabel>
         <skos:altLabel/>
         <skos:definition xml:lang="en-GB">Public
Education</skos:definition>
         <skos:comment>accepted</skos:comment>
         <dc:date>2011-08-15 11:58:51.0</dc:date>
         <skos:broadMatch
rdf:resource="http://vocab.nerc.ac.uk/collection/A01/current/Legislation_and_Policy&quot;/&gt;
         <skos:broadMatch
rdf:resource="http://vocab.nerc.ac.uk/collection/A03/current/Research&quot;/&gt;
         <skos:broadTransitive
rdf:resource="http://vocab.nerc.ac.uk/collection/A01/current/Legislation_and_Policy&quot;/&gt;
         <skos:broadTransitive
rdf:resource="http://vocab.nerc.ac.uk/collection/A03/current/Research&quot;
         />
     </skos:Concept>
}}}

Changes: Use wildcard operator to support more complex language range
syntax. Example search for en* will match xml:lang="en-GB"

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/687&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.

#687: Add support to complex language range in keyword search
----------------------+-----------------------------------------------------
  Reporter: fxp | Owner: geonetwork-devel@…
      Type: defect | Status: closed
  Priority: major | Milestone: v2.7.0
Component: General | Version:
Resolution: fixed | Keywords:
----------------------+-----------------------------------------------------
Changes (by fxp):

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

Comment:

Committed revision 8474.

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/687#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.