|
Lines 48-58
the human readable name of the field, for display
Link Here
|
| 48 |
=head2 type |
48 |
=head2 type |
| 49 |
|
49 |
|
| 50 |
data_type: 'enum' |
50 |
data_type: 'enum' |
| 51 |
extra: {list => ["","string","date","number","boolean","sum"]} |
51 |
extra: {list => ["","string","date","number","boolean","sum","isbn","stdno"]} |
| 52 |
is_nullable: 0 |
52 |
is_nullable: 0 |
| 53 |
|
53 |
|
| 54 |
what type of data this holds, relevant when storing it in the search engine |
54 |
what type of data this holds, relevant when storing it in the search engine |
| 55 |
|
55 |
|
|
|
56 |
=head2 weight |
| 57 |
|
| 58 |
data_type: 'decimal' |
| 59 |
is_nullable: 1 |
| 60 |
size: [5,2] |
| 61 |
|
| 56 |
=cut |
62 |
=cut |
| 57 |
|
63 |
|
| 58 |
__PACKAGE__->add_columns( |
64 |
__PACKAGE__->add_columns( |
|
Lines 65-73
__PACKAGE__->add_columns(
Link Here
|
| 65 |
"type", |
71 |
"type", |
| 66 |
{ |
72 |
{ |
| 67 |
data_type => "enum", |
73 |
data_type => "enum", |
| 68 |
extra => { list => ["", "string", "date", "number", "boolean", "sum"] }, |
74 |
extra => { |
|
|
75 |
list => ["", "string", "date", "number", "boolean", "sum", "isbn", "stdno"], |
| 76 |
}, |
| 69 |
is_nullable => 0, |
77 |
is_nullable => 0, |
| 70 |
}, |
78 |
}, |
|
|
79 |
"weight", |
| 80 |
{ data_type => "decimal", is_nullable => 1, size => [5, 2] }, |
| 71 |
); |
81 |
); |
| 72 |
|
82 |
|
| 73 |
=head1 PRIMARY KEY |
83 |
=head1 PRIMARY KEY |
|
Lines 114-121
__PACKAGE__->has_many(
Link Here
|
| 114 |
); |
124 |
); |
| 115 |
|
125 |
|
| 116 |
|
126 |
|
| 117 |
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-23 13:30:43 |
127 |
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-05-23 13:34:49 |
| 118 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1IenQWmCO16tJ/nIFTFYug |
128 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wB00F2omQ2QadnIxg8keIQ |
| 119 |
|
129 |
|
| 120 |
__PACKAGE__->many_to_many("search_marc_maps", "search_marc_to_fields", "search_marc_map"); |
130 |
__PACKAGE__->many_to_many("search_marc_maps", "search_marc_to_fields", "search_marc_map"); |
| 121 |
|
131 |
|
| 122 |
- |
|
|