/
MarcSubfieldStructure.pm
34 lines (27 loc) · 1.46 KB
/
MarcSubfieldStructure.pm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package Koha::Schema::MarcSubfieldStructure;
use strict;
use base qw(Koha::Schema::DB::Object::AutoBase1);
__PACKAGE__->meta->setup(
table => 'marc_subfield_structure',
columns => [
tagfield => { type => 'varchar', length => 3, not_null => 1 },
tagsubfield => { type => 'varchar', length => 1, not_null => 1 },
liblibrarian => { type => 'varchar', default => '', length => 255, not_null => 1 },
libopac => { type => 'varchar', default => '', length => 255, not_null => 1 },
repeatable => { type => 'integer', default => '0', not_null => 1 },
mandatory => { type => 'integer', default => '0', not_null => 1 },
kohafield => { type => 'varchar', length => 40 },
tab => { type => 'integer' },
authorised_value => { type => 'varchar', length => 20 },
authtypecode => { type => 'varchar', length => 20 },
value_builder => { type => 'varchar', length => 80 },
isurl => { type => 'integer' },
hidden => { type => 'integer' },
frameworkcode => { type => 'varchar', length => 4, not_null => 1 },
seealso => { type => 'varchar', length => 1100 },
link => { type => 'varchar', length => 80 },
defaultvalue => { type => 'text', length => 65535 },
],
primary_key_columns => [ 'frameworkcode', 'tagfield', 'tagsubfield' ],
);
1;