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
58 __PACKAGE__->add_columns(
60 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
64 extra => { list => ["biblios", "authorities"] },
70 extra => { list => ["marc21", "unimarc", "normarc"] },
74 { data_type => "varchar", is_nullable => 0, size => 255 },
87 __PACKAGE__->set_primary_key("id");
89 =head1 UNIQUE CONSTRAINTS
95 =item * L</index_name>
97 =item * L</marc_field>
105 __PACKAGE__->add_unique_constraint("index_name", ["index_name", "marc_field", "marc_type"]);
109 =head2 search_marc_to_fields
113 Related object: L<Koha::Schema::Result::SearchMarcToField>
117 __PACKAGE__->has_many(
118 "search_marc_to_fields",
119 "Koha::Schema::Result::SearchMarcToField",
120 { "foreign.search_marc_map_id" => "self.id" },
121 { cascade_copy => 0, cascade_delete => 0 },
125 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-12 16:41:47
126 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nKMOxnAJST3zNN6Kxj2ynA
128 __PACKAGE__->many_to_many("search_fields", "search_marc_to_fields", "search_field");