There are two ways to add bulk sets of authority records to your Evergreen system: the command line, and using the MARC Batch Import/Export interface.
The major advantages of the command line approach are its speed and its convenience for system administrators who can perform bulk loads of authority records in a controlled environment.
NOTE: For more examples and helpful tools, see the MVLC Evergreen blog.
In Evergreen 2.0, importing a set of authority records from the command line is a three-step process:
USMARC
or XML
). Use STDOUT redirection to either pipe the output directly into the next command or into an output file for inspection. For example, to process a set of authority records named auth_small.xml
using the default user name and password and directing the output into a file named auth.are
:cd Open-ILS/src/extras/import/ perl marc2are.pl --user admin --pass open-ils auth_small.xml > auth.are
cd Open-ILS/src/extras/import/ perl pg_loader.pl --auto are --order are auth.are > auth_load.sql
psql -U evergreen -h localhost -d evergreen -f auth_load.sql
Good for loading batches of up to 5,000 records (roughly) at a time, the major advantages to importing authority records using the MARC Batch Import/Export interface are that it does not require command-line or direct database access – good for both security in that it minimizes the number of people who need this access and for spreading the effort around to others in the library – and it does most of the work (for example, figuring out whether the batch of records is in XML or USMARC format) for you.
NOTE: As of Evergreen 2.5, the MARC Batch Import/Export interface does not yet support merging or overlay of Authority records. See Bug 1171984 for progress and details.
To import a set of MARC authority records from the MARC Batch Import/Export interface:
Once the import is finished, the staff client displays the results of the import process. You can manually display the import progress by selecting the Inspect Queue tab of the MARC Batch Import/Export interface and selecting the queue name. By default, the staff client does not display records that were imported successfully; it only shows records that conflicted with existing entries in the database. The screen shows the overall status of the import process in the top right-hand corner, with the Total and Imported number of records for the queue.