NAME

batch-marc-tt - script to process a MARC file with Template::Toolkit

SYNOPSIS

batch-marc-tt -i records.mrc -t template.tt -o output.html

DESCRIPTION

This script will run a MARC file through MARC::Batch and pass the results to a Template::Toolkit template for processing, presumably with Template::Plugin::MARC. The MARC::Record objects are passed in in a T::T variable named "marcrecords".

OPTIONS

--input, -i

The MARC file(s) to process.

--output, -o

The file to write the output to. If no output file is specified, the results will be written to STDOUT.

--template, -t

The template to use for processing the records. If no template is specified, a default template that pretty-prints the MARC.

--verbose, -v

Report the progress of the script.

--help

Print a brief help message and exit.

--man

Prints the manual page and exit.

--xml, -x

Load the input as MARCXML.

--format

Specifies which MARC format MARCXML should be interpreted as (USMARC/MARC21, UNIMARC, or UNIMARCAUTH).

SEE ALSO

Template::Plugin::MARC

AUTHOR

Jared Camins-Esakov, C & P Bibliography Services <jcamins@cpbibliography.com>

COPYRIGHT AND LICENSE

Copyright (C) 2012 by C & P Bibliography Services

Template::Plugin::MARC is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.