Bugzilla – Attachment 164780 Details for
Bug 36578
Elasticsearch: publisher-location (pl) index should include field 752 (for old prints) and also support UNIMARC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36578: Elasticsearch: publisher-location (pl) index should include field 752 (for old prints) and also support UNIMARC
Bug-36578-Elasticsearch-publisher-location-pl-inde.patch (text/plain), 2.56 KB, created by
Janusz Kaczmarek
on 2024-04-11 20:15:17 UTC
(
hide
)
Description:
Bug 36578: Elasticsearch: publisher-location (pl) index should include field 752 (for old prints) and also support UNIMARC
Filename:
MIME Type:
Creator:
Janusz Kaczmarek
Created:
2024-04-11 20:15:17 UTC
Size:
2.56 KB
patch
obsolete
>From 1f22b5b2a7d84b7d951ac6050709fcd6d7d5ea67 Mon Sep 17 00:00:00 2001 >From: Janusz Kaczmarek <januszop@gmail.com> >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=UTF-8 >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). >--- > 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 9cd3db5c96..34d643d9e4 100644 >--- a/admin/searchengine/elasticsearch/mappings.yaml >+++ b/admin/searchengine/elasticsearch/mappings.yaml >@@ -3075,6 +3075,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.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36578
:
164757
|
164780
|
165146