Bug 36727: Add new issn-all Elasticsearch index for MARC21

- This index searches 022ayz, 023ayz (MARC21) and 011ayz (UNIMARC).
- 011y and 011z have been removed from issn search field for UNIMARC.
- 022yz and 023yz have also been added to the identifier-standard search field

Test plan:
1. Start up KTD with Elasticsearch: ktd --es8 up

2. Add a new biblio record putting the value '0046-2254' into the incorrect ISSN subfield (022y /023y for MARC21, or 011z for UNIMARC)

3. Do a biblio search for '0046-2254' and confirm no results are returned

4. Apply this patch and restart all services (restart_all)

5. Reset the mappings: Administration > Catalog > Search engine configuration (Elasticsearch) > Reset mappings (at the bottom of the page)

6. Reindex: koha-elasticsearch --rebuild -d -b -a kohadev

7. Alternative to steps 5 and 6: reset_all

8. Repeat the biblio search for '0046-2254' and confirm you get a result

Sponsored-by: Education Services Australia SCIS
Signed-off-by: Janusz Kaczmarek <januszop@gmail.com>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Alex Buckley 2024-05-13 18:13:07 +00:00 committed by Katrin Fischer
parent 16e35d5f10
commit bc8a90ecab
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -2034,7 +2034,12 @@ biblios:
sort: 1
suggestible: ''
- facet: ''
marc_field: 022a
marc_field: 022ayz
marc_type: marc21
sort: 1
suggestible: ''
- facet: ''
marc_field: 023ayz
marc_type: marc21
sort: 1
suggestible: ''
@ -2154,6 +2159,28 @@ biblios:
marc_type: marc21
sort: 1
suggestible: ''
- facet: ''
marc_field: 011a
marc_type: unimarc
sort: 1
suggestible: ''
opac: 1
staff_client: 1
type: stdno
issn-all:
label: issn-all
mandatory: ~
mappings:
- facet: ''
marc_field: 022ayz
marc_type: marc21
sort: 1
suggestible: ''
- facet: ''
marc_field: 023ayz
marc_type: marc21
sort: 1
suggestible: ''
- facet: ''
marc_field: 011ayz
marc_type: unimarc