|
Lines 2-7
Link Here
|
| 2 |
-- Default MARC matching rules for Koha |
2 |
-- Default MARC matching rules for Koha |
| 3 |
-- |
3 |
-- |
| 4 |
-- Copyright (C) 2007 LiblimeA |
4 |
-- Copyright (C) 2007 LiblimeA |
|
|
5 |
-- Part copyright (C) 2016 Universidad de El Salvador |
| 5 |
-- |
6 |
-- |
| 6 |
-- This file is part of Koha. |
7 |
-- This file is part of Koha. |
| 7 |
-- |
8 |
-- |
|
Lines 44-46
INSERT INTO matchpoint_components (matchpoint_id, sequence, tag, subfields)
Link Here
|
| 44 |
SELECT MAX(matchpoint_id), 1, '999', 'c' FROM matchpoints; |
45 |
SELECT MAX(matchpoint_id), 1, '999', 'c' FROM matchpoints; |
| 45 |
INSERT INTO matchpoint_component_norms (matchpoint_component_id, sequence, norm_routine) |
46 |
INSERT INTO matchpoint_component_norms (matchpoint_component_id, sequence, norm_routine) |
| 46 |
SELECT MAX(matchpoint_component_id), 1, 'Biblionumber' FROM matchpoint_components; |
47 |
SELECT MAX(matchpoint_component_id), 1, 'Biblionumber' FROM matchpoint_components; |
|
|
48 |
|
| 49 |
INSERT INTO marc_matchers (code, description, record_type, threshold) |
| 50 |
VALUES ('100$a', 'Personal name', 'authority', 1000); |
| 51 |
INSERT INTO matchpoints (matcher_id, search_index, score) SELECT MAX(matcher_id), 'Personal-name-heading', 1000 FROM marc_matchers; |
| 52 |
INSERT INTO matcher_matchpoints SELECT MAX(matcher_id), MAX(matchpoint_id) FROM matchpoints; |
| 53 |
INSERT INTO matchpoint_components (matchpoint_id, sequence, tag, subfields) |
| 54 |
SELECT MAX(matchpoint_id), 1, '100', 'a' FROM matchpoints; |
| 55 |
INSERT INTO matchpoint_component_norms (matchpoint_component_id, sequence, norm_routine) |
| 56 |
SELECT MAX(matchpoint_component_id), 1, '' FROM matchpoint_components; |
| 57 |
|
| 58 |
INSERT INTO marc_matchers (code, description, record_type, threshold) |
| 59 |
VALUES ('110$a', 'Corporate name', 'authority', 1000); |
| 60 |
INSERT INTO matchpoints (matcher_id, search_index, score) SELECT MAX(matcher_id), 'Corporate-name-heading', 1000 FROM marc_matchers; |
| 61 |
INSERT INTO matcher_matchpoints SELECT MAX(matcher_id), MAX(matchpoint_id) FROM matchpoints; |
| 62 |
INSERT INTO matchpoint_components (matchpoint_id, sequence, tag, subfields) |
| 63 |
SELECT MAX(matchpoint_id), 1, '110', 'a' FROM matchpoints; |
| 64 |
INSERT INTO matchpoint_component_norms (matchpoint_component_id, sequence, norm_routine) |
| 65 |
SELECT MAX(matchpoint_component_id), 1, '' FROM matchpoint_components; |
| 66 |
|
| 67 |
INSERT INTO marc_matchers (code, description, record_type, threshold) |
| 68 |
VALUES ('111$a', 'Meeting name', 'authority', 1000); |
| 69 |
INSERT INTO matchpoints (matcher_id, search_index, score) SELECT MAX(matcher_id), 'Meeting-name-heading', 1000 FROM marc_matchers; |
| 70 |
INSERT INTO matcher_matchpoints SELECT MAX(matcher_id), MAX(matchpoint_id) FROM matchpoints; |
| 71 |
INSERT INTO matchpoint_components (matchpoint_id, sequence, tag, subfields) |
| 72 |
SELECT MAX(matchpoint_id), 1, '111', 'a' FROM matchpoints; |
| 73 |
INSERT INTO matchpoint_component_norms (matchpoint_component_id, sequence, norm_routine) |
| 74 |
SELECT MAX(matchpoint_component_id), 1, '' FROM matchpoint_components; |
| 75 |
|
| 76 |
INSERT INTO marc_matchers (code, description, record_type, threshold) |
| 77 |
VALUES ('130$a', 'Uniform title', 'authority', 1000); |
| 78 |
INSERT INTO matchpoints (matcher_id, search_index, score) SELECT MAX(matcher_id), 'Title-uniform-heading', 1000 FROM marc_matchers; |
| 79 |
INSERT INTO matcher_matchpoints SELECT MAX(matcher_id), MAX(matchpoint_id) FROM matchpoints; |
| 80 |
INSERT INTO matchpoint_components (matchpoint_id, sequence, tag, subfields) |
| 81 |
SELECT MAX(matchpoint_id), 1, '130', 'a' FROM matchpoints; |
| 82 |
INSERT INTO matchpoint_component_norms (matchpoint_component_id, sequence, norm_routine) |
| 83 |
SELECT MAX(matchpoint_component_id), 1, '' FROM matchpoint_components; |
| 84 |
|
| 85 |
INSERT INTO marc_matchers (code, description, record_type, threshold) |
| 86 |
VALUES ('148$a', 'Chronological term', 'authority', 1000); |
| 87 |
INSERT INTO matchpoints (matcher_id, search_index, score) SELECT MAX(matcher_id), 'Chronological-term-heading', 1000 FROM marc_matchers; |
| 88 |
INSERT INTO matcher_matchpoints SELECT MAX(matcher_id), MAX(matchpoint_id) FROM matchpoints; |
| 89 |
INSERT INTO matchpoint_components (matchpoint_id, sequence, tag, subfields) |
| 90 |
SELECT MAX(matchpoint_id), 1, '148', 'a' FROM matchpoints; |
| 91 |
INSERT INTO matchpoint_component_norms (matchpoint_component_id, sequence, norm_routine) |
| 92 |
SELECT MAX(matchpoint_component_id), 1, '' FROM matchpoint_components; |
| 93 |
|
| 94 |
INSERT INTO marc_matchers (code, description, record_type, threshold) |
| 95 |
VALUES ('150$a', 'Topical term', 'authority', 1000); |
| 96 |
INSERT INTO matchpoints (matcher_id, search_index, score) SELECT MAX(matcher_id), 'Subject-topical-heading', 1000 FROM marc_matchers; |
| 97 |
INSERT INTO matcher_matchpoints SELECT MAX(matcher_id), MAX(matchpoint_id) FROM matchpoints; |
| 98 |
INSERT INTO matchpoint_components (matchpoint_id, sequence, tag, subfields) |
| 99 |
SELECT MAX(matchpoint_id), 1, '150', 'a' FROM matchpoints; |
| 100 |
INSERT INTO matchpoint_component_norms (matchpoint_component_id, sequence, norm_routine) |
| 101 |
SELECT MAX(matchpoint_component_id), 1, '' FROM matchpoint_components; |
| 102 |
|
| 103 |
INSERT INTO marc_matchers (code, description, record_type, threshold) |
| 104 |
VALUES ('151$a', 'Geographic name', 'authority', 1000); |
| 105 |
INSERT INTO matchpoints (matcher_id, search_index, score) SELECT MAX(matcher_id), 'Name-geographic-heading', 1000 FROM marc_matchers; |
| 106 |
INSERT INTO matcher_matchpoints SELECT MAX(matcher_id), MAX(matchpoint_id) FROM matchpoints; |
| 107 |
INSERT INTO matchpoint_components (matchpoint_id, sequence, tag, subfields) |
| 108 |
SELECT MAX(matchpoint_id), 1, '151', 'a' FROM matchpoints; |
| 109 |
INSERT INTO matchpoint_component_norms (matchpoint_component_id, sequence, norm_routine) |
| 110 |
SELECT MAX(matchpoint_component_id), 1, '' FROM matchpoint_components; |
| 111 |
|
| 112 |
INSERT INTO marc_matchers (code, description, record_type, threshold) |
| 113 |
VALUES ('155$a', 'Genre form', 'authority', 1000); |
| 114 |
INSERT INTO matchpoints (matcher_id, search_index, score) SELECT MAX(matcher_id), 'Term-genre-form-heading', 1000 FROM marc_matchers; |
| 115 |
INSERT INTO matcher_matchpoints SELECT MAX(matcher_id), MAX(matchpoint_id) FROM matchpoints; |
| 116 |
INSERT INTO matchpoint_components (matchpoint_id, sequence, tag, subfields) |
| 117 |
SELECT MAX(matchpoint_id), 1, '155', 'a' FROM matchpoints; |
| 118 |
INSERT INTO matchpoint_component_norms (matchpoint_component_id, sequence, norm_routine) |
| 119 |
SELECT MAX(matchpoint_component_id), 1, '' FROM matchpoint_components; |