From b60af8932995456d9c6047f52957fac9d6baa957 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Thu, 3 Sep 2015 09:53:18 +0100
Subject: [PATCH] Bug 14472: (follow-up) Wrong ISSN search index in record
 matching rules

Follow-up for
- it-IT unimarc
- ru-RU unimarc
- uk-UA unimarc

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
---
 .../marcflavour/unimarc/opzionali/unimarc_default_matching_rules.sql    | 2 +-
 .../marcflavour/unimarc/optional/unimarc_default_matching_rules.sql     | 2 +-
 .../marcflavour/unimarc/optional/unimarc_default_matching_rules.sql     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/installer/data/mysql/it-IT/marcflavour/unimarc/opzionali/unimarc_default_matching_rules.sql b/installer/data/mysql/it-IT/marcflavour/unimarc/opzionali/unimarc_default_matching_rules.sql
index 772bc68..96bb223 100644
--- a/installer/data/mysql/it-IT/marcflavour/unimarc/opzionali/unimarc_default_matching_rules.sql
+++ b/installer/data/mysql/it-IT/marcflavour/unimarc/opzionali/unimarc_default_matching_rules.sql
@@ -26,7 +26,7 @@ INSERT INTO matchpoint_component_norms (matchpoint_component_id, sequence, norm_
 
 INSERT INTO marc_matchers (code, description, record_type, threshold)
     VALUES ('ISSN', '011$a', 'biblio', 1000);
-INSERT INTO matchpoints (matcher_id, search_index, score) SELECT MAX(matcher_id), 'isbn', 1000 FROM marc_matchers;
+INSERT INTO matchpoints (matcher_id, search_index, score) SELECT MAX(matcher_id), 'issn', 1000 FROM marc_matchers;
 INSERT INTO matcher_matchpoints SELECT MAX(matcher_id), MAX(matchpoint_id) FROM matchpoints;
 INSERT INTO matchpoint_components (matchpoint_id, sequence, tag, subfields)
     SELECT MAX(matchpoint_id), 1, '011', 'a' FROM matchpoints;
diff --git a/installer/data/mysql/ru-RU/marcflavour/unimarc/optional/unimarc_default_matching_rules.sql b/installer/data/mysql/ru-RU/marcflavour/unimarc/optional/unimarc_default_matching_rules.sql
index 77866fd..29852a4 100644
--- a/installer/data/mysql/ru-RU/marcflavour/unimarc/optional/unimarc_default_matching_rules.sql
+++ b/installer/data/mysql/ru-RU/marcflavour/unimarc/optional/unimarc_default_matching_rules.sql
@@ -26,7 +26,7 @@ INSERT INTO matchpoint_component_norms (matchpoint_component_id, sequence, norm_
 
 INSERT INTO marc_matchers (code, description, record_type, threshold) 
     VALUES ('ISSN', '011$a', 'biblio', 1000);
-INSERT INTO matchpoints (matcher_id, search_index, score) SELECT MAX(matcher_id), 'isbn', 1000 FROM marc_matchers;
+INSERT INTO matchpoints (matcher_id, search_index, score) SELECT MAX(matcher_id), 'issn', 1000 FROM marc_matchers;
 INSERT INTO matcher_matchpoints SELECT MAX(matcher_id), MAX(matchpoint_id) FROM matchpoints;
 INSERT INTO matchpoint_components (matchpoint_id, sequence, tag, subfields) 
     SELECT MAX(matchpoint_id), 1, '011', 'a' FROM matchpoints;
diff --git a/installer/data/mysql/uk-UA/marcflavour/unimarc/optional/unimarc_default_matching_rules.sql b/installer/data/mysql/uk-UA/marcflavour/unimarc/optional/unimarc_default_matching_rules.sql
index 77866fd..29852a4 100644
--- a/installer/data/mysql/uk-UA/marcflavour/unimarc/optional/unimarc_default_matching_rules.sql
+++ b/installer/data/mysql/uk-UA/marcflavour/unimarc/optional/unimarc_default_matching_rules.sql
@@ -26,7 +26,7 @@ INSERT INTO matchpoint_component_norms (matchpoint_component_id, sequence, norm_
 
 INSERT INTO marc_matchers (code, description, record_type, threshold) 
     VALUES ('ISSN', '011$a', 'biblio', 1000);
-INSERT INTO matchpoints (matcher_id, search_index, score) SELECT MAX(matcher_id), 'isbn', 1000 FROM marc_matchers;
+INSERT INTO matchpoints (matcher_id, search_index, score) SELECT MAX(matcher_id), 'issn', 1000 FROM marc_matchers;
 INSERT INTO matcher_matchpoints SELECT MAX(matcher_id), MAX(matchpoint_id) FROM matchpoints;
 INSERT INTO matchpoint_components (matchpoint_id, sequence, tag, subfields) 
     SELECT MAX(matchpoint_id), 1, '011', 'a' FROM matchpoints;
-- 
2.1.0