-
-
04 Nov 2015 09:18:39 UTC
- Distribution: Catmandu-MODS
- Module version: 0.31
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (2861 / 18 / 10)
- Kwalitee
Bus factor: 3- 75.00% Coverage
- License: perl_5
- Perl: v5.10.1
- Activity
24 month- Tools
- Download (23.88KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 4 contributors-
Nicolas Franck
-
Christian Pietsch
-
Jakob Voss
-
njfranck
NAME
Catmandu::Importer::MODS - Catmandu Importer for importing mods records
SYNOPSIS
use Catmandu::Importer::MODS; my $importer = Catmandu::Importer::MODS->new(file => "modsCollection.xml"); my $numModsElements = $importer->each(sub{ my $modsElement = shift; # a MODS::Element::Mods object });
DESCRIPTION
This Catmandu::Importer reads MODS records to be processed with Catmandu. In case of a simple "mods" document, one MODS::Element::Mods item is imported. In case of a "modsCollection", several items are imported.
See Catmandu::Importer, Catmandu::Iterable, Catmandu::Logger and Catmandu::Fixable for methods and options derived from these modules.
Make sure your files are expressed in UTF-8.
CONFIGURATION
- type
-
Set to
xml
by default, as MODS is usually expressed in XML. Usejson
(or provide a file with extension.json
) for a custom JSON format, introduced in module MODS::Record.
SEE ALSO
See Catmandu::MODS for more information about MODS and Catmandu.
Module Install Instructions
To install Catmandu::MODS, copy and paste the appropriate command in to your terminal.
cpanm Catmandu::MODS
perl -MCPAN -e shell install Catmandu::MODS
For more information on module installation, please visit the detailed CPAN module installation guide.