Advertising sustains the DA. Ads are hidden for members. Join today

Harvest authorities

Last updated on
30 April 2025

You are browsing documentation for an older version of Drupal, which is not supported any longer, and the information may not be correct. See current documentation for Contributed modules

Module Opac authorities provide a drush command to harvest authorities from an ILS.

$ drush opac-auth-harvest -h
Import a set of authority records into Drupal

Options:
 --servers                                 A comma-separated list of server ids. Only those servers will be harvseted.                         
 --batch-size                              Number of authorities to harvest before committing to database.                                     
 --from                                    The first authority id to harvest.                                                                  
 --to                                      The last authority id to harvest.                                                                   
 --file                                    You must give the absolute path of a file. Allows to specify a file containing auth ids to harvest. 
 --print-id                                Print each harvested authority id

  • Options --from and --to are mandatory unless your want harvest from a file (--file=/absolute/path/to/the/file).
  • Using --from, --to with --file is not allowed
  • --batch-size defaults to 1000 if not given.
  • If --servers is not given, all enabled servers are harvested.

Exemple

drush opac-auth-harvest --servers=my_server --batch-size=100 --from=1 --to=8000 -v --print-id=1
drush opac-auth-harvest --servers=my_server --batch-size=100 --file=/home/jean/authids.txt -v --print-id=1

Help improve this page

Page status: Not set

You can: