From d4b7fc521e69b201bfcdd6132b60c1335d7add58 Mon Sep 17 00:00:00 2001 From: Janusz Kaczmarek Date: Thu, 11 Apr 2024 14:32:51 +0000 Subject: [PATCH] Bug 36578: Elasticsearch: publisher-location (pl) index should include field 752 (for old prints) and also support UNIMARC MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Extension to bug 36269: 1) when cataloguing old prints, the standardized form of the place of publication is given in the field 752 and as such should also be indexed. 2) Also, normal UNIMARC fields for publication place should be indexed (210a, 214a). Test plan ========= Scenario A (MARC 21, field 752) ------------------------------- 0. Have an installation with Elasticsearch and MARC 21 configuration. 1. Activate subfields 752 $a, $d in the default framework (Visibility: Editor). 2. Edit an existing record with this framework, putting some rare words in the 752 $a and $d subfields. 3. Try to make a search with tis words (general keyword or by publication place, i.e. pl:). 4. You hsold get no results. 5. Apply the patch, reindex with: sudo koha-elasticsearch --rebuild -r -b kohadev 6. Repeat p. 3. You should get your edited record. Scenario B (UNIMARC) -------------------- 0. Have an installation with Elasticsearch and UNIMARC configuration. 1. Try to search for a publication place, either with pl: directly in the search window, or in Advanced search, with Publisher location. With ktd UNIMARC test date you can search for 'Ste Geneviève Cedex'. 2. You should get no results. 3. Apply the patch, reindex with: sudo koha-elasticsearch --rebuild -r -b kohadev 4. Repeat p. 1. You should get some results (with ktd test data set and Ste Geneviève Cedex - record #1). Signed-off-by: Roman Dolny Signed-off-by: Katrin Fischer --- admin/searchengine/elasticsearch/mappings.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/admin/searchengine/elasticsearch/mappings.yaml b/admin/searchengine/elasticsearch/mappings.yaml index a5af2bcf67..ad17b5e4b4 100644 --- a/admin/searchengine/elasticsearch/mappings.yaml +++ b/admin/searchengine/elasticsearch/mappings.yaml @@ -3068,6 +3068,21 @@ biblios: marc_type: marc21 sort: 1 suggestible: '' + - facet: '' + marc_field: 752ad + marc_type: marc21 + sort: 1 + suggestible: '' + - facet: '' + marc_field: 210a + marc_type: unimarc + sort: 1 + suggestible: '' + - facet: '' + marc_field: 214a + marc_type: unimarc + sort: 1 + suggestible: '' opac: 1 staff_client: 1 type: '' -- 2.39.5