Table of Contents

Support for New Record Formats

Note: This feature was introduced in VuFind 1.0. If you are using VuFind 1.0RC2 or earlier, please upgrade to gain access to this functionality.

Introduction

VuFind is currently bundled with a standard indexer (solrmarc) that handles MARC records quickly and efficently. However, VuFind also has the capability to support any other form of metadata if you are willing to do at least one of two things:

Indexer

Indexing is not an integrated part of VuFind. For indexing MARC records, solrmarc is distributed with VuFind. For other record formats, one needs different custom indexers. Some general hints on how to create such an indexer are given here.

Writing a custom indexer for other record formats may be done in almost any programming language. Steps to be done:

Note that for any metadata format available as XML, you can save yourself some steps by using the XSLT tool provided with recent versions of VuFind.

Record Display

Record display is handled by a family of “Record Driver” classes that extract information from the stored Solr fields and return it through a standard interface. The top-level parent Record Driver (found in web/RecordDrivers/IndexRecord.php) relies entirely on the Solr index fields, but children of this class (for example, web/RecordDrivers/MarcRecord.php) override and expand methods by using record-specific data extracted from the “fullrecord” field. Whenever record information is needed by VuFind, a Record Driver is instantiated through the Record Driver Factory (web/RecordDrivers/Factory.php) – the exact driver built is based on the “recordtype” field from Solr, and the default index-based Record Driver is used if no type-specific driver exists.

Driver API Specification

The interface that must be implemented by all Record Driver classes can be viewed in the SVN repository.

Record Driver naming conventions:

Notes