Catmandu::SRU - Catmandu module for working with SRU data
# On the command line $ catmandu convert SRU --base http://www.unicat.be/sru --query data $ catmandu convert SRU --base http://www.unicat.be/sru --query data --recordSchma marcxml $ catmandu convert SRU --base http://www.unicat.be/sru --query data --recordSchma marcxml --parser marcxml # create a config file: catmandu.yml $ cat catmandu.yml --- importer: unicat: package: SRU options: base: http://www.unicat.be/sru recordSchema: marcxml parser: marcxml $ catmandu convert unicat --query data # If you have Catmandu::MARC installed $ catmandu convert unicat --query data --fix 'marc_map("245a","title"); retain_field("title")' to CSV # The example above in perl use Catmandu -load; my $importer = Catmandu->importer('unicat', query => 'data'); my $fixer = Catmandu->fixer(['marc_map("245a","title")','retain_field("title")']); my $export = Catmandu->exporter('CSV'); $exporter->add_many( $fixer->fix($importer); ); $exporter->commit;
Catmandu, Catmandu::Importer, Catmandu::Fix, Catmandu::Exporter, Catmandu::MARC
Wouter Willaert, <wouterw@inuits.eu>
<wouterw@inuits.eu>
Patrick Hochstenbach, <patrick.hochstenbach at ugent.be>
<patrick.hochstenbach at ugent.be>
Nicolas Steenlant, <nicolas.steenlant at ugent.be>
<nicolas.steenlant at ugent.be>
Jakob Voss jakob.voss at gbv.de
jakob.voss at gbv.de
Johann Rolschewski rolschewski at gmail.com
rolschewski at gmail.com
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Catmandu::SRU, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::SRU
CPAN shell
perl -MCPAN -e shell install Catmandu::SRU
For more information on module installation, please visit the detailed CPAN module installation guide.