2 package Koha::Schema::Result::SearchMarcMap;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::SearchMarcMap
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<search_marc_map>
22 __PACKAGE__->table("search_marc_map");
35 extra: {list => ["biblios","authorities"]}
38 what storage index this map is for
43 extra: {list => ["marc21","unimarc","normarc"]}
46 what MARC type this map is for
54 the MARC specifier for this field
62 true if a facet field should be generated for this
66 __PACKAGE__->add_columns(
68 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
72 extra => { list => ["biblios", "authorities"] },
78 extra => { list => ["marc21", "unimarc", "normarc"] },
82 { data_type => "varchar", is_nullable => 0, size => 255 },
84 { data_type => "tinyint", default_value => 0, is_nullable => 1 },
97 __PACKAGE__->set_primary_key("id");
99 =head1 UNIQUE CONSTRAINTS
101 =head2 C<index_name_2>
105 =item * L</index_name>
107 =item * L</marc_type>
109 =item * L</marc_field>
115 __PACKAGE__->add_unique_constraint("index_name_2", ["index_name", "marc_type", "marc_field"]);
119 =head2 search_marc_to_fields
123 Related object: L<Koha::Schema::Result::SearchMarcToField>
127 __PACKAGE__->has_many(
128 "search_marc_to_fields",
129 "Koha::Schema::Result::SearchMarcToField",
130 { "foreign.search_marc_map_id" => "self.id" },
131 { cascade_copy => 0, cascade_delete => 0 },
138 Composing rels: L</search_marc_to_fields> -> search_field
142 __PACKAGE__->many_to_many("search_fields", "search_marc_to_fields", "search_field");
145 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-06-10 14:32:07
146 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9Xz04ajKUJXxwJ5pdo+cUQ
149 # You can replace this text with custom code or comments, and it will be preserved on regeneration