Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/librecat/catmandu-sru
Catmandu module for working with SRU data.
https://github.com/librecat/catmandu-sru
Last synced: 4 days ago
JSON representation
Catmandu module for working with SRU data.
- Host: GitHub
- URL: https://github.com/librecat/catmandu-sru
- Owner: LibreCat
- Created: 2012-10-05T13:51:35.000Z (about 12 years ago)
- Default Branch: dev
- Last Pushed: 2021-06-22T19:19:14.000Z (over 3 years ago)
- Last Synced: 2024-06-18T21:32:14.262Z (5 months ago)
- Language: Perl
- Homepage: https://metacpan.org/release/Catmandu-SRU
- Size: 183 KB
- Stars: 5
- Watchers: 12
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
Awesome Lists containing this project
README
# NAME
Catmandu::SRU - Catmandu module for working with SRU data
# STATUS
[![Build Status](https://travis-ci.com/LibreCat/Catmandu-SRU.svg?branch=master)](https://travis-ci.com/LibreCat/Catmandu-SRU)
[![Coverage](https://coveralls.io/repos/LibreCat/Catmandu-SRU/badge.png?branch=master)](https://coveralls.io/r/LibreCat/Catmandu-SRU)
[![CPANTS kwalitee](http://cpants.cpanauthors.org/dist/Catmandu-SRU.png)](http://cpants.cpanauthors.org/dist/Catmandu-SRU)# SYNOPSIS
# 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 --recordSchema marcxml
$ catmandu convert SRU --base http://www.unicat.be/sru --query data --recordSchema 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;
# MODULES
- [Catmandu::Importer::SRU](https://metacpan.org/pod/Catmandu::Importer::SRU)
- [Catmandu::Importer::SRU::Parser](https://metacpan.org/pod/Catmandu::Importer::SRU::Parser)
- [Catmandu::Importer::SRU::Parser::raw](https://metacpan.org/pod/Catmandu::Importer::SRU::Parser::raw)
- [Catmandu::Importer::SRU::Parser::simple](https://metacpan.org/pod/Catmandu::Importer::SRU::Parser::simple)
- [Catmandu::Importer::SRU::Parser::struct](https://metacpan.org/pod/Catmandu::Importer::SRU::Parser::struct)
- [Catmandu::Importer::SRU::Parser::marcxml](https://metacpan.org/pod/Catmandu::Importer::SRU::Parser::marcxml)
- [Catmandu::Importer::SRU::Parser::meta](https://metacpan.org/pod/Catmandu::Importer::SRU::Parser::meta)
- [Catmandu::Importer::SRU::Parser::mods](https://metacpan.org/pod/Catmandu::Importer::SRU::Parser::mods)
- [Catmandu::Importer::SRU::Parser::picaxml](https://metacpan.org/pod/Catmandu::Importer::SRU::Parser::picaxml)
- [Catmandu::Fix::search\_sru](https://metacpan.org/pod/Catmandu::Fix::search_sru)# SEE ALSO
[Catmandu](https://metacpan.org/pod/Catmandu),
[Catmandu::Importer](https://metacpan.org/pod/Catmandu::Importer),
[Catmandu::Fix](https://metacpan.org/pod/Catmandu::Fix),
[Catmandu::Exporter](https://metacpan.org/pod/Catmandu::Exporter),
[Catmandu::MARC](https://metacpan.org/pod/Catmandu::MARC)# AUTHOR
Wouter Willaert, ``
# CONTRIBUTORS
Patrick Hochstenbach, ``
Nicolas Steenlant, ``
Jakob Voss ``
Johann Rolschewski ``
# LICENSE AND COPYRIGHT
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/](http://dev.perl.org/licenses/) for more information.