Bibliographic Import Configuration

Avalon can be configured to import descriptive metadata from an external source (such as an OPAC) via SRU or Z39.50.

Configuration is located in avalon.yml.

SRU Configuration

To configure Avalon to use an SRU source (such as yaz-proxy), you will need the following information:

  • The SRU endpoint for the server to search
  • The query that will return the correct record for the bibliographic ID provided

Example

SRU Configuration
  bib_retriever:
    protocol: sru
    url: http://zgate.library.example.edu:9000/catdb
    query: rec.id=%{bib_id}

Note: %{bib_id} will be replaced by the bibliographic ID provided by the depositor.

Z39.50 Configuration

Configuring Avalon to use a Z39.50 source requires the following information:

  • The hostname and port for the Z39.50 server
  • The name of the database to search
  • The ID of the attribute to search with the bibliographic ID

Example

Z39.50 Configuration
  bib_retriever:
    protocol: z39.50
    host: zgate.library.example.edu
    port: 210
    database: CATALOG
    attribute: 7
    retriever_class: Avalon::BibRetriever::Zoom
    retriever_class_require: avalon/bib_retriever/zoom