[GeoNetwork-devel] [GeoNetwork opensource Developer website] #1231: Geopublish doesnt properly send accentued chars in the title

#1231: Geopublish doesnt properly send accentued chars in the title
---------------------+------------------------------------------------------
Reporter: landry | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: major | Milestone: v2.9.0
Component: General | Version: v2.8.0RC2
Keywords: |
---------------------+------------------------------------------------------
An issue i've been tracking down since some weeks, if my metadata title
contains accentued chars they're not properly sent to GeoServer when
publishing.

{{{
Espaces Naturels Sensibles - Département du Cantal - 2013
}}}

becomes this in GeoServer layer title
{{{
Espaces Naturels Sensibles - D?partement du Cantal - 2013
}}}

GeoServer itself properly supports POST/PUT'ing utf-8 encoded xml (ie curl
-X -H"Content-type: text/xml" -d@/tmp/t.xml
http://localhost:9080/wxs/rest/workspaces/public/datastores/CG15_2013_ENS/featuretypes/CG15_2013_ENS
with /tmp/t.xml containing utf-8 chars sets a correctly accentued
title/abstract).

So the issue is on Geonetwork side - afaict, when GET'ing
geoserver.publisher (action=CREATE) upon publish, the chars are url-
encoded :

{{{
GET
/geocat/srv/fre/geoserver.publisher?_dc=1362049081712&metadataId=355&metadataUuid=a6a5a793-b9d1-4351
-974a-
fffd20644614&metadataTitle=Espaces%20Naturels%20Sensibles%20-%20%5CnD%C3%A9partement%20du%20Cantal%20-%202013
}}}

But when you're in the publisher backend in
web/src/main/java/org/fao/geonet/services/publisher/Do.java Exec() the
metadataTitle doesnt contain utf-8 chars anymore.

{{{
Log.debug(MODULE, "metadataTitle="+metadataTitle);

=>

DEBUG [geonetwork.GeoServerPublisher] - metadataTitle=Espaces Naturels
Sensibles - D?partement du Cantal - 2013
}}}

So at some point the encoding is lost before PUT'ing/POST'ing xml to
GeoServer.

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

#1231: Geopublish doesnt properly send accentued chars in the title
---------------------+------------------------------------------------------
Reporter: landry | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: major | Milestone: v2.9.0
Component: General | Version: v2.8.0RC2
Keywords: |
---------------------+------------------------------------------------------

Comment(by landry):

There is something definitely weird going on, since my tomcat has
URIEncoding properly set to UTF-8 in server.xml, and using
URLDecoder.decode on the query string returns ?? for accentued letters. A
standalone example in a simple java file works.

{{{
import java.net.URLDecoder;
class t {
public static void main (String args) {
try {
     System.out.println( java.net.URLDecoder.decode(args[0],"UTF-8") );
} catch (Exception e) {}
}
}

java t foo=bar%C3%A9%C3%A0
foo=baréà

}}}

After adding some debug code to jeeves' ServiceRequestFactory.java:

{{{
Log.debug(Log.REQUEST,"Decoded queryString "+
URLDecoder.decode(req.getQueryString(), "UTF-8"));
Log.debug(Log.REQUEST, "Query string : "+ req.getQueryString());

[jeeves.request] - Query string : foo=bar%C3%A9%C3%A0
[jeeves.request] - Decoded queryString foo=bar??
}}}

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

#1231: [patch] Geopublish doesnt properly send accentued chars in the title
---------------------+------------------------------------------------------
Reporter: landry | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: major | Milestone: v2.9.0
Component: General | Version: v2.8.0RC2
Keywords: |
---------------------+------------------------------------------------------

Comment(by landry):

Finally nailed it, it was a tricky one - in fact after comparing the
String lenght and converting it as a byte array, realized the utf chars
were still properly in the string, not rendered in debug log. So it was
down the call stack... and StringRequestEntity ctor was the culprit -
apparently it defaults to encode as default HTTP content charset
(ISO-8859-1).

So the following diff properly encodes all the xml sent by sendREST :
{{{
---
a/web/src/main/java/org/fao/geonet/services/publisher/GeoServerRest.java
+++
b/web/src/main/java/org/fao/geonet/services/publisher/GeoServerRest.java
@@ -661,7 +658,7 @@ public class GeoServerRest {
                         }
                         if (postData != null) {
                                 ((PutMethod) m).setRequestEntity(new
StringRequestEntity(
- postData));
+ postData, contentType,
"UTF-8"));
                         }
                 } else if (method.equals(METHOD_DELETE)) {
                         m = new DeleteMethod(url);
@@ -669,7 +666,7 @@ public class GeoServerRest {
                         m = new PostMethod(url);
                         if (postData != null) {
                                 ((PostMethod) m).setRequestEntity(new
StringRequestEntity(
- postData));
+ postData, contentType,
"UTF-8"));
                         }

                 } else {

}}}

And the layer definition in GeoServer correctly gets all the accentued
chars - which are properly displayed in the WMS getCapability document.

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

Hi,
I designed a customized schema plugin based on ISO19139 due to our organization requirement. All new schema packages and new attributes are working properly.
Following is the sample XML data of schema.

<?xml version="1.0" encoding="UTF-8"?>
<gmd:MD_Metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:gmd="http://www.isotc211.org/2005/gmd&quot; xmlns:gco="http://www.isotc211.org/2005/gco&quot; xmlns:gml="http://www.opengis.net/gml&quot; xmlns:xlink="http://www.w3.org/1999/xlink&quot; xmlns:srv="http://www.isotc211.org/2005/srv&quot; xsi:schemaLocation="http://www.isotc211.org/2005/gmd/gmd\.xsd http://www.opengis.net/gml/gml\.xsd&quot;&gt;

    <gmd:fileIdentifier>
        <gco:CharacterString>praveshrai</gco:CharacterString>
    </gmd:fileIdentifier>
    <gmd:language>
        <gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2/&quot; codeListValue="eng"/>
    </gmd:language>
    <gmd:AbstractDescribingData>
        <gmd:MD_METADATA_IDENTIFY_INFO>
            <gco:CharacterString>SOI-OSM Sheet-G 46M/1</gco:CharacterString>
        </gmd:MD_METADATA_IDENTIFY_INFO>
        <gmd:MD_Data_Identify_abstract>
            <gco:CharacterString>The data shows boundary lines sourced from GSI geological map on 1:50,000 scales.The data is in shape file formate.</gco:CharacterString>
        </gmd:MD_Data_Identify_abstract>
    </gmd:AbstractDescribingData>
    <gmd:Citation>
        <gmd:Data_Prepared_By>
            <gco:CharacterString>Geological Survey of India</gco:CharacterString>
        </gmd:Data_Prepared_By>
        <gmd:Original_Source>
            <gco:CharacterString>1:50K Geological Map</gco:CharacterString>
        </gmd:Original_Source>
        <gmd:Source_Scale_Date>
            <gco:CharacterString>1:50K</gco:CharacterString>
        </gmd:Source_Scale_Date>
        <gmd:Mapping_Year>
            <gco:CharacterString>1982</gco:CharacterString>
        </gmd:Mapping_Year>
        <gmd:Digitizing_Year>
            <gco:CharacterString>2006</gco:CharacterString>
        </gmd:Digitizing_Year>
        <gmd:survey_year>
            <gco:CharacterString>1962</gco:CharacterString>
        </gmd:survey_year>
        <gmd:Lineage>
            <gco:CharacterString> G 46M/1</gco:CharacterString>
        </gmd:Lineage>
        <gmd:Associated_project_data>
            <gco:CharacterString>NA</gco:CharacterString>
        </gmd:Associated_project_data>
        <gmd:Associated_Publications>
            <gco:CharacterString>NA</gco:CharacterString>
        </gmd:Associated_Publications>
        <gmd:Person_Email>
            <gco:CharacterString>hod.ner@anonymised.com</gco:CharacterString>
        </gmd:Person_Email>
        <gmd:Person_Affiliation>
            <gco:CharacterString>Centre Govt.</gco:CharacterString>
        </gmd:Person_Affiliation>
        <gmd:Corporate_Name>
            <gco:CharacterString>Geological Survey of India</gco:CharacterString>
        </gmd:Corporate_Name>
        <gmd:Corporate_Address>
            <gco:CharacterString>Dy. Director General, Geological Survey of India, 'Shylla Building', Nongrim Hills, Shillong, Meghalaya-793003</gco:CharacterString>
        </gmd:Corporate_Address>
    </gmd:Citation>
    <gmd:coverageElement>
        <gmd:Coverage>
            <gmd:geographicElement>
                <gmd:EX_GeographicBoundingBox>
                    <gmd:xmin>
                        <gco:Decimal>90.004532</gco:Decimal>
                    </gmd:xmin>
                    <gmd:xmax>
                        <gco:Decimal>90.237898</gco:Decimal>
                    </gmd:xmax>
                    <gmd:ymin>
                        <gco:Decimal>25.779184</gco:Decimal>
                    </gmd:ymin>
                    <gmd:ymax>
                        <gco:Decimal>25.92735</gco:Decimal>
                    </gmd:ymax>
                </gmd:EX_GeographicBoundingBox>
            </gmd:geographicElement>
            <gmd:tlate>
                <gco:CharacterString>NA</gco:CharacterString>
            </gmd:tlate>
            <gmd:tearly>
                <gco:CharacterString>NA</gco:CharacterString>
            </gmd:tearly>
            <gmd:Place_Name>
                <gco:CharacterString>Shillong, Meghalaya</gco:CharacterString>
            </gmd:Place_Name>
            <gmd:Period_Name>
                <gco:CharacterString>NA</gco:CharacterString>
            </gmd:Period_Name>
            <gmd:spatial_resolution>
                <gco:CharacterString>NA</gco:CharacterString>
            </gmd:spatial_resolution>
            <gmd:spatial_georeference>
                <gco:CharacterString>NA</gco:CharacterString>
            </gmd:spatial_georeference>
            <gmd:spatial_aggregation>
                <gco:CharacterString>G 46M/1</gco:CharacterString>
            </gmd:spatial_aggregation>
            <gmd:temporal_precision>
                <gco:CharacterString>NA</gco:CharacterString>
            </gmd:temporal_precision>
            <gmd:temporal_interval>
                <gco:CharacterString>NA</gco:CharacterString>
            </gmd:temporal_interval>
            <gmd:temporal_aggregation>
                <gco:CharacterString>NA</gco:CharacterString>
            </gmd:temporal_aggregation>
            <gmd:note>
                <gco:CharacterString>NA</gco:CharacterString>
            </gmd:note>
            <gmd:Alternative_Metadata>
                <gco:CharacterString>NA</gco:CharacterString>
            </gmd:Alternative_Metadata>
        </gmd:Coverage>
    </gmd:coverageElement>
    <gmd:DataIdentificationInformation>
        <gmd:id>
            <gco:CharacterString>praveshrai</gco:CharacterString>
        </gmd:id>
        <gmd:Name_of_Dataset>
            <gco:CharacterString>Map50K-Dyke</gco:CharacterString>
        </gmd:Name_of_Dataset>
        <gmd:Name_of_data>
            <gco:CharacterString>Map50K-Dyke-1982-G 46M/1</gco:CharacterString>
        </gmd:Name_of_data>
        <gmd:Theme>
            <gco:CharacterString>Geology</gco:CharacterString>
        </gmd:Theme>
        <gmd:Keywords>
            <gco:CharacterString>1:50K, Dyke, GSI</gco:CharacterString>
        </gmd:Keywords>
        <gmd:Access_Constraints>
            <gco:CharacterString>As per GSI Data Dissemination Policy</gco:CharacterString>
        </gmd:Access_Constraints>
        <gmd:Use_Constraints>
            <gco:CharacterString>As per GSI Data Dissemination Policy</gco:CharacterString>
        </gmd:Use_Constraints>
        <gmd:Purpose_of_creating_Data>
            <gco:CharacterString>To generate digital geological database</gco:CharacterString>
        </gmd:Purpose_of_creating_Data>
        <gmd:Data_Type>
            <gco:CharacterString>Vector</gco:CharacterString>
        </gmd:Data_Type>
        <gmd:Agency_Id>
            <gco:CharacterString>2</gco:CharacterString>
        </gmd:Agency_Id>
        <Agency_Name>
            <gco:CharacterString>Geological Survey of India</gco:CharacterString>
        </Agency_Name>
    </gmd:DataIdentificationInformation>
    <gmd:ContactInformation>
        <gmd:Contact_Person>
            <gco:CharacterString>Director, Geodata Division</gco:CharacterString>
        </gmd:Contact_Person>
        <gmd:Organization>
            <gco:CharacterString>Geological Survey of India</gco:CharacterString>
        </gmd:Organization>
        <gmd:Mailing_Address>
            <gco:CharacterString>Dy. Director General, Geological Survey of India, 'Shylla Building', Nongrim Hills, Shillong, Meghalaya-793003</gco:CharacterString>
        </gmd:Mailing_Address>
        <gmd:City_locality>
            <gco:CharacterString>Shillong, Meghalaya</gco:CharacterString>
        </gmd:City_locality>
        <gmd:Country>
            <gco:CharacterString>India</gco:CharacterString>
        </gmd:Country>
        <gmd:Contact_Telephone>
            <gco:CharacterString>(0364)2520228</gco:CharacterString>
        </gmd:Contact_Telephone>
        <gmd:Contact_Fax>
            <gco:CharacterString>0364-2520033</gco:CharacterString>
        </gmd:Contact_Fax>
        <gmd:Contact_Email>
            <gco:CharacterString>hod.ner@anonymised.com</gco:CharacterString>
        </gmd:Contact_Email>
    </gmd:ContactInformation>
    <gmd:MetadataDateStamp>
        <gmd:MD_Metadata_date_Stamp>
            <gco:CharacterString>2006</gco:CharacterString>
        </gmd:MD_Metadata_date_Stamp>
        <gmd:ISO08601>
            <gco:CharacterString>NA</gco:CharacterString>
        </gmd:ISO08601>
    </gmd:MetadataDateStamp>
    <gmd:DatasetTopicCategory>
        <gmd:MD_METADATA_IDENTIFY_INFO>
            <gco:CharacterString>SOI-OSM Sheet-G 46M/1</gco:CharacterString>
        </gmd:MD_METADATA_IDENTIFY_INFO>
        <gmd:MD_Data_Identify_Category>
            <gco:CharacterString>Geoscientific Information</gco:CharacterString>
        </gmd:MD_Data_Identify_Category>
    </gmd:DatasetTopicCategory>
    <gmd:Language>
        <gmd:language_ISO0639_2Bsh>
            <gco:CharacterString>English</gco:CharacterString>
        </gmd:language_ISO0639_2Bsh>
    </gmd:Language>
    <gmd:ForImageData>
        <gmd:Name_of_the_Satellite>
            <gco:CharacterString>NA</gco:CharacterString>
        </gmd:Name_of_the_Satellite>
        <gmd:Sensor>
            <gco:CharacterString>NA</gco:CharacterString>
        </gmd:Sensor>
        <gmd:Path>
            <gco:CharacterString>NA</gco:CharacterString>
        </gmd:Path>
        <gmd:Row_no>
            <gco:CharacterString>NA</gco:CharacterString>
        </gmd:Row_no>
        <gmd:Image_Acquired_From>
            <gco:CharacterString>NA</gco:CharacterString>
        </gmd:Image_Acquired_From>
        <gmd:Date_and_Time_of_Image>
            <gco:CharacterString>NA</gco:CharacterString>
        </gmd:Date_and_Time_of_Image>
        <gmd:File_Format>
            <gco:CharacterString>NA</gco:CharacterString>
        </gmd:File_Format>
        <gmd:Bits_per_Pixel>
            <gco:CharacterString>NA</gco:CharacterString>
        </gmd:Bits_per_Pixel>
        <gmd:Spatial_Resolution>
            <gco:CharacterString>NA</gco:CharacterString>
        </gmd:Spatial_Resolution>
        <gmd:Spatial_Resolution_Unit>
            <gco:CharacterString>NA</gco:CharacterString>
        </gmd:Spatial_Resolution_Unit>
        <gmd:Number_of_Bands>
            <gco:CharacterString>NA</gco:CharacterString>
        </gmd:Number_of_Bands>
        <gmd:Number_of_Rows>
            <gco:CharacterString>NA</gco:CharacterString>
        </gmd:Number_of_Rows>
        <gmd:Number_of_Cols>
            <gco:CharacterString>NA</gco:CharacterString>
        </gmd:Number_of_Cols>
    </gmd:ForImageData>
