ImportKBARTFile - Create new eHoldings titles from a KBART file
This is a subclass of Koha::BackgroundJob.
Define the job type of this job.
Process the import.
Enqueue the new job
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
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)
Checks whether this title already exists to avoid duplicates
Creates a resource for a newly stored title.
Gets and formats a date for storing on the resource. Dates can come from files in YYYY, YYYY-MM or YYYY-MM-DD format