[GeoNetwork-devel] Batch Import / Export of MCP records

Hi,

The import/export seems logic seems to be flawed in that it does not seem to
work with profiles that export MEF files containing multiple schemas.

If I have 2 systems running geonetwork 2.8 containing MCP data - What is the
best way to copy the metadata between both sites (without using harvesting).

I have read the posting on Batch Import / Export
<http://osgeo-org.1560.n6.nabble.com/Batch-Import-Export-tc3877222.html&gt;
which seem to work OK for the iso 19139 metadata records but it does not
work for MCP records because the MEF files contain both the MCP records as
well as the ISO-19139 records. By default the import chooses the ISO-19139
files to be imported as that is the default preferred schema.

Is it possible to import the MEF file that was generated by geonetwork
without having to do the following
    - removing the ISO-19139 records from the MEF file
    - change the preferred schema to MCP

What is weird is that the info.xml file within the MEF file specifies that
the file is MCP "<schema>iso19139.mcp</schema>" however it still uses the
ISO-19139. But based on the comments in the code - it seems like <schema> is
being depreciated.

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Batch-Import-Export-of-MCP-records-tp5014320.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

This is a bug - IMHO it should not choose the metadata-iso19139.xml files to import unless the schema associated with metadata.xml is unavailable. I'll take a look at this shortly as it is rather important.

Cheers,
Simon
________________________________________
From: ianwallen [ianwallen@anonymised.com]
Sent: Wednesday, 7 November 2012 1:49 AM
To: geonetwork-devel@lists.sourceforge.net
Subject: [GeoNetwork-devel] Batch Import / Export of MCP records

Hi,

The import/export seems logic seems to be flawed in that it does not seem to
work with profiles that export MEF files containing multiple schemas.

If I have 2 systems running geonetwork 2.8 containing MCP data - What is the
best way to copy the metadata between both sites (without using harvesting).

I have read the posting on Batch Import / Export
<http://osgeo-org.1560.n6.nabble.com/Batch-Import-Export-tc3877222.html&gt;
which seem to work OK for the iso 19139 metadata records but it does not
work for MCP records because the MEF files contain both the MCP records as
well as the ISO-19139 records. By default the import chooses the ISO-19139
files to be imported as that is the default preferred schema.

Is it possible to import the MEF file that was generated by geonetwork
without having to do the following
    - removing the ISO-19139 records from the MEF file
    - change the preferred schema to MCP

What is weird is that the info.xml file within the MEF file specifies that
the file is MCP "<schema>iso19139.mcp</schema>" however it still uses the
ISO-19139. But based on the comments in the code - it seems like <schema> is
being depreciated.

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Batch-Import-Export-of-MCP-records-tp5014320.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central

_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net

GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork