< Back to index

Start Using REPOX

1. Running Jetty Server

See Jetty Server for ways to install or run the Jetty Server.

Back to Top

2. REPOX Homepage

Open the REPOX web page: http://localhost:$repox.jettyPort/repox in your browser. Except for the Homepage and OAI-PMH related pages all management in REPOX is protected by an authentication (user and password) defined during the installation.

Back to Top

3. Mapping Metadata to TEL format

This is an important step, as creating a metadata crosswalk from the Libraries format to TEL format is mandatory. There are already some transformations mapped, which can be edited and adapted as needed. To create a new mapping using an existing Data Source that already has records ingested, edit the Data Source and click "Create From Records" on the line "Transformation". To do so, skip this step and return at the end after completing all the steps and ingesting the Records.

Follow the menu link Schema Mapper, and then there are three options to create a transformation to the TEL format, described by their order on the page:
For example, to map UNIMARC records (in XML: MarcXchange/MarcXML) to TEL, the mapping unimarcToTel can be used. By clicking Edit, it is possible to adapt the connections visually:



To create a connection, click one of the dots from one side and drag to a dot from the other side which corresponds to the same field. To delete a connection, hover the mouse on the dot, and then click the scissors that appear near it. It is also possible to create groups of tags (extracted from the XML Record), for example to associate an author's first and last name and then map it to a DC TEL tag. After submitting, it is possible to see the sample XML, the created transformation file (XSLT) and the result of applying the XSLT to the XML, and if the result is satisfactory, fill the fields and submit the mapping. The mapping can now be used in the Data Source creation/edition form (on the field Transformation to TEL).

To create a mapping from scratch, it is possible to use the section titled Map Schema Visually from Sample. Select an XML Record file or zip with several XML Records that will be used as a sample to extract possible tags. Then it is possible to perform the mapping like described in the previous paragraph.

Submitting an XSLT Transformation file can be done on the middle section, named "Submit Transformation". The field Identifier and Description serve the purpose of labelling the mapping. The field Source Format is case sensitive and defines for which metadata format the mapping is valid. To associate an Ingest Process with the mapping create or edit an Ingest Process and select id of the Schema Map created as 'Transformation to Tel'.

Back to Top

4. Creating a Data Provider and Data Source

To import the Records, a Data Provider with a Data Source must be created. A Data Provider represents an entity, like a Library, and a Data Source the source of the Records. To create a Data Provider go to the Home page and click "...Create..." on the right of the Data Provider label. Fill the name (has to start with a letter, can contain letters, numbers and the underscore _) and description. It is also possible to associate a logo to the Data Provider that will show up in the Homepage. Then submit and follow the link "...Create Data Source...". There are the following available types of Data Sources: An example of an ISO2709 Directory Data Source with the Standard implementation and UTF-8 character encoding:


The ID Policy defines how the record identifiers are assigned: An important issue with ID extracted is the use of a namespace for the XPath expression. In the following record:

<?xml version="1.0" encoding="UTF-8"?>
<mx:record xmlns:mx="info:lc/xmlns/marcxchange-v1" format="Unimarc">
  <mx:leader>00543nac  2200133   45  </mx:leader>
  <mx:controlfield tag="001">kbr_1_866445</mx:controlfield>
  ...
</mx:record>


To use the tag <mx:controlfield tag="001"> as the identifier insert in Xpath: /mx:record/mx:controlfield[tag="001"] and add a namespace with

Namespace Prefix: mx
Namespace Uri: info:lc/xmlns/marcxchange-v1 (the namespace that appears on mx:record as attribute xmlns:mx)



The Output section defines the OAI-PMH set behaviour for this Data Source. Record Set and Description correspond to the OAI-PMH set and its description. The transformations enable providing the records in other formats by OAI-PMH.

After submitting the Data Source, the Data Provider page has two new items for the Data Source: "Ingest Processes" and "Local File Export Processes". It is possible to Ingest the Records immediately or schedule a periodic ingesting as well as export the records ingested to the filesystem immediately or scheduled. The periodic ingesting works like the Linux cron. Two examples of possible uses: to ingest monthly on the 15th, change Day from * to 15, Hour to 0 and Minute to 0 (to ingest at midnight); to ingest daily at 16h30, change Minute to 30 and Hour to 16. To delete a periodical ingest, follow the link Scheduled Tasks in the menu (see Scheduled Tasks). After each ingesting has started, it is possible to see the log file in the Data Provider View (after using "Ingest Now" use Refresh next to the Data Provider name so the log will show). To export the records in the format it is stored in REPOX, use the menu "Local File Export Processes" and fill the Folder field with a folder accessible to the server where REPOX is installed and the scheduling works as with Ingest Processes.

After ingesting Records into a Data Source, see OAI-PMH Tests to check if the Records are being correctly ingested. To see how many records each Data Source has the Home page can be used.

Back to Top