<<

NAME

Koha::ERM::EHoldings::Title - Koha ERM Title Object class

API

Class Methods

store

resources

Returns the resources linked to this title

read_file

Reads a KBART file of titles to provide report headers and lines to be processed. Automatically detects whether the file is TSV or CSV based on the first 5 lines

get_valid_headers

Returns a list of permitted headers in a KBART phase II file

calculate_chunked_params_size

Calculates average line size to work out how many lines to chunk a large file into Uses only 75% of the max_allowed_packet as an upper limit

is_file_too_large

Calculates the final size of the background job object that will need storing to check if we exceed the max_allowed_packet

_rescue_EBSCO_files

EBSCO have an incorrect spelling for "preceding_publication_title_id" in all of their KBART files (preceding is spelled with a double 'e'). This means all of their KBART files fail to import using the current methodology. There is no simple way of finding out who the vendor is before importing so all KBART files from any vendor are going to have to be checked for this spelling and corrected.

_detect_delimiter_and_quote

Identifies the delimiter and the quote character used in the KBART file and returns both.

Internal methods

_type

<<