<<

NAME

Koha::Schema::Result::BorrowerAttributeType

TABLE: borrower_attribute_types

ACCESSORS

code

  data_type: 'varchar'
  is_nullable: 0
  size: 64

unique key used to identify each custom field

description

  data_type: 'varchar'
  is_nullable: 0
  size: 255

description for each custom field

repeatable

  data_type: 'tinyint'
  default_value: 0
  is_nullable: 0

defines whether one patron/borrower can have multiple values for this custom field (1 for yes, 0 for no)

unique_id

  data_type: 'tinyint'
  default_value: 0
  is_nullable: 0

defines if this value needs to be unique (1 for yes, 0 for no)

is_date

  data_type: 'tinyint'
  default_value: 0
  is_nullable: 0

defines if this field is displayed as a date

opac_display

  data_type: 'tinyint'
  default_value: 0
  is_nullable: 0

defines if this field is visible to patrons on their account in the OPAC (1 for yes, 0 for no)

opac_editable

  data_type: 'tinyint'
  default_value: 0
  is_nullable: 0

defines if this field is editable by patrons on their account in the OPAC (1 for yes, 0 for no)

staff_searchable

  data_type: 'tinyint'
  default_value: 0
  is_nullable: 0

defines if this field is searchable via the patron search in the staff interface (1 for yes, 0 for no)

searched_by_default

  data_type: 'tinyint'
  default_value: 0
  is_nullable: 0

defines if this field is included in "Standard" patron searches in the staff interface (1 for yes, 0 for no)

authorised_value_category

  data_type: 'varchar'
  is_nullable: 1
  size: 32

foreign key from authorised_values that links this custom field to an authorized value category

display_checkout

  data_type: 'tinyint'
  default_value: 0
  is_nullable: 0

defines if this field displays in checkout screens

category_code

  data_type: 'varchar'
  is_foreign_key: 1
  is_nullable: 1
  size: 10

defines a category for an attribute_type

class

  data_type: 'varchar'
  default_value: (empty string)
  is_nullable: 0
  size: 255

defines a class for an attribute_type

keep_for_pseudonymization

  data_type: 'tinyint'
  default_value: 0
  is_nullable: 0

defines if this field is copied to anonymized_borrower_attributes (1 for yes, 0 for no)

mandatory

  data_type: 'tinyint'
  default_value: 0
  is_nullable: 0

defines if the attribute is mandatory or not

PRIMARY KEY

RELATIONS

borrower_attribute_types_branches

Type: has_many

Related object: Koha::Schema::Result::BorrowerAttributeTypesBranch

borrower_attributes

Type: has_many

Related object: Koha::Schema::Result::BorrowerAttribute

category_code

Type: belongs_to

Related object: Koha::Schema::Result::Category

pseudonymized_borrower_attributes

Type: has_many

Related object: Koha::Schema::Result::PseudonymizedBorrowerAttribute

<<