|
Lines 53-81
what MARC type this map is for
Link Here
|
| 53 |
|
53 |
|
| 54 |
the MARC specifier for this field |
54 |
the MARC specifier for this field |
| 55 |
|
55 |
|
| 56 |
=head2 facet |
|
|
| 57 |
|
| 58 |
data_type: 'tinyint' |
| 59 |
default_value: 0 |
| 60 |
is_nullable: 1 |
| 61 |
|
| 62 |
true if a facet field should be generated for this |
| 63 |
|
| 64 |
=head2 suggestible |
| 65 |
|
| 66 |
data_type: 'tinyint' |
| 67 |
default_value: 0 |
| 68 |
is_nullable: 1 |
| 69 |
|
| 70 |
true if this field can be used to generate suggestions for browse |
| 71 |
|
| 72 |
=head2 sort |
| 73 |
|
| 74 |
data_type: 'tinyint' |
| 75 |
is_nullable: 1 |
| 76 |
|
| 77 |
true/false creates special sort handling, null doesn't |
| 78 |
|
| 79 |
=cut |
56 |
=cut |
| 80 |
|
57 |
|
| 81 |
__PACKAGE__->add_columns( |
58 |
__PACKAGE__->add_columns( |
|
Lines 95-106
__PACKAGE__->add_columns(
Link Here
|
| 95 |
}, |
72 |
}, |
| 96 |
"marc_field", |
73 |
"marc_field", |
| 97 |
{ data_type => "varchar", is_nullable => 0, size => 255 }, |
74 |
{ data_type => "varchar", is_nullable => 0, size => 255 }, |
| 98 |
"facet", |
|
|
| 99 |
{ data_type => "tinyint", default_value => 0, is_nullable => 1 }, |
| 100 |
"suggestible", |
| 101 |
{ data_type => "tinyint", default_value => 0, is_nullable => 1 }, |
| 102 |
"sort", |
| 103 |
{ data_type => "tinyint", is_nullable => 1 }, |
| 104 |
); |
75 |
); |
| 105 |
|
76 |
|
| 106 |
=head1 PRIMARY KEY |
77 |
=head1 PRIMARY KEY |
|
Lines 115-120
__PACKAGE__->add_columns(
Link Here
|
| 115 |
|
86 |
|
| 116 |
__PACKAGE__->set_primary_key("id"); |
87 |
__PACKAGE__->set_primary_key("id"); |
| 117 |
|
88 |
|
|
|
89 |
=head1 UNIQUE CONSTRAINTS |
| 90 |
|
| 91 |
=head2 C<index_name> |
| 92 |
|
| 93 |
=over 4 |
| 94 |
|
| 95 |
=item * L</index_name> |
| 96 |
|
| 97 |
=item * L</marc_field> |
| 98 |
|
| 99 |
=item * L</marc_type> |
| 100 |
|
| 101 |
=back |
| 102 |
|
| 103 |
=cut |
| 104 |
|
| 105 |
__PACKAGE__->add_unique_constraint("index_name", ["index_name", "marc_field", "marc_type"]); |
| 106 |
|
| 118 |
=head1 RELATIONS |
107 |
=head1 RELATIONS |
| 119 |
|
108 |
|
| 120 |
=head2 search_marc_to_fields |
109 |
=head2 search_marc_to_fields |
|
Lines 132-150
__PACKAGE__->has_many(
Link Here
|
| 132 |
{ cascade_copy => 0, cascade_delete => 0 }, |
121 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 133 |
); |
122 |
); |
| 134 |
|
123 |
|
| 135 |
=head2 search_fields |
|
|
| 136 |
|
| 137 |
Type: many_to_many |
| 138 |
|
| 139 |
Composing rels: L</search_marc_to_fields> -> search_field |
| 140 |
|
| 141 |
=cut |
| 142 |
|
| 143 |
__PACKAGE__->many_to_many("search_fields", "search_marc_to_fields", "search_field"); |
| 144 |
|
| 145 |
|
124 |
|
| 146 |
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-09-25 15:20:52 |
125 |
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-12 16:41:47 |
| 147 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:o579otqUGA8XhO+NYv99dw |
126 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nKMOxnAJST3zNN6Kxj2ynA |
| 148 |
|
127 |
|
| 149 |
|
128 |
|
| 150 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
129 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |