NAME
picaimport - Import or delete PICA+ records in a PICA::Store
SYNOPSIS
picawebcat [options] [file]*
OPTIONS
-config FILE read configuration from a file (default: picastore.conf)
-from FILE read files to import from a file (default: - for STDIN)
-out FILE print import information to a file (default: - for STDIN)
-help brief help message
-move remove imported files on success
-delete delete records instead of importing them
-force do not ask before deleting
-ppn use the PPN of a record if no PPN is given for updating
-quiet suppress additional status messages and output
-version print version of this script and exit
DESCRIPTION
This script can be used to import or delete PICA records in a PICA::Store, for instance via webcat (PICA::SOAPClient) or into a SQLite database (PICA::SQLiteStore). By default only the first PICA record of each file that you specify is imported.
The PICA+ files to be imported can be specified either as command line parameters or listed in another file (option -from) or you type in the file names on request. It is recommended to delete sucessfully imported files (option -move) so you do not import them twice. To update an existing record you must specify a PPN and a record (or with option -ppn the PPN is taken from the record). You must specify PPN and filename seperated by space.
On import or update picaimport prints the PPN and filename of each record in one line - you can use this output format as input format with option -from to later update the records.
To connect to a PICA store you must provide a config file via the -config parameter or the PICASTORE environment variable - or name it picastore.conf and put it in the current directory. The config file can contain all parameters that may be provided to the PICA::Store constructor. At least there must be one of the following parameters:
webcat = URL
SQLite = FILE
Other known configuration parameters include dbsid, userkey, password, and language.
AUTHOR
Jakob Voss jakob.voss@gbv.de
LICENSE
This script is published as Public Domain. Feel free to reuse as you like!