Table of Contents

MARC Records

VuFind was initially designed with the MARC bibliographic record format in mind, though additional formats are supported through the use of Record Drivers starting with version 1.0. For general information on MARC, see Understanding MARC Bibliographic from the Library of Congress. The Code4Lib Working with MARC page also provides some useful tools.

Importing Records

VuFind comes packaged with the SolrMarc tool for importing MARC records. Follow these steps to take advantage of it.

1. Export the Records

Before you can load the records into VuFind, you need to get them out of your Integrated Library System (ILS). If you are just testing VuFind, you can also download sample records from sources listed lower on this page.

Every ILS has a different procedure for exporting records, and detailing all of them is beyond the scope of this document. Check your ILS documentation or talk to your vendor if you need help. You can also check the MARC Export Notes page to see if there are notes specific to your ILS; please consider adding to the page if you have knowledge to share. If you still need help, you can always ask on the mailing lists on the Support page – the VuFind community is always happy to help when it can.

Keep these notes in mind to ensure that your records can be imported without any problems:

2. Import the Records

To begin an import, follow the platform-specific instructions listed below. This may take hours or days for very large data sets!

Linux Method

Switch to your VuFind installation directory and run:

./import-marc.sh your_records_file.mrc

Note: In versions of VuFind prior to 1.0RC2, import-marc.sh was named import.sh.

Windows Method

Switch to your VuFind installation directory and run:

import-marc.bat your_records_file.mrc

Note: prior to VuFind 1.0RC2, import-marc.bat was not available, and it was necessary to run SolrMarc manually:

Java -Xms256m -Xmx256m -Dsolr.core.name=biblio -Dsolrmarc.path=C:/vufind/import -Dsolr.path=C:/vufind/solr -Dmarc.path=c:/vufind/import/catdump.mrc -jar c:/vufind/import/dist/MarcImporter.jar c:/vufind/import/import.properties

(thanks to mike_beccaria)

3. Restart VuFind

If the imported records do not show up in VuFind immediately, you will have to restart the program as described here.

4. Optimize Your Index

For improved performance (and, if applicable, correct spellchecker behavior), it is a good idea to optimize your Solr index after you import records.

Customizing SolrMarc

See the SolrMarc page for more details on how you can customize the behavior of the import process to meet your needs.

Sources for Sample Records

This section is for listing sources of binary MARC records helpful for testing purposes if you want to try VuFind without using your own records:

OAI-PMH Harvesting

Starting with VuFind 1.0.1, a simple tool is included for harvesting records using the OAI-PMH protocol.

Setting up OAI-PMH

To set up OAI-PMH harvesting, simply edit the oai.ini file in the harvest subdirectory of your VuFind installation. You can set up one or more OAI-PMH repositories here – details are included in comments within the file.

Harvest Workflow

Once OAI-PMH is configured, you can follow these steps to get documents from an OAI-PMH repository into your VuFind index:

It should be possible to automate this process using a top-level script and cron job in order to do a nightly harvest/index operation.

Important notes

Related Pages

User-Provided Notes