Bug 24545: Fix license statements
[koha-equinox.git] / installer / data / mysql / uk-UA / marcflavour / marc21 / optional / marc21_default_matching_rules.sql
1 -- Default MARC matching rules for Koha
2 --
3 -- Copyright (C) 2007 LiblimeA
4 --
5 -- This file is part of Koha.
6 --
7 -- Koha is free software; you can redistribute it and/or modify it
8 -- under the terms of the GNU General Public License as published by
9 -- the Free Software Foundation; either version 3 of the License, or
10 -- (at your option) any later version.
11 --
12 -- Koha is distributed in the hope that it will be useful, but
13 -- WITHOUT ANY WARRANTY; without even the implied warranty of
14 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 -- GNU General Public License for more details.
16 --
17 -- You should have received a copy of the GNU General Public License
18 -- along with Koha; if not, see <http://www.gnu.org/licenses>.
19
20 INSERT INTO marc_matchers (code, description, record_type, threshold)
21     VALUES ('ISBN', '020$a', 'biblio', 1000);
22 INSERT INTO matchpoints (matcher_id, search_index, score) SELECT MAX(matcher_id), 'isbn', 1000 FROM marc_matchers;
23 INSERT INTO matcher_matchpoints SELECT MAX(matcher_id), MAX(matchpoint_id) FROM matchpoints;
24 INSERT INTO matchpoint_components (matchpoint_id, sequence, tag, subfields)
25     SELECT MAX(matchpoint_id), 1, '020', 'a' FROM matchpoints;
26 INSERT INTO matchpoint_component_norms (matchpoint_component_id, sequence, norm_routine)
27     SELECT MAX(matchpoint_component_id), 1, 'ISBN' FROM matchpoint_components;
28
29 INSERT INTO marc_matchers (code, description, record_type, threshold)
30     VALUES ('ISSN', '022$a', 'biblio', 1000);
31 INSERT INTO matchpoints (matcher_id, search_index, score) SELECT MAX(matcher_id), 'issn', 1000 FROM marc_matchers;
32 INSERT INTO matcher_matchpoints SELECT MAX(matcher_id), MAX(matchpoint_id) FROM matchpoints;
33 INSERT INTO matchpoint_components (matchpoint_id, sequence, tag, subfields)
34     SELECT MAX(matchpoint_id), 1, '022', 'a' FROM matchpoints;
35 INSERT INTO matchpoint_component_norms (matchpoint_component_id, sequence, norm_routine)
36     SELECT MAX(matchpoint_component_id), 1, 'ISSN' FROM matchpoint_components;
37
38 INSERT INTO marc_matchers (code, description, record_type, threshold)
39     VALUES ('KohaBiblio', '999$c', 'biblio', 1000);
40 INSERT INTO matchpoints (matcher_id, search_index, score) SELECT MAX(matcher_id), 'local-number', 1000 FROM marc_matchers;
41 INSERT INTO matcher_matchpoints SELECT MAX(matcher_id), MAX(matchpoint_id) FROM matchpoints;
42 INSERT INTO matchpoint_components (matchpoint_id, sequence, tag, subfields)
43     SELECT MAX(matchpoint_id), 1, '999', 'c' FROM matchpoints;
44 INSERT INTO matchpoint_component_norms (matchpoint_component_id, sequence, norm_routine)
45     SELECT MAX(matchpoint_component_id), 1, 'Biblionumber' FROM matchpoint_components;