batch-marc-tt - script to process a MARC file with Template::Toolkit
batch-marc-tt -i records.mrc -t template.tt -o output.html
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".
The MARC file(s) to process.
The file to write the output to. If no output file is specified, the results will be written to STDOUT.
The template to use for processing the records. If no template is specified, a default template that pretty-prints the MARC.
Report the progress of the script.
Print a brief help message and exit.
Prints the manual page and exit.
Load the input as MARCXML.
Specifies which MARC format MARCXML should be interpreted as (USMARC/MARC21, UNIMARC, or UNIMARCAUTH).
Template::Plugin::MARC
Jared Camins-Esakov, C & P Bibliography Services <jcamins@cpbibliography.com>
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/>.
To install Template::Plugin::MARC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Plugin::MARC
CPAN shell
perl -MCPAN -e shell install Template::Plugin::MARC
For more information on module installation, please visit the detailed CPAN module installation guide.