Ready to Learn?Ex Libris products all provide open APIs

Tech Blog

 

Adding a New Source Metadata Subtype

Opher Kutner on November 17th, 2016

In this post we will show how to add a new source metadata subtype, using VRA Core as an example. If you have not worked with source metadata in Rosetta before, it is recommended to read this post first.

Note: This procedure requires restarting all Rosetta REP servers to take effect (this can be done in succession).

 

Updating the Code Table

The first step is to add the new subtype in the Rosetta metadata registry. Among other things, this will make it appear in the list of available source metadata types.
In Administration, locate the 'Other Source Metadata Subtype' code table and click 'Edit'. Scroll to the bottom of the screen, where there is a form to add a new row to the code table. In the description and language field, enter 'vra' and click 'Create'.


The row will be added to the table.


Adding the XSD file

If you have an xsd, you can add it to Rosetta's file list. This will enable the web editor to display the metadata in grid mode. In the 'Metadata Editing Configuration' File Group, select the 'Source Metadata XSD' sub-group and add a new file. Your xsd filename should be based on the description you provided above, in this case 'vra.xsd' (case sensitive). In the 'Metadata Template' field, add an empty record:

<vra xmlns="http://www.vraweb.org/vracore4.htm"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.vraweb.org/vracore4.htm http://www.loc.gov/standards/vracore/vra-strict.xsd"/>


And in the XSD field, copy your XSD file. Save and exit.


Adding the Metadata Record

Open your IE in the Webeditor, lock it and click Add Metadata. Select 'Insert New', chose 'Source-vra' and click on 'Edit Metadata'. 

The XML editor will open with a blank VRA core record. You can use the Text mode to paste an existing record in raw XML (or type XML):


or use Grid mode to add relevant fields:



When you're done, you can validate your record using the 'Validate' button.