[GeoNetwork-users] XPathException when creating new iso19139.anzlic metadata

Hi list,

I'm using 2.8.x branch version
https://github.com/geonetwork/core-geonetwork/commit/30191f180f27d59eaae542a5da02939e4639c27c.

I was getting "template not available" when I tried creating new metadata.
I then followed this workaround:
http://osgeo-org.1560.x6.nabble.com/How-create-a-new-metadata-td4974235.html,
and then added iso19139.anzlic template.

After that, I could see the iso19139.anzlic templates.
However, when I added a new record, it gives me "XPathException: Template
iso19139.anzlic-javascript has not been defined".

I also tried importing iso19139.anzlic schema first, and I had the same
outcome.

The empty iso19139.anzlic-javascript template seems to come from
https://github.com/geonetwork/schema-plugins/blob/master/iso19139.anzlic/present/metadata.xsl.

Has anyone came across the same error? Could this be a bug?

Cheers
Rini

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/XPathException-when-creating-new-iso19139-anzlic-metadata-tp5046814.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Rini,

I suspect you've plugged in a metadata schema from the trunk schema plugins - you should use iso19139.anzlic from the 2.8.x branch of GitHub - geonetwork/schema-plugins. Alternatively you could use anzmest (which is 2.8.x plus AU/NZ schema plugins) from http://anzlicmet.bluenet.utas.edu.au - the AU/NZ schema plugins are also packaged up and downloadable from this site if you want to use vanilla 2.8.x and roll it yourself.

Cheers,
Simon
________________________________________
From: Rini Angreani [Rini.Angreani@anonymised.com]
Sent: Monday, 15 April 2013 1:03 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] XPathException when creating new iso19139.anzlic metadata

Hi list,

I'm using 2.8.x branch version
Send the metadataAbstract when publishing a layer to GeoServer (#1232) · geonetwork/core-geonetwork@30191f1 · GitHub.

I was getting "template not available" when I tried creating new metadata.
I then followed this workaround:
http://osgeo-org.1560.x6.nabble.com/How-create-a-new-metadata-td4974235.html,
and then added iso19139.anzlic template.

After that, I could see the iso19139.anzlic templates.
However, when I added a new record, it gives me "XPathException: Template
iso19139.anzlic-javascript has not been defined".

I also tried importing iso19139.anzlic schema first, and I had the same
outcome.

The empty iso19139.anzlic-javascript template seems to come from
https://github.com/geonetwork/schema-plugins/blob/master/iso19139.anzlic/present/metadata.xsl.

Has anyone came across the same error? Could this be a bug?

Cheers
Rini

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/XPathException-when-creating-new-iso19139-anzlic-metadata-tp5046814.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Simon,

Thanks for your reply. I copied the schemaPlugins from my WEB-INF/data/config, which comes from the same 2.8.x build.
Actually, I quoted the wrong file (from trunk) and might have confused you.
The corresponding file in 2.8.x is: https://github.com/geonetwork/schema-plugins/blob/2.8.x/iso19139.anzlic/present/metadata-iso19139.anzlic.xsl

i.e. the same file that exists in my /web/geonetwork/WEB-INF/data/config/schema_plugins/iso19139.anzlic/present (and copied into web/geonetwork/data/schema_plugins/iso19139.anzlic/present).

Cheers
Rini

-----Original Message-----
From: Pigot, Simon (CMAR, Hobart)
Sent: Tuesday, 16 April 2013 3:19 PM
To: Angreani, Rini (CESRE, Kensington); geonetwork-users@anonymised.comnet
Subject: RE: [GeoNetwork-users] XPathException when creating new iso19139.anzlic metadata

Hi Rini,

I suspect you've plugged in a metadata schema from the trunk schema plugins - you should use iso19139.anzlic from the 2.8.x branch of http://github.com/geonetwork/schema-plugins. Alternatively you could use anzmest (which is 2.8.x plus AU/NZ schema plugins) from http://anzlicmet.bluenet.utas.edu.au - the AU/NZ schema plugins are also packaged up and downloadable from this site if you want to use vanilla 2.8.x and roll it yourself.

Cheers,
Simon
________________________________________
From: Rini Angreani [Rini.Angreani@anonymised.com]
Sent: Monday, 15 April 2013 1:03 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] XPathException when creating new iso19139.anzlic metadata

