Ukranian sql updates Serhij Dubyk
[koha.git] / installer / data / mysql / uk-UA / marcflavour / unimarc / optional / unimarc_default_matching_rules.sql
1 -- Default UNIMARC matching rules for Koha
2 --
3 -- This file is part of Koha.
4 --
5 -- Koha is free software; you can redistribute it and/or modify it under the
6 -- terms of the GNU General Public License as published by the Free Software
7 -- Foundation; either version 2 of the License, or (at your option) any later
8 -- version.
9 -- 
10 -- Koha is distributed in the hope that it will be useful, but WITHOUT ANY
11 -- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12 -- A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
13 -- 
14 -- You should have received a copy of the GNU General Public License along with
15 -- Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
16 -- Suite 330, Boston, MA  02111-1307 USA
17
18 INSERT INTO marc_matchers (code, description, record_type, threshold) 
19     VALUES ('ISBN', '010$a', 'biblio', 1000);
20 INSERT INTO matchpoints (matcher_id, search_index, score) SELECT MAX(matcher_id), 'isbn', 1000 FROM marc_matchers;
21 INSERT INTO matcher_matchpoints SELECT MAX(matcher_id), MAX(matchpoint_id) FROM matchpoints;
22 INSERT INTO matchpoint_components (matchpoint_id, sequence, tag, subfields) 
23     SELECT MAX(matchpoint_id), 1, '010', 'a' FROM matchpoints;
24 INSERT INTO matchpoint_component_norms (matchpoint_component_id, sequence, norm_routine) 
25     SELECT MAX(matchpoint_component_id), 1, 'ISBN' FROM matchpoint_components;
26
27 INSERT INTO marc_matchers (code, description, record_type, threshold) 
28     VALUES ('ISSN', '011$a', 'biblio', 1000);
29 INSERT INTO matchpoints (matcher_id, search_index, score) SELECT MAX(matcher_id), 'isbn', 1000 FROM marc_matchers;
30 INSERT INTO matcher_matchpoints SELECT MAX(matcher_id), MAX(matchpoint_id) FROM matchpoints;
31 INSERT INTO matchpoint_components (matchpoint_id, sequence, tag, subfields) 
32     SELECT MAX(matchpoint_id), 1, '011', 'a' FROM matchpoints;
33 INSERT INTO matchpoint_component_norms (matchpoint_component_id, sequence, norm_routine) 
34     SELECT MAX(matchpoint_component_id), 1, 'ISSN' FROM matchpoint_components;
35