#523: Make uuid of metadata from OGC WXS layer/feature/coverage persistent on
harvest re-run
-----------------------------------------------------+----------------------
Reporter: awalsh | Owner: geonetwork-devel@…
Type: enhancement | Status: new
Priority: major | Milestone: v2.6.5
Component: General | Version: v2.6.4
Keywords: fileIdentifier, uuid, OGC WxS harvester |
-----------------------------------------------------+----------------------
Problem:
Repeated runs of the OGC WxS harvester are making non-unique
fileIdentifier (uuid) of layer(WMS), feature (WFS) or coverage (WCS)
metadata records. This was creating problems with duplicated
metadata records in some catalogues that in turn harvest off the
Geonetwork e.g Australian National Data Service - Research Data Australia
catalouge. (ANDS-RDA). ANDS-RDA use an OAI-PMH harvest off Geonetwork.
Duplicated records with all details the same except
for uuid are ending up in the ANDS-RDA as a new uuid is seen as
a new record.
Solution:
Make the uuid persistent on re-runs of the harvester by making
a md5 hash of the GetCapabilities URL plus the layer name (WMS)
or feature type (WFS) or coverage name (WCS) i.e
//--- md5 the full capabilities URL + the layer, coverage or feature name
// the dataset identifier
reg.uuid = Util.scramble (this.capabilitiesUrl+"#"+reg.name);
A patch kindly provided by Craig Jones of IMOS/emII is attached
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/523>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
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.