Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jorol/catmandu-exl

Tools for ALEPHXML and PNX records
https://github.com/jorol/catmandu-exl

Last synced: 9 days ago
JSON representation

Tools for ALEPHXML and PNX records

Awesome Lists containing this project

README

        

# NAME

Catmandu::EXL - Tools for ALEPHXML and PNX records

# SYNOPSIS

# On the command line

catmandu convert MARC --type ALEPHXML to YAML < ./t/aleph.xml
catmandu convert MARC --type ALEPHXML --fix ./t/pnx.fix to PNX < ./t/aleph.xml

# In Perl

use EXL::Parser::ALEPHXML;

my $parser = EXL::Parser::ALEPHXML->new( './t/aleph.xml' );
my $record = $parser->next();

# In Perl with Catmandu

use Catmandu;
use Catmandu::Importer::MARC;

my $importer = Catmandu::Importer::MARC->new(file => "./t/aleph.xml", type => "ALEPHXML");
my $records = $importer->to_array();

# DESCRIPTION

_Experimental release_

Catmandu::EXL provides methods, classes, and functions to process ALEPHXML and PNX records in Perl.

ALEPHXML is an export data format of Aleph library systems used in Germany. It is a mix of the Machine Readable Cataloging format (MARC) and the Maschinelles Austauschformat fuer Bibliotheken (MAB), see [https://wiki1.hbz-nrw.de/pages/viewpage.action?pageId=13238276](https://wiki1.hbz-nrw.de/pages/viewpage.action?pageId=13238276) for a more detailed description.

Primo Normalized XML (PNX) is a data format for the Primo discovery system.

Records in Catmandu::EXL are encoded either as as array of arrays, the inner arrays representing record fields, or as an object with two fields, \_id and record, the latter holding the record as array of arrays, and the former holding the record identifier, stored in field 001.

# AUTHOR

Johann Rolschewski

# COPYRIGHT

Copyright 2015- Johann Rolschewski

# LICENSE

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.

# SEE ALSO

[Catmandu](https://metacpan.org/pod/Catmandu).