]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Clean up marc_export and teach it how to export authority records
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 30 Dec 2010 06:40:37 +0000 (06:40 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 30 Dec 2010 06:40:37 +0000 (06:40 +0000)
commit43ae11d7fa629cdd67581e04ca36581b0e578d6c
treea220b3ade89353939336e5d5f0fd369e78fdbf35
parent0c3cadf74362597b005fda93c2a742227840a40b
Clean up marc_export and teach it how to export authority records

The new "--type" parameter enables users to specify "authority"
and have the expected result.

Some other refactoring and fixes:

Two large chunks of code were factored out into subroutines to
make it a little easier to read the main flow of the code.

As we explicitly call uc() on the $format input parameter
to begin with, we don't have to call it subsequently.

If a requested ID did not exist in the database, then
the script would die; now we trap and flag that error but
continue to fulfill subsequent requests.

The --money parameter is now documented in the help, and
the help has a brief overview that describes (poorly) the
expected format for the list of IDs.

An uninitialized variable error when exporting BRE format
records was squashed.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@19083 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/support-scripts/marc_export