Hi list,

I'm using 2.8.x branch version
https://github.com/geonetwork/core-geonetwork/commit/30191f180f27d59eaae542a5da02939e4639c27c.

I was getting "template not available" when I tried creating new metadata.
I then followed this workaround:
http://osgeo-org.1560.x6.nabble.com/How-create-a-new-metadata-td4974235.html,
and then added iso19139.anzlic template.

After that, I could see the iso19139.anzlic templates.
However, when I added a new record, it gives me "XPathException: Template iso19139.anzlic-javascript has not been defined".

I also tried importing iso19139.anzlic schema first, and I had the same outcome.

The empty iso19139.anzlic-javascript template seems to come from https://github.com/geonetwork/schema-plugins/blob/master/iso19139.anzlic/present/metadata.xsl.

Has anyone came across the same error? Could this be a bug?

Cheers
Rini

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/XPathException-when-creating-new-iso19139-anzlic-metadata-tp5046814.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Rini,

It's a bit hard to follow all those different links etc to try and reproduce this. So:

- built my own 2.8.x as per latest commit, installed and started
- plugged in iso19139.anzlic from 2.8.x schema plugins
- added iso19139.anzlic templates
- created iso19139.anzlic metadata record, edited etc without problems

In short, I can't reproduce this and don't know what else to do to help....

Cheers,
Simon

________________________________________
From: Angreani, Rini (CESRE, Kensington)
Sent: Tuesday, 16 April 2013 5:35 PM
To: Pigot, Simon (CMAR, Hobart); geonetwork-users@lists.sourceforge.net
Subject: RE: [GeoNetwork-users] XPathException when creating new iso19139.anzlic metadata

Hi Simon,

Thanks for your reply. I copied the schemaPlugins from my WEB-INF/data/config, which comes from the same 2.8.x build.
Actually, I quoted the wrong file (from trunk) and might have confused you.
The corresponding file in 2.8.x is: schema-plugins/iso19139.anzlic/present/metadata-iso19139.anzlic.xsl at 2.8.x · geonetwork/schema-plugins · GitHub

i.e. the same file that exists in my /web/geonetwork/WEB-INF/data/config/schema_plugins/iso19139.anzlic/present (and copied into web/geonetwork/data/schema_plugins/iso19139.anzlic/present).

Cheers
Rini

-----Original Message-----
From: Pigot, Simon (CMAR, Hobart)
Sent: Tuesday, 16 April 2013 3:19 PM
To: Angreani, Rini (CESRE, Kensington); geonetwork-users@anonymised.comnet
Subject: RE: [GeoNetwork-users] XPathException when creating new iso19139.anzlic metadata

Hi Rini,

I suspect you've plugged in a metadata schema from the trunk schema plugins - you should use iso19139.anzlic from the 2.8.x branch of GitHub - geonetwork/schema-plugins. Alternatively you could use anzmest (which is 2.8.x plus AU/NZ schema plugins) from http://anzlicmet.bluenet.utas.edu.au - the AU/NZ schema plugins are also packaged up and downloadable from this site if you want to use vanilla 2.8.x and roll it yourself.

Cheers,
Simon
________________________________________
From: Rini Angreani [Rini.Angreani@anonymised.com]
Sent: Monday, 15 April 2013 1:03 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] XPathException when creating new iso19139.anzlic metadata

Hi list,

