Chapter 155. Support Scripts

Table of Contents

authority_control_fields: Connecting Bibliographic and Authority records
marc_export: Exporting Bibliographic Records into MARC files
Options
Parallel Ingest with pingest.pl
Command Line Options
Importing Authority Records from Command Line
Juvenile-to-adult batch script
MARC Stream Importer

Various scripts are included with Evergreen in the /openils/bin/ directory (and in the source code in Open-ILS/src/support-scripts and Open-ILS/src/extras). Some of them are used during the installation process, such as eg_db_config, while others are usually run as cron jobs for routine maintenance, such as fine_generator.pl and hold_targeter.pl. Others are useful for less frequent needs, such as the scripts for importing/exporting MARC records. You may explore these scripts and adapt them for your local needs. You are also welcome to share your improvements or ask any questions on the Evergreen IRC channel or email lists.

Here is a summary of the most commonly used scripts. The script name links to more thorough documentation, if available.

authority_control_fields: Connecting Bibliographic and Authority records

This script matches headings in bibliographic records to the appropriate authority records. When it finds a match, it will add a subfield 0 to the matching bibliographic field.

Here is how the matching works:

Bibliographic fieldAuthority field it matchesSubfields that it examines

100

100

a,b,c,d,f,g,j,k,l,n,p,q,t,u

110

110

a,b,c,d,f,g,k,l,n,p,t,u

111

111

a,c,d,e,f,g,j,k,l,n,p,q,t,u

130

130

a,d,f,g,h,k,l,m,n,o,p,r,s,t

600

100

a,b,c,d,f,g,h,j,k,l,m,n,o,p,q,r,s,t,v,x,y,z

610

110

a,b,c,d,f,g,h,k,l,m,n,o,p,r,s,t,v,w,x,y,z

611

111

a,c,d,e,f,g,h,j,k,l,n,p,q,s,t,v,x,y,z

630

130

a,d,f,g,h,k,l,m,n,o,p,r,s,t,v,x,y,z

648

148

a,v,x,y,z

650

150

a,b,v,x,y,z

651

151

a,v,x,y,z

655

155

a,v,x,y,z

700

100

a,b,c,d,f,g,j,k,l,n,p,q,t,u

710

110

a,b,c,d,f,g,k,l,n,p,t,u

711

111

a,c,d,e,f,g,j,k,l,n,p,q,t,u

730

130

a,d,f,g,h,j,k,m,n,o,p,r,s,t

751

151

a,v,x,y,z

800

100

a,b,c,d,e,f,g,j,k,l,n,p,q,t,u,4

830

130

a,d,f,g,h,k,l,m,n,o,p,r,s,t