<<

NAME

Koha::Schema::Result::ImportBatch

TABLE: import_batches

ACCESSORS

import_batch_id

  data_type: 'integer'
  is_auto_increment: 1
  is_nullable: 0

unique identifier and primary key

matcher_id

  data_type: 'integer'
  is_nullable: 1

the id of the match rule used (matchpoints.matcher_id)

template_id

  data_type: 'integer'
  is_nullable: 1

branchcode

  data_type: 'varchar'
  is_nullable: 1
  size: 10

num_records

  data_type: 'integer'
  default_value: 0
  is_nullable: 0

number of records in the file

num_items

  data_type: 'integer'
  default_value: 0
  is_nullable: 0

number of items in the file

upload_timestamp

  data_type: 'timestamp'
  datetime_undef_if_invalid: 1
  default_value: current_timestamp
  is_nullable: 0

date and time the file was uploaded

overlay_action

  data_type: 'enum'
  default_value: 'create_new'
  extra: {list => ["replace","create_new","use_template","ignore"]}
  is_nullable: 0

how to handle duplicate records

nomatch_action

  data_type: 'enum'
  default_value: 'create_new'
  extra: {list => ["create_new","ignore"]}
  is_nullable: 0

how to handle records where no match is found

item_action

  data_type: 'enum'
  default_value: 'always_add'
  extra: {list => ["always_add","add_only_for_matches","add_only_for_new","ignore","replace"]}
  is_nullable: 0

what to do with item records

import_status

  data_type: 'enum'
  default_value: 'staging'
  extra: {list => ["staging","staged","importing","imported","reverting","reverted","cleaned"]}
  is_nullable: 0

the status of the imported file

batch_type

  data_type: 'enum'
  default_value: 'batch'
  extra: {list => ["batch","z3950","webservice"]}
  is_nullable: 0

where this batch has come from

record_type

  data_type: 'enum'
  default_value: 'biblio'
  extra: {list => ["biblio","auth","holdings"]}
  is_nullable: 0

type of record in the batch

file_name

  data_type: 'varchar'
  is_nullable: 1
  size: 100

the name of the file uploaded

comments

  data_type: 'longtext'
  is_nullable: 1

any comments added when the file was uploaded

profile_id

  data_type: 'integer'
  is_foreign_key: 1
  is_nullable: 1

PRIMARY KEY

RELATIONS

import_records

Type: has_many

Related object: Koha::Schema::Result::ImportRecord

profile

Type: belongs_to

Related object: Koha::Schema::Result::ImportBatchProfile

koha_object_class

  Koha Object class

koha_objects_class

  Koha Objects class

<<