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