1 -- Default UNIMARC matching rules for Koha
3 -- This file is part of Koha.
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
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.
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
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;
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;