[GeoNetwork-users] Record title is not being recognized

I experienced something similar adding records that were created using geotoolkit. I found the problem by reading (and understanding) the validation messages that are generated when a record is validated. One of my validation messages stated that the title element was not recognized. I fixed the problem by adjusting my geotoolkit code so that I created an identification record that used DataIdentification (http://www.geoapi.org/snapshot/javadoc/org/opengis/metadata/identification/DataIdentification.html) rather than Identification (http://www.geoapi.org/snapshot/javadoc/org/opengis/metadata/identification/Identification.html).

Cheers
Brad

Brad Lee
Research Projects Officer
Intelligent Sensing and Systems Laboratory
CSIRO ICT Centre
Phone: +61 3 6232 5510 | Fax: +61 3 6232 5229 | Mobile: 0432 992 469
brad.lee@anonymised.com<mailto:brad.lee@anonymised.com> | www.csiro.au | http://research.ict.csiro.au/research/labs/tasictc <www.csiro.au/science/TasICTCentre.html> | http://www.ict.csiro.au/staff/brad.lee/
Castray Esplanade, Battery Point, Hobart, TAS
GPO Box 1538, Hobart TAS 7001, Australia
PLEASE NOTE
The information contained in this email may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this email in error, please delete it immediately and notify the sender by return email. Thank you. To the extent permitted by law, CSIRO does not represent, warrant and/or guarantee that the integrity of this communication has been maintained or that the communication is free of errors, virus, interception or interference.
Please consider the environment before printing this email.

[GeoNetwork-users] Record title is not being recognized
From: Ricardo Filipe Soares Garcia da <ricardo.silva@anonymised.com> - 2012-04-23 16:32

Hello list

I've set up a geonetwork instance using Postgis as the database. I

have a lot of data that I want to insert into the catalog, so I'm

using a custom script to create XML metadata files and put them in

geonetwork with CSW Insert requests.

This procedure seems to work nicely and I even validated a sample XML

file for INSPIRE compliance using [1] so I am assuming my XML files

are valid.

Now, having put some records in Geonetwork, I am trying to find them

using the GUI.

The problem: When trying to filter my metadata by title, geonetwork

always comes out with zero results.

In order to verify what could be the problem, I've logged in to the

postgresql database and tried snooping around. I am guessing that each

record's title should be stored in the 'title' column of the

'metadata' table, but (at least in my case) this column is empty.

Executing this SQL command in psql;

SELECT uuid, title FROM metadata;

I get 439 results (the number of test records I've uploaded through

geonetworks CSW) and each of them has valid uuid and a blank title.

Is this the reason why my searches through the GUI come out empty? If

so, I guess I am missing some kind of element or attribute in the XML

files that I generate and then feed to geonetwork, that it would use

for extracting the record's title. At the same time it seems strange,

because ISO19115 already has a mandatory element for a record's title

and I guess geonetwork would extract the title from there.

Can someone help me out?

[1] - http://www.inspire-geoportal.eu/INSPIREValidatorClient/validate.do

--

___________________________ ___ __

Ricardo Garcia Silva

Added the following record

https://docs.google.com/open?id=0B1BfLSdRW9LoQmJmRE9QeWVYVFE

Added this record and tried to set the first as the parent

https://docs.google.com/open?id=0B1BfLSdRW9LoNGxZbVNpOS1iTjg

Related metadata selection screen:
- In 2.6.4 the first record is displayed and can be set as parent.
- In 2.7 only the second (self) record is shown and, it can be set as the parent (which doesn't make sense?).

Cannot use 2.7 because of previous posting (Adding parent using Related metadata selection not finding records).

Tried setting context based on instructions at http://trac.osgeo.org/geonetwork/wiki/HowToRunMultipleGeonetworkInstancesUnderJetty:

Jetty.xml

    <Call name="addLifeCycle">

      <Arg>

        <New class="org.mortbay.jetty.deployer.ContextDeployer">

          <Set name="contexts"><Ref id="Contexts"/></Set>

          <Set name="configurationDir"><SystemProperty name="jetty.home" default="."/>/contexts</Set>

          <Set name="scanInterval">5</Set>

        </New>

      </Arg>

    </Call>

Jetty/contexts/geonetwork.xml

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd&quot;&gt;

<Configure class="org.mortbay.jetty.webapp.WebAppContext">

    <Set name="contextPath">/sensorweb4/geonetwork</Set>

      <Set name="war"><SystemProperty name="jetty.home" default="."/>/../web/geonetwork/</Set>

</Configure>

When attempting to access with this path a 404 is produced.

Log is available at https://docs.google.com/open?id=0B1BfLSdRW9LoZmtkaFdEQkZmVDg

The log demonstrates that the alternative context has been found and set.

This works in 2.7 which is using version 7 of jetty:

jetty-webapps.xml

<?xml version="1.0"?>

<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd&quot;&gt;

<!-- =============================================================== -->

<!-- Add a WebAppProvider to the deployment manager -->

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

<!-- This scans the webapps directory for war files and directories -->

<!-- to deploy. -->

<!-- This configuration must be used with jetty-deploy.xml, which -->

<!-- creates the deployment manager instance -->

<!-- =============================================================== -->

<Configure id="Server" class="org.eclipse.jetty.server.Server">

    <Ref id="DeploymentManager">

          <Call id="webappprovider" name="addAppProvider">

            <Arg>

              <New class="org.eclipse.jetty.deploy.providers.WebAppProvider">

                <Set name="monitoredDir"><Property name="jetty.home" default="." />/../web</Set>

                <Set name="defaultsDescriptor"><Property name="jetty.home" default="."/>/etc/webdefault.xml</Set>

                <Set name="scanInterval">1</Set>

                <Set name="contextXmlDir"><Property name="jetty.home" default="." />/contexts</Set>

                <Set name="extractWars">true</Set>

              </New>

            </Arg>

          </Call>

    </Ref>

</Configure>

jetty/contexts/geonetwork.xml

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd&quot;&gt;

<Configure class="org.eclipse.jetty.webapp.WebAppContext">

   <Set name="contextPath">/sensorweb4/geonetwork</Set>

   <Set name="war"><SystemProperty name="jetty.home" default="."/>/../web/geonetwork/</Set>

</Configure>

My work around at the moment:

Run 2.6.4 code using jetty 7. Installed 2.6.4 and then replaced 2.6.4 geonetwork/bin and geonetwork/jetty directories with same directories from 2.7 install.

I have apache sitting on top of all this which is a standard proxy although, the jetty configuration somewhat different to the tomcat configuration:

ProxyPass /sensorweb4/geonetwork http://serverurl:8192/sensorweb4/geonetwork

ProxyPassReverse /sensorweb4/geonetwork http://serverurl:8192/sensorweb4/geonetwork

ProxyPassReverseCookiePath /sensorweb4/geonetwork /

With installations of other applications using tomcat I have used:

ProxyPass /sensorweb4/app1 http://serverurl:port/app1

ProxyPassReverse /sensorweb4/app1 http://serverurl:port/app1

ProxyPassReverseCookiePath sensorweb4/app1 /

Brad Lee
Research Projects Officer
Intelligent Sensing and Systems Laboratory
CSIRO ICT Centre
Phone: +61 3 6232 5510 | Fax: +61 3 6232 5229 | Mobile: 0432 992 469
brad.lee@anonymised.com<mailto:brad.lee@anonymised.com> | www.csiro.au | http://research.ict.csiro.au/research/labs/tasictc <www.csiro.au/science/TasICTCentre.html> | http://www.ict.csiro.au/staff/brad.lee/
Castray Esplanade, Battery Point, Hobart, TAS
GPO Box 1538, Hobart TAS 7001, Australia
PLEASE NOTE
The information contained in this email may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this email in error, please delete it immediately and notify the sender by return email. Thank you. To the extent permitted by law, CSIRO does not represent, warrant and/or guarantee that the integrity of this communication has been maintained or that the communication is free of errors, virus, interception or interference.
Please consider the environment before printing this email.

Added the following record

https://docs.google.com/open?id=0B1BfLSdRW9LoQmJmRE9QeWVYVFE

Added this record and tried to set the first as the parent

https://docs.google.com/open?id=0B1BfLSdRW9LoNGxZbVNpOS1iTjg

Related metadata selection screen:

- In 2.6.4 the first record is displayed and can be set as parent.

- In 2.7 only the second (self) record is shown and, it can be set as the parent (which doesn't make sense?).

Brad Lee
Research Projects Officer
Intelligent Sensing and Systems Laboratory
CSIRO ICT Centre
Phone: +61 3 6232 5510 | Fax: +61 3 6232 5229 | Mobile: 0432 992 469
brad.lee@anonymised.com<mailto:brad.lee@anonymised.com> | www.csiro.au | http://research.ict.csiro.au/research/labs/tasictc <www.csiro.au/science/TasICTCentre.html> | http://www.ict.csiro.au/staff/brad.lee/
Castray Esplanade, Battery Point, Hobart, TAS
GPO Box 1538, Hobart TAS 7001, Australia
PLEASE NOTE
The information contained in this email may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this email in error, please delete it immediately and notify the sender by return email. Thank you. To the extent permitted by law, CSIRO does not represent, warrant and/or guarantee that the integrity of this communication has been maintained or that the communication is free of errors, virus, interception or interference.
Please consider the environment before printing this email.

Hi Brad, list

I found the problem by reading (and understanding) the validation messages that are generated when a record is validated. One of my validation messages stated that the title element was not recognized.

Where can I find these validation messages?

I fixed the problem by adjusting my geotoolkit code so that I created an identification record that used DataIdentification.

I am not using geotoolkit, but my xml files are already using the
DataIdentification element.

--
___________________________ ___ __
Ricardo Garcia Silva

Hi Ricardo

You can manually insert metadata records via the Administration panel. The insert metadata panel has a validate checkbox. Check this box when you insert the metadata record and then, the record will be validated.

If you post the metadata and/or the validation messages to the list it might be helpful.

Cheers

Brad

Brad Lee
Research Projects Officer
Intelligent Sensing and Systems Laboratory
CSIRO ICT Centre
Phone: +61 3 6232 5510 | Fax: +61 3 6232 5229 | Mobile: 0432 992 469
brad.lee@...448...<mailto:brad.lee@…448…> | www.csiro.au | http://research.ict.csiro.au/research/labs/tasictc <www.csiro.au/science/TasICTCentre.html> | http://www.ict.csiro.au/staff/brad.lee/
Castray Esplanade, Battery Point, Hobart, TAS
GPO Box 1538, Hobart TAS 7001, Australia
PLEASE NOTE
The information contained in this email may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this email in error, please delete it immediately and notify the sender by return email. Thank you. To the extent permitted by law, CSIRO does not represent, warrant and/or guarantee that the integrity of this communication has been maintained or that the communication is free of errors, virus, interception or interference.
Please consider the environment before printing this email.

-----Original Message-----
From: Ricardo Filipe Soares Garcia da [mailto:ricardo.garcia.silva@…54…]
Sent: Wednesday, 2 May 2012 9:06 PM
To: Lee, Brad (ICT Centre, Hobart)
Cc: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] Record title is not being recognized

Hi Brad, list

I found the problem by reading (and understanding) the validation messages that are generated when a record is validated. One of my validation messages stated that the title element was not recognized.

Where can I find these validation messages?

I fixed the problem by adjusting my geotoolkit code so that I created an identification record that used DataIdentification.

I am not using geotoolkit, but my xml files are already using the DataIdentification element.

--

___________________________ ___ __

Ricardo Garcia Silva