-
Notifications
You must be signed in to change notification settings - Fork 7
Conversion from Gemini 2.2 to 2.3
A number of options are available for converting from Gemini 2.2 to 2.3. See below for details of each option.
Note that the underlying conversion cannot automatically create valid metadata. If the incoming metadata is invalid, then there's a good chance the converted metadata will be too.
You must update Gemini 2.2 to the latest version of the 3.4.x-gemini23 branch to use both Gemini 2.2 and Gemini 2.3 in the same catalog
This conversion will make a couple of changes to your metadata to make it compliant:
- Add or otherwise update the MetadataStandardName to UK GEMINI and the MetadataStandardVersion to 2.3
- Change the encoding of the access constraints and use limitations elements to meet the new standard, either making a best guess at moving your existing constraints into the correct encoding, or adding the default "no limitations" constraints as appropriate
- Add a conformance report for datasets or services (the default INSPIRE one) if one doesn't exist already
- Replace references to http://www.opengis.net/gml with http://www.opengis.net/gml/3.2
- Adds a default character encoding of UTF8 out of politeness really
-
Ensure that the suggestions wizard is visible when editing a Gemini 2.2 record in simple view. If it is not, you probably haven't read the bit in italics above
-
Note that this approach relies on your record having a block like this in order to recognise it as Gemini 2.2:
<gmd:metadataStandardName> <gco:CharacterString>UK GEMINI</gco:CharacterString> </gmd:metadataStandardName> <gmd:metadataStandardVersion> <gco:CharacterString>2.2</gco:CharacterString> </gmd:metadataStandardVersion>
-
Edit the Gemini 2.2 record you wish to transform, and run the suggestions wizard in simple view. If the record is recognised as Gemini 2.2 the following suggestion will appear:
Metadata Schema is Gemini 2.2. Run this task to convert to Gemini 2.3
-
Click the suggestion to run the transformation script. The record will be converted to Gemini 2.3 (the editing view will change to show the embedded Gemini 2.3 guidance). Save and close the record.
- Copy the xsl https://github.com/AstunTechnology/iso19139.gemini23/blob/3.8.x/src/main/plugin/iso19139.gemini23/convert/xml_gemini22gemini23.xsl to your
geonetwork\xsl\conversion\import
folder. - Once copied to the above folder the conversion script will be available from the
Import new records
tool in GeoNetwork.
-
Edit the file
geonetwork\catalog\config\batch-process-cfg.json
and add another entry (surrounded by{}
and separated from other entries by a,
) like this:{ "key": "xml_gemini22gemini23", "type": "fixed-params", "params": [] },
-
Restart geonetwork and go to the admin console/tools/batch process tab. Select the records you wish to convert and then in the "Configure a process" dropdown list choose
xml_gemini22gemini23
and click "run". If you can't see the option then check you have the correct version of Gemini 2.2 (see the section in italics at the top) and check that you followed the step to add it to batch-process-cfg.json. -
If you want to give the batch process a proper title, then you can add the translation string to
geonetwork\catalog\locales\en-custom.json
as follows:{ "xml_gemini22gemini23": "Convert from Gemini 2.2 to Gemini 2.3" }