</gmd:MD_Metadata>

I have following issues to use search functionality-

1- With GN search GUI, I am not able to see Title and abstract fields in search result, because my schema has different fields,
  * How to map my customized fields to be displayed metadata search results in GN GUI,I had tried to configure config-csw.xml, config-lucene.xml, index-fields.xml, with following setting-

Config-csw.xml-
<parameter name="NSDITheme" field="Theme" type="SupportedISOQueryables">
                    <xpath schema="iso19139" path="gmd:DataIdentificationInformation/gmd:Theme/gco:CharacterString"/>
</parameter>

config-lucene.xml- dump field section
    
  <field name="NSDITheme" tagName="Theme"/>
    </dumpFields>

Index-fields

<xsl:for-each select="gmd:DataIdentificationInformation/gmd:Theme/gco:CharacterString">
    <Field name="NSDITheme" string="{string(.)}" store="true" index="true"/>
  </xsl:for-each>

2- On using xml.search and q query search as http://localhost:8080/geonetwork/srv/en/q?fast=index , I am not able to get my schemas' dumped fields configured in config-lucene.xml

Any suggestions and help is highly appreciable.

Thanks and regards

Vimlesh Bahuguna

Hi Vimal

1- With GN search GUI, I am not able to see Title and abstract fields in search result, because my schema has different fields,

You need to index title, _title and abstract lucene fields for your profile. See iso1939 index-fields.xsl for these fields and manage about similar indexing using the fields in your profile that have this information.

2- On using xml.search and q query search as http://localhost:8080/geonetwork/srv/en/q?fast=index , I am not able to get my schemas’ dumped fields configured in config-lucene.xml

To get the fields in q service you can add your fields in WEB-INF/config-lucene.xml , inside the dumpFields section. To get them in xml.search if not wrong requires Java changes (see buildInfoElem in DataManager).

Regards,
Jose García

On Fri, Mar 1, 2013 at 7:37 AM, Vimal Bahuguna <bahuguna.vimal@anonymised.com> wrote:

Hi,
I designed a customized schema plugin based on ISO19139 due to our organization requirement. All new schema packages and new attributes are working properly.
Following is the sample XML data of schema.

<?xml version="1.0" encoding="UTF-8"?>

<gmd:MD_Metadata xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:gmd=“http://www.isotc211.org/2005/gmd” xmlns:gco=“http://www.isotc211.org/2005/gco” xmlns:gml=“http://www.opengis.net/gml” xmlns:xlink=“http://www.w3.org/1999/xlink” xmlns:srv=“http://www.isotc211.org/2005/srv” xsi:schemaLocation=“http://www.isotc211.org/2005/gmd http://www.isotc211.org/2005/gmd/gmd.xsd http://www.opengis.net/gml http://www.opengis.net/gml/gml.xsd”>

