Can currently search on the identifier-other with the 024$a mapping It would be useful to have another index on the invalid-identifier-other mapping to the 024$z only https://www.loc.gov/marc/bibliographic/bd024.html
This should be approached similarly to Bug 36574 and Bug 36727, and additionally add 024$az to the identifier-standard index
Created attachment 166745 [details] [review] Bug 36728: Add cancelled/invalid standard number (024z) to ES index mappings - Added a new index invalid-identifier-other for 024z - Added 024az to existing indentifier-standard index Test plan: 1. Start up KTD with Elasticsearch: ktd --es8 up 2. Add a new biblio record putting the value '2471697678526' into the cancelled/valid standard number ( 024$z) 3. Do a biblio search for '2471697678526' 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 '2471697678526' and confirm you get a result Sponsored-by: Education Services Australia SCIS
This one is ready to test.
Created attachment 167295 [details] [review] Bug 36728: Add cancelled/invalid standard number (024z) to ES index mappings - Added a new index invalid-identifier-other for 024z - Added 024az to existing indentifier-standard index Test plan: 1. Start up KTD with Elasticsearch: ktd --es8 up 2. Add a new biblio record putting the value '2471697678526' into the cancelled/valid standard number ( 024$z) 3. Do a biblio search for '2471697678526' 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 '2471697678526' and confirm you get a result Sponsored-by: Education Services Australia SCIS Signed-off-by: David Nind <david@davidnind.com>
Testing notes (using KTD): 1. Edit bibliographic framework used for record to edit, to make 024$z visible in the editor.
This one looks good, but I question adding subfields a and z to the identifier standard. We have seen with other fields like ISBN that libraries prefer not to see these fields searched by default. I think adding the new index is a good idea but we should add only the 024a to the identifier-standard