<<

NAME

ImportKBARTFile - Create new eHoldings titles from a KBART file

This is a subclass of Koha::BackgroundJob.

API

Class methods

job_type

Define the job type of this job.

process

Process the import.

enqueue

Enqueue the new job

_format_title

Formats a title to fit the names of the database fields in Koha

Kbart field "title_id" = "external_id" in Koha Kbart field "coverage_notes" = "notes" in Koha

_create_title_hash_from_line_data

Takes a line and creates a hash of the values mapped to the column headings Only accepts fields that are in the list of permitted KBART fields, other fields are ignored (This is identified to the user on the background job status page)

_check_for_matching_title

Checks whether this title already exists to avoid duplicates

_create_linked_resource

Creates a resource for a newly stored title.

_get_first_and_last_issue_dates

Gets and formats a date for storing on the resource. Dates can come from files in YYYY, YYYY-MM or YYYY-MM-DD format

<<