In order to be able to search authors by place (place of birth, place of death, place of residence, etc.) we'd need to index the 370 authority field. This would allow librarians to search in the "entire record" for a place and find related authors. https://www.loc.gov/marc/authority/ad370.html
Created attachment 167129 [details] MARC file to test To recreate: 1. Import the attached .mrc file 2. Go to Authorities 3. Search 'Main heading' for quebec --> 1 result (normal) 4. Search 'Entire record' for quebec --> 1 result (we'd like 2 results here)
Created attachment 167133 [details] [review] Bug 36952: Add 370 to authority index (MARC21) This enhancement adds field 370 to MARC21 default authority index mappings. To test: 1. Import the attached .mrc file 2. Go to Authorities 3. Search 'Main heading' for quebec --> 1 result (normal) 4. Search 'Entire record' for quebec --> 1 result 5. Go to the OPAC > Authority search 6. Redo steps 3 and 4 --> Same results 7. Apply patch 8. Reindex authorities (in KTD shell: koha-elasticsearch --rebuild -a -v -r kohadev) 9. Redo step 3 --> Still 1 result (normal) 10. Redo step 4 --> 2 results 11. Redo step 5-6 --> Same results as steps 9-10
I named the index purposefully vague - simply "Place" - in case we want to eventually add 371 (Address) as well. It also somewhat mirrors the bibliographic "pl" index for publication place and the "Places" facet for su-geo. I'm open to other name suggestions, if necessary.
Created attachment 167139 [details] [review] Bug 36952: Add 370 to authority index (MARC21) This enhancement adds field 370 to MARC21 default authority index mappings. To test: 1. Import the attached .mrc file 2. Go to Authorities 3. Search 'Main heading' for quebec --> 1 result (normal) 4. Search 'Entire record' for quebec --> 1 result 5. Go to the OPAC > Authority search 6. Redo steps 3 and 4 --> Same results 7. Apply patch 8. Reindex authorities (in KTD shell: koha-elasticsearch --rebuild -a -v -r kohadev) 9. Redo step 3 --> Still 1 result (normal) 10. Redo step 4 --> 2 results 11. Redo step 5-6 --> Same results as steps 9-10 Signed-off-by: David Nind <david@davidnind.com>
Testing notes (using KTD): 1. Start up KTD with Elasticsearch: ktd --es8 up 2. Initially tested with Zebra (didn't read the bug properly!), and couldn't see the issue - Zebra already returns the correct results.
Oh yes, thanks David, I forgot to specify ES other than in the component. It's good to know that Zebra already returns it, however, it's a point in my favour ;) I was looking at the Zebra config and couldn't find 370, but iirc Zebra indexed the whole record regardless.
Picked from QA queue for pushing to main.
Pushed for 24.11! Well done everyone, thank you!
Enhancement will not be backported to 24.05.x