[GeoNetwork-devel] How to Get Metadata Internal Identifier from UUID?

Hi all,

I am trying to get metadata ID in the metadata service response from GeoNetwork for specified metadata. I have the UUID of the metadata.
Do you guys have any solution?

Thanks,
Shao

mmm, I think this has come up before with regards to setting permissions on items 'programatically' and I think the previous advice was 'scrape the response' from a metadata.show?uuid=XXX.

If there is a better way - please jump in

If not - maybe we need a stupidly simple service endpoint
metadata.to_id?uuid=XXXX

Terry

________________________________
From: Yuanzheng Shao [yshao36@anonymised.com]
Sent: Saturday, 31 March 2012 4:03 AM
To: geonetwork-devel@lists.sourceforge.net
Subject: [GeoNetwork-devel] How to Get Metadata Internal Identifier from UUID?

Hi all,

I am trying to get metadata ID in the metadata service response from GeoNetwork for specified metadata. I have the UUID of the metadata.
Do you guys have any solution?

Thanks,
Shao

Why do you want the metadata ID ? This is just a database key, internal to the system. Metadata is identified by their UUID, I wonder what is your reason to want a GeoNetwork-internal primary key value ?

Kind regards
Heikki Doeleman

On Sat, Mar 31, 2012 at 1:19 AM, Terry.Rankine@anonymised.com wrote:

mmm, I think this has come up before with regards to setting permissions on items ‘programatically’ and I think the previous advice was ‘scrape the response’ from a metadata.show?uuid=XXX.

If there is a better way - please jump in

If not - maybe we need a stupidly simple service endpoint
metadata.to_id?uuid=XXXX

Terry


From: Yuanzheng Shao [yshao36@anonymised.com]
Sent: Saturday, 31 March 2012 4:03 AM
To: geonetwork-devel@lists.sourceforge.net
Subject: [GeoNetwork-devel] How to Get Metadata Internal Identifier from UUID?

Hi all,

I am trying to get metadata ID in the metadata service response from GeoNetwork for specified metadata. I have the UUID of the metadata.
Do you guys have any solution?

Thanks,
Shao


This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure


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

Hi,

you may try in
geonetwork/WEB-INF/config.xml,
set <param name="skipInfo" value="n" />
restart app-server.

When calling
http://<hostname>/geonetwork/srv/en/xml.metadata.get?uuid=<uuid>

you will get a /gmd:MD_Metadata/geonet:info/id element in the response.

kind regards
Jørn-Vegard Røsnes

----- Original Message -----

From: "Yuanzheng Shao" <yshao36@anonymised.com>
To: geonetwork-devel@lists.sourceforge.net
Sent: Friday, 30 March, 2012 10:03:34 PM
Subject: [GeoNetwork-devel] How to Get Metadata Internal Identifier from UUID?

Hi all,

I am trying to get metadata ID in the metadata service response from
GeoNetwork for specified metadata. I have the UUID of the metadata.
Do you guys have any solution?

Thanks,
Shao

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
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