2 -- Default MARC matching rules for Koha
4 -- Copyright (C) 2007 LiblimeA
6 -- This file is part of Koha.
8 -- Koha is free software; you can redistribute it and/or modify it under the
9 -- terms of the GNU General Public License as published by the Free Software
10 -- Foundation; either version 2 of the License, or (at your option) any later
13 -- Koha is distributed in the hope that it will be useful, but WITHOUT ANY
14 -- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
15 -- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 -- You should have received a copy of the GNU General Public License along with
18 -- Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
19 -- Suite 330, Boston, MA 02111-1307 USA
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;
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), 'isbn', 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;