logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Catmandu::Importer::MODS - Catmandu Importer for importing mods records

Configuration

       type
           Set  to  "xml"  by  default,  as MODS is usually expressed in XML. Use "json" (or provide a file with
           extension ".json") for a custom JSON format, introduced in module MODS::Record.

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.

Name

       Catmandu::Importer::MODS - Catmandu Importer for importing mods records

See Also

       See Catmandu::MODS for more information about MODS and Catmandu.

perl v5.40.1                                       2025-06-08                      Catmandu::Importer::MODS(3pm)

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
         });

See Also