I'm using 2.8.x branch version
Send the metadataAbstract when publishing a layer to GeoServer (#1232) · geonetwork/core-geonetwork@30191f1 · GitHub.

I was getting "template not available" when I tried creating new metadata.
I then followed this workaround:
http://osgeo-org.1560.x6.nabble.com/How-create-a-new-metadata-td4974235.html,
and then added iso19139.anzlic template.

After that, I could see the iso19139.anzlic templates.
However, when I added a new record, it gives me "XPathException: Template iso19139.anzlic-javascript has not been defined".

I also tried importing iso19139.anzlic schema first, and I had the same outcome.

The empty iso19139.anzlic-javascript template seems to come from https://github.com/geonetwork/schema-plugins/blob/master/iso19139.anzlic/present/metadata.xsl.

Has anyone came across the same error? Could this be a bug?

Cheers
Rini

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/XPathException-when-creating-new-iso19139-anzlic-metadata-tp5046814.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Simon,

I think the problem was that I copied mine from WEB-INF/data/config.
I didn't know you need to copy them from the separate schema plugins git repository (I was following another user's workaround in a different post).
Anyway, I noticed the file names are the same (and assumed they're the same ones), but when I opened the metadata-iso19139.anzlic.xsl file, mine doesn't have
<xsl:template name="iso19139.anzlic-javascript"/> in the end.
The one in schema plugins git repository has the definition.
So if I use the one in the schema plugins repo, it should get rid of the error. Thanks for your help!

Cheers
Rini

-----Original Message-----
From: Pigot, Simon (CMAR, Hobart)
Sent: Tuesday, 16 April 2013 4:14 PM
To: Angreani, Rini (CESRE, Kensington); geonetwork-users@anonymised.comnet
Subject: RE: [GeoNetwork-users] XPathException when creating new iso19139.anzlic metadata

Hi Rini,

It's a bit hard to follow all those different links etc to try and reproduce this. So:

- built my own 2.8.x as per latest commit, installed and started
- plugged in iso19139.anzlic from 2.8.x schema plugins
- added iso19139.anzlic templates
- created iso19139.anzlic metadata record, edited etc without problems

In short, I can't reproduce this and don't know what else to do to help....

Cheers,
Simon

________________________________________
From: Angreani, Rini (CESRE, Kensington)
Sent: Tuesday, 16 April 2013 5:35 PM
To: Pigot, Simon (CMAR, Hobart); geonetwork-users@lists.sourceforge.net
Subject: RE: [GeoNetwork-users] XPathException when creating new iso19139.anzlic metadata

Hi Simon,

Thanks for your reply. I copied the schemaPlugins from my WEB-INF/data/config, which comes from the same 2.8.x build.
Actually, I quoted the wrong file (from trunk) and might have confused you.
The corresponding file in 2.8.x is: https://github.com/geonetwork/schema-plugins/blob/2.8.x/iso19139.anzlic/present/metadata-iso19139.anzlic.xsl

i.e. the same file that exists in my /web/geonetwork/WEB-INF/data/config/schema_plugins/iso19139.anzlic/present (and copied into web/geonetwork/data/schema_plugins/iso19139.anzlic/present).

Cheers
Rini

-----Original Message-----
From: Pigot, Simon (CMAR, Hobart)
Sent: Tuesday, 16 April 2013 3:19 PM
To: Angreani, Rini (CESRE, Kensington); geonetwork-users@anonymised.comnet
Subject: RE: [GeoNetwork-users] XPathException when creating new iso19139.anzlic metadata

Hi Rini,

I suspect you've plugged in a metadata schema from the trunk schema plugins - you should use iso19139.anzlic from the 2.8.x branch of http://github.com/geonetwork/schema-plugins. Alternatively you could use anzmest (which is 2.8.x plus AU/NZ schema plugins) from http://anzlicmet.bluenet.utas.edu.au - the AU/NZ schema plugins are also packaged up and downloadable from this site if you want to use vanilla 2.8.x and roll it yourself.

Cheers,
Simon
________________________________________
From: Rini Angreani [Rini.Angreani@anonymised.com]
Sent: Monday, 15 April 2013 1:03 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] XPathException when creating new iso19139.anzlic metadata

Hi list,

I'm using 2.8.x branch version
https://github.com/geonetwork/core-geonetwork/commit/30191f180f27d59eaae542a5da02939e4639c27c.

I was getting "template not available" when I tried creating new metadata.
I then followed this workaround:
http://osgeo-org.1560.x6.nabble.com/How-create-a-new-metadata-td4974235.html,
and then added iso19139.anzlic template.

After that, I could see the iso19139.anzlic templates.
However, when I added a new record, it gives me "XPathException: Template iso19139.anzlic-javascript has not been defined".

I also tried importing iso19139.anzlic schema first, and I had the same outcome.

The empty iso19139.anzlic-javascript template seems to come from https://github.com/geonetwork/schema-plugins/blob/master/iso19139.anzlic/present/metadata.xsl.

Has anyone came across the same error? Could this be a bug?

Cheers
Rini

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/XPathException-when-creating-new-iso19139-anzlic-metadata-tp5046814.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.