Catmandu::Importer::MODS(3pm)

Catmandu::Importer::MODS3pm

Catmandu importer for importing mods records

Usage

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

Overview

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. Use "json" (or provide a file with extension ".json") for a custom JSON format, introduced in module MODS::Record.

Releases

4 releases since Debian 10 (Buster); the text changed 2 times.

  1. 10
  2. 11
  3. 12–13

From libcatmandu-mods-perl 0.31-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.