gmd:fileIdentifier
gco:CharacterStringpraveshrai</gco:CharacterString>
</gmd:fileIdentifier>
gmd:language
<gmd:LanguageCode codeList=“http://www.loc.gov/standards/iso639-2/” codeListValue=“eng”/>
</gmd:language>
gmd:AbstractDescribingData
gmd:MD_METADATA_IDENTIFY_INFO
gco:CharacterStringSOI-OSM Sheet-G 46M/1</gco:CharacterString>
</gmd:MD_METADATA_IDENTIFY_INFO>
gmd:MD_Data_Identify_abstract
gco:CharacterStringThe data shows boundary lines sourced from GSI geological map on 1:50,000 scales.The data is in shape file formate.</gco:CharacterString>
</gmd:MD_Data_Identify_abstract>
</gmd:AbstractDescribingData>
gmd:Citation
gmd:Data_Prepared_By
gco:CharacterStringGeological Survey of India</gco:CharacterString>
</gmd:Data_Prepared_By>
gmd:Original_Source
gco:CharacterString1:50K Geological Map</gco:CharacterString>
</gmd:Original_Source>
gmd:Source_Scale_Date
gco:CharacterString1:50K</gco:CharacterString>
</gmd:Source_Scale_Date>
gmd:Mapping_Year
gco:CharacterString1982</gco:CharacterString>
</gmd:Mapping_Year>
gmd:Digitizing_Year
gco:CharacterString2006</gco:CharacterString>
</gmd:Digitizing_Year>
gmd:survey_year
gco:CharacterString1962</gco:CharacterString>
</gmd:survey_year>
gmd:Lineage
gco:CharacterString G 46M/1</gco:CharacterString>
</gmd:Lineage>
gmd:Associated_project_data
gco:CharacterStringNA</gco:CharacterString>
</gmd:Associated_project_data>
gmd:Associated_Publications
gco:CharacterStringNA</gco:CharacterString>
</gmd:Associated_Publications>
gmd:Person_Email
gco:CharacterStringhod.ner@anonymised.com</gco:CharacterString>
</gmd:Person_Email>
gmd:Person_Affiliation
gco:CharacterStringCentre Govt.</gco:CharacterString>
</gmd:Person_Affiliation>
gmd:Corporate_Name
gco:CharacterStringGeological Survey of India</gco:CharacterString>
</gmd:Corporate_Name>
gmd:Corporate_Address
gco:CharacterStringDy. Director General, Geological Survey of India, ‘Shylla Building’, Nongrim Hills, Shillong, Meghalaya-793003</gco:CharacterString>
</gmd:Corporate_Address>
</gmd:Citation>
gmd:coverageElement
gmd:Coverage
gmd:geographicElement
gmd:EX_GeographicBoundingBox
gmd:xmin
gco:Decimal90.004532</gco:Decimal>
</gmd:xmin>
gmd:xmax
gco:Decimal90.237898</gco:Decimal>
</gmd:xmax>
gmd:ymin
gco:Decimal25.779184</gco:Decimal>
</gmd:ymin>
gmd:ymax
gco:Decimal25.92735</gco:Decimal>
</gmd:ymax>
</gmd:EX_GeographicBoundingBox>
</gmd:geographicElement>
gmd:tlate
gco:CharacterStringNA</gco:CharacterString>
</gmd:tlate>
gmd:tearly
gco:CharacterStringNA</gco:CharacterString>
</gmd:tearly>
gmd:Place_Name
gco:CharacterStringShillong, Meghalaya</gco:CharacterString>
</gmd:Place_Name>
gmd:Period_Name
gco:CharacterStringNA</gco:CharacterString>
</gmd:Period_Name>
gmd:spatial_resolution
gco:CharacterStringNA</gco:CharacterString>
</gmd:spatial_resolution>
gmd:spatial_georeference
gco:CharacterStringNA</gco:CharacterString>
</gmd:spatial_georeference>
gmd:spatial_aggregation
gco:CharacterStringG 46M/1</gco:CharacterString>
</gmd:spatial_aggregation>
gmd:temporal_precision
gco:CharacterStringNA</gco:CharacterString>
</gmd:temporal_precision>
gmd:temporal_interval
gco:CharacterStringNA</gco:CharacterString>
</gmd:temporal_interval>
gmd:temporal_aggregation
gco:CharacterStringNA</gco:CharacterString>
</gmd:temporal_aggregation>
gmd:note
gco:CharacterStringNA</gco:CharacterString>
</gmd:note>
gmd:Alternative_Metadata
gco:CharacterStringNA</gco:CharacterString>
</gmd:Alternative_Metadata>
</gmd:Coverage>
</gmd:coverageElement>
gmd:DataIdentificationInformation
gmd:id
gco:CharacterStringpraveshrai</gco:CharacterString>
</gmd:id>
gmd:Name_of_Dataset
gco:CharacterStringMap50K-Dyke</gco:CharacterString>
</gmd:Name_of_Dataset>
gmd:Name_of_data
gco:CharacterStringMap50K-Dyke-1982-G 46M/1</gco:CharacterString>
</gmd:Name_of_data>
gmd:Theme
gco:CharacterStringGeology</gco:CharacterString>
</gmd:Theme>
gmd:Keywords
gco:CharacterString1:50K, Dyke, GSI</gco:CharacterString>
</gmd:Keywords>
gmd:Access_Constraints
gco:CharacterStringAs per GSI Data Dissemination Policy</gco:CharacterString>
</gmd:Access_Constraints>
gmd:Use_Constraints
gco:CharacterStringAs per GSI Data Dissemination Policy</gco:CharacterString>
</gmd:Use_Constraints>
gmd:Purpose_of_creating_Data
gco:CharacterStringTo generate digital geological database</gco:CharacterString>
</gmd:Purpose_of_creating_Data>
gmd:Data_Type
gco:CharacterStringVector</gco:CharacterString>
</gmd:Data_Type>
gmd:Agency_Id
gco:CharacterString2</gco:CharacterString>
</gmd:Agency_Id>
<Agency_Name>
gco:CharacterStringGeological Survey of India</gco:CharacterString>
</Agency_Name>
</gmd:DataIdentificationInformation>
gmd:ContactInformation
gmd:Contact_Person
gco:CharacterStringDirector, Geodata Division</gco:CharacterString>
</gmd:Contact_Person>
gmd:Organization
gco:CharacterStringGeological Survey of India</gco:CharacterString>
</gmd:Organization>
gmd:Mailing_Address
gco:CharacterStringDy. Director General, Geological Survey of India, ‘Shylla Building’, Nongrim Hills, Shillong, Meghalaya-793003</gco:CharacterString>
</gmd:Mailing_Address>
gmd:City_locality
gco:CharacterStringShillong, Meghalaya</gco:CharacterString>
</gmd:City_locality>
gmd:Country
gco:CharacterStringIndia</gco:CharacterString>
</gmd:Country>
gmd:Contact_Telephone
gco:CharacterString(0364)2520228</gco:CharacterString>
</gmd:Contact_Telephone>
gmd:Contact_Fax
gco:CharacterString0364-2520033</gco:CharacterString>
</gmd:Contact_Fax>
gmd:Contact_Email
gco:CharacterStringhod.ner@anonymised.com</gco:CharacterString>
</gmd:Contact_Email>
</gmd:ContactInformation>
gmd:MetadataDateStamp
gmd:MD_Metadata_date_Stamp
gco:CharacterString2006</gco:CharacterString>
</gmd:MD_Metadata_date_Stamp>
gmd:ISO08601
gco:CharacterStringNA</gco:CharacterString>
</gmd:ISO08601>
</gmd:MetadataDateStamp>
gmd:DatasetTopicCategory
gmd:MD_METADATA_IDENTIFY_INFO
gco:CharacterStringSOI-OSM Sheet-G 46M/1</gco:CharacterString>
</gmd:MD_METADATA_IDENTIFY_INFO>
gmd:MD_Data_Identify_Category
gco:CharacterStringGeoscientific Information</gco:CharacterString>
</gmd:MD_Data_Identify_Category>
</gmd:DatasetTopicCategory>
gmd:Language
gmd:language_ISO0639_2Bsh
gco:CharacterStringEnglish</gco:CharacterString>
</gmd:language_ISO0639_2Bsh>
</gmd:Language>
gmd:ForImageData
gmd:Name_of_the_Satellite
gco:CharacterStringNA</gco:CharacterString>
</gmd:Name_of_the_Satellite>
gmd:Sensor
gco:CharacterStringNA</gco:CharacterString>
</gmd:Sensor>
gmd:Path
gco:CharacterStringNA</gco:CharacterString>
</gmd:Path>
gmd:Row_no
gco:CharacterStringNA</gco:CharacterString>
</gmd:Row_no>
gmd:Image_Acquired_From
gco:CharacterStringNA</gco:CharacterString>
</gmd:Image_Acquired_From>
gmd:Date_and_Time_of_Image
gco:CharacterStringNA</gco:CharacterString>
</gmd:Date_and_Time_of_Image>
gmd:File_Format
gco:CharacterStringNA</gco:CharacterString>
</gmd:File_Format>
gmd:Bits_per_Pixel
gco:CharacterStringNA</gco:CharacterString>
</gmd:Bits_per_Pixel>
gmd:Spatial_Resolution
gco:CharacterStringNA</gco:CharacterString>
</gmd:Spatial_Resolution>
gmd:Spatial_Resolution_Unit
gco:CharacterStringNA</gco:CharacterString>
</gmd:Spatial_Resolution_Unit>
gmd:Number_of_Bands
gco:CharacterStringNA</gco:CharacterString>
</gmd:Number_of_Bands>
gmd:Number_of_Rows
gco:CharacterStringNA</gco:CharacterString>
</gmd:Number_of_Rows>
gmd:Number_of_Cols
gco:CharacterStringNA</gco:CharacterString>
</gmd:Number_of_Cols>
</gmd:ForImageData>
</gmd:MD_Metadata>

