| 1 |
NAME |
| 2 |
|
| 3 |
Catmandu::SRU - Catmandu module for working with SRU data |
| 4 |
|
| 5 |
SYNOPSIS |
| 6 |
|
| 7 |
# On the command line |
| 8 |
$ catmandu convert SRU --base http://www.unicat.be/sru --query data |
| 9 |
|
| 10 |
$ catmandu convert SRU --base http://www.unicat.be/sru --query data --recordSchema marcxml |
| 11 |
|
| 12 |
$ catmandu convert SRU --base http://www.unicat.be/sru --query data --recordSchema marcxml --parser marcxml |
| 13 |
|
| 14 |
# create a config file: catmandu.yml |
| 15 |
$ cat catmandu.yml |
| 16 |
--- |
| 17 |
importer: |
| 18 |
unicat: |
| 19 |
package: SRU |
| 20 |
options: |
| 21 |
base: http://www.unicat.be/sru |
| 22 |
recordSchema: marcxml |
| 23 |
parser: marcxml |
| 24 |
|
| 25 |
$ catmandu convert unicat --query data |
| 26 |
|
| 27 |
# If you have Catmandu::MARC installed |
| 28 |
$ catmandu convert unicat --query data --fix 'marc_map("245a","title"); retain_field("title")' to CSV |
| 29 |
|
| 30 |
# The example above in perl |
| 31 |
use Catmandu -load; |
| 32 |
|
| 33 |
my $importer = Catmandu->importer('unicat', query => 'data'); |
| 34 |
my $fixer = Catmandu->fixer(['marc_map("245a","title")','retain_field("title")']); |
| 35 |
my $export = Catmandu->exporter('CSV'); |
| 36 |
|
| 37 |
$exporter->add_many($fixer->fix($importer)); |
| 38 |
|
| 39 |
$exporter->commit; |
| 40 |
|
| 41 |
MODULES |
| 42 |
|
| 43 |
Catmandu::Importer::SRU |
| 44 |
|
| 45 |
Catmandu::Importer::SRU::Parser |
| 46 |
|
| 47 |
Catmandu::Importer::SRU::Parser::raw |
| 48 |
|
| 49 |
Catmandu::Importer::SRU::Parser::simple |
| 50 |
|
| 51 |
Catmandu::Importer::SRU::Parser::struct |
| 52 |
|
| 53 |
Catmandu::Importer::SRU::Parser::marcxml |
| 54 |
|
| 55 |
Catmandu::Importer::SRU::Parser::meta |
| 56 |
|
| 57 |
Catmandu::Importer::SRU::Parser::mods |
| 58 |
|
| 59 |
Catmandu::Importer::SRU::Parser::picaxml |
| 60 |
|
| 61 |
Catmandu::Fix::search_sru |
| 62 |
|
| 63 |
SEE ALSO |
| 64 |
|
| 65 |
Catmandu, Catmandu::Importer, Catmandu::Fix, Catmandu::Exporter, |
| 66 |
Catmandu::MARC |
| 67 |
|
| 68 |
AUTHOR |
| 69 |
|
| 70 |
Wouter Willaert, <[email protected]> |
| 71 |
|
| 72 |
CONTRIBUTORS |
| 73 |
|
| 74 |
Patrick Hochstenbach, <patrick.hochstenbach at ugent.be> |
| 75 |
|
| 76 |
Nicolas Steenlant, <nicolas.steenlant at ugent.be> |
| 77 |
|
| 78 |
Jakob Voss <jakob.voss at gbv.de> |
| 79 |
|
| 80 |
Johann Rolschewski <jorol at cpan.org> |
| 81 |
|
| 82 |
LICENSE AND COPYRIGHT |
| 83 |
|
| 84 |
This program is free software; you can redistribute it and/or modify it |
| 85 |
under the terms of either: the GNU General Public License as published |
| 86 |
by the Free Software Foundation; or the Artistic License. |
| 87 |
|
| 88 |
See http://dev.perl.org/licenses/ for more information. |
| 89 |
|