| 1 |
NAME |
| 2 |
|
| 3 |
Catmandu::MARC - Catmandu modules for working with MARC data |
| 4 |
|
| 5 |
SYNOPSIS |
| 6 |
|
| 7 |
# On the command line |
| 8 |
|
| 9 |
$ catmandu convert MARC to JSON < data.mrc |
| 10 |
|
| 11 |
$ catmandu convert MARC --type MiJ to YAML < data.marc_in_json |
| 12 |
|
| 13 |
$ catmandu convert MARC --fix "marc_map(245,title)" < data.mrc |
| 14 |
|
| 15 |
$ catmandu convert MARC --fix myfixes.txt < data.mrc |
| 16 |
|
| 17 |
myfixes: |
| 18 |
|
| 19 |
marc_map("245a", title) |
| 20 |
marc_map("5**", note.$append) |
| 21 |
marc_map('710','my.authors.$append') |
| 22 |
marc_map('008_/35-35','my.language') |
| 23 |
remove_field(record) |
| 24 |
add_field(my.funny.field,'test123') |
| 25 |
|
| 26 |
$ catmandu import MARC --fix myfixes.txt to ElasticSearch --index_name 'catmandu' < data.marc |
| 27 |
|
| 28 |
# In perl |
| 29 |
use Catmandu; |
| 30 |
|
| 31 |
my $importer = Catmandu->importer('MARC', file => 'data.mrc' ); |
| 32 |
my $fixer = Catmandu->fixer('myfixes.txt'); |
| 33 |
my $store = Catmandu->store('ElasticSearch', index_name => 'catmandu'); |
| 34 |
|
| 35 |
$store->add_many( |
| 36 |
$fixer->fix($importer) |
| 37 |
); |
| 38 |
|
| 39 |
MODULES |
| 40 |
|
| 41 |
* Catmandu::MARC::Tutorial |
| 42 |
|
| 43 |
* Catmandu::Importer::MARC |
| 44 |
|
| 45 |
* Catmandu::Importer::MARC::ALEPHSEQ |
| 46 |
|
| 47 |
* Catmandu::Importer::MARC::ISO |
| 48 |
|
| 49 |
* Catmandu::Importer::MARC::Line |
| 50 |
|
| 51 |
* Catmandu::Importer::MARC::Lint |
| 52 |
|
| 53 |
* Catmandu::Importer::MARC::MARCMaker |
| 54 |
|
| 55 |
* Catmandu::Importer::MARC::MicroLIF |
| 56 |
|
| 57 |
* Catmandu::Importer::MARC::MiJ |
| 58 |
|
| 59 |
* Catmandu::Importer::MARC::RAW |
| 60 |
|
| 61 |
* Catmandu::Importer::MARC::Record |
| 62 |
|
| 63 |
* Catmandu::Importer::MARC::XML |
| 64 |
|
| 65 |
* Catmandu::Exporter::MARC |
| 66 |
|
| 67 |
* Catmandu::Exporter::MARC::ALEPHSEQ |
| 68 |
|
| 69 |
* Catmandu::Exporter::MARC::ISO |
| 70 |
|
| 71 |
* Catmandu::Exporter::MARC::Line |
| 72 |
|
| 73 |
* Catmandu::Exporter::MARC::MARCMaker |
| 74 |
|
| 75 |
* Catmandu::Exporter::MARC::MiJ |
| 76 |
|
| 77 |
* Catmandu::Exporter::MARC::XML |
| 78 |
|
| 79 |
* Catmandu::Fix::marc_add |
| 80 |
|
| 81 |
* Catmandu::Fix::marc_append |
| 82 |
|
| 83 |
* Catmandu::Fix::marc_copy |
| 84 |
|
| 85 |
* Catmandu::Fix::marc_cut |
| 86 |
|
| 87 |
* Catmandu::Fix::marc_decode_dollar_subfields |
| 88 |
|
| 89 |
* Catmandu::Fix::marc_in_json |
| 90 |
|
| 91 |
* Catmandu::Fix::marc_map |
| 92 |
|
| 93 |
* Catmandu::Fix::marc_paste |
| 94 |
|
| 95 |
* Catmandu::Fix::marc_remove |
| 96 |
|
| 97 |
* Catmandu::Fix::marc_replace_all |
| 98 |
|
| 99 |
* Catmandu::Fix::marc_set |
| 100 |
|
| 101 |
* Catmandu::Fix::marc_sort |
| 102 |
|
| 103 |
* Catmandu::Fix::marc_spec |
| 104 |
|
| 105 |
* Catmandu::Fix::marc_xml |
| 106 |
|
| 107 |
* Catmandu::Fix::Bind::marc_each |
| 108 |
|
| 109 |
* Catmandu::Fix::Condition::marc_all_match |
| 110 |
|
| 111 |
* Catmandu::Fix::Condition::marc_any_match |
| 112 |
|
| 113 |
* Catmandu::Fix::Condition::marc_has |
| 114 |
|
| 115 |
* Catmandu::Fix::Condition::marc_has_many |
| 116 |
|
| 117 |
* Catmandu::Fix::Condition::marc_match |
| 118 |
|
| 119 |
* Catmandu::Fix::Condition::marc_spec_has |
| 120 |
|
| 121 |
* Catmandu::Fix::Inline::marc_map |
| 122 |
|
| 123 |
* Catmandu::Fix::Inline::marc_add |
| 124 |
|
| 125 |
* Catmandu::Fix::Inline::marc_remove |
| 126 |
|
| 127 |
* Catmandu::Fix::Inline::marc_set |
| 128 |
|
| 129 |
DESCRIPTION |
| 130 |
|
| 131 |
With Catmandu, LibreCat tools abstract digital library and research |
| 132 |
services as data warehouse processes. As stores we reuse MongoDB or |
| 133 |
ElasticSearch providing us with developer friendly APIs. Catmandu works |
| 134 |
with international library standards such as MARC, MODS and Dublin |
| 135 |
Core, protocols such as OAI-PMH, SRU and open repositories such as |
| 136 |
DSpace and Fedora. And, of course, we speak the evolving Semantic Web. |
| 137 |
|
| 138 |
Follow us on http://librecat.org and read an introduction into Catmandu |
| 139 |
data processing at https://github.com/LibreCat/Catmandu/wiki. |
| 140 |
|
| 141 |
SEE ALSO |
| 142 |
|
| 143 |
Catmandu, Catmandu::Importer, Catmandu::Fix, Catmandu::Store, |
| 144 |
MARC::Spec |
| 145 |
|
| 146 |
AUTHOR |
| 147 |
|
| 148 |
Patrick Hochstenbach, <patrick.hochstenbach at ugent.be> |
| 149 |
|
| 150 |
CONTRIBUTORS |
| 151 |
|
| 152 |
* Nicolas Steenlant, <nicolas.steenlant at ugent.be> |
| 153 |
|
| 154 |
* Nicolas Franck, <nicolas.franck at ugent.be> |
| 155 |
|
| 156 |
* Johann Rolschewski, jorol at cpan.org |
| 157 |
|
| 158 |
* Chris Cormack |
| 159 |
|
| 160 |
* Robin Sheat |
| 161 |
|
| 162 |
* Carsten Klee, klee at cpan.org |
| 163 |
|
| 164 |
COPYRIGHT |
| 165 |
|
| 166 |
Copyright 2012- Patrick Hochstenbach , Carsten Klee, Johann Rolschewski |
| 167 |
|
| 168 |
LICENSE |
| 169 |
|
| 170 |
This program is free software; you can redistribute it and/or modify it |
| 171 |
under the terms of either: the GNU General Public License as published |
| 172 |
by the Free Software Foundation; or the Artistic License. |
| 173 |
|
| 174 |
See http://dev.perl.org/licenses/ for more information. |
| 175 |
|