I have following issues to use search functionality-

1- With GN search GUI, I am not able to see Title and abstract fields in search result, because my schema has different fields,

  • How to map my customized fields to be displayed metadata search results in GN GUI,I had tried to configure config-csw.xml, config-lucene.xml, index-fields.xml, with following setting-

Config-csw.xml-


config-lucene.xml- dump field section

Index-fields

<xsl:for-each select=“gmd:DataIdentificationInformation/gmd:Theme/gco:CharacterString”>

</xsl:for-each>

2- On using xml.search and q query search as http://localhost:8080/geonetwork/srv/en/q?fast=index , I am not able to get my schemas’ dumped fields configured in config-lucene.xml

Any suggestions and help is highly appreciable.

Thanks and regards

Vimlesh Bahuguna


Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork


GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on GeoServer and GeoNetwork. Visit http://geocat.net for details.


Jose García
GeoCat bv
Veenderweg 13
6721 WD Bennekom
The Netherlands
http://GeoCat.net

#1231: [patch] Geopublish doesnt properly send accentued chars in the title
----------------------+-----------------------------------------------------
  Reporter: landry | Owner: geonetwork-devel@…
      Type: defect | Status: closed
  Priority: major | Milestone: v2.9.0
Component: General | Version: v2.8.0RC2
Resolution: fixed | Keywords:
----------------------+-----------------------------------------------------
Changes (by ianwallen):

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

Comment:

Commit in master ad83740d136a7f7423388b785489e3560a9b0db8

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