Voile.Migration.LeftoverItemImporter (Voile v0.1.31)

Copy Markdown View Source

Imports leftover item data from a CSV list of item_codes that were not imported initially.

This script searches the original item CSV files to find the full rows for the given item_codes, then attempts to import them using the same logic as ItemImporter.

Expected input: CSV file with one column: item_code (legacy item codes)

Summary

Types

cache()

@type cache() :: %{
  biblio_map: map(),
  unit_map: map(),
  resource_class_map: map(),
  collection_map: map()
}

Functions

import_from_csv(csv_path, unit_id \\ nil, opts \\ [])