Bug 36953

Summary: Add 678 to authority index (MARC21)
Product: Koha Reporter: Caroline Cyr La Rose <caroline.cyr-la-rose>
Component: Searching - ElasticsearchAssignee: Caroline Cyr La Rose <caroline.cyr-la-rose>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P5 - low CC: david, dcook, lucas
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
This enhancement adds field 678 (biographical or historical data) to the default MARC21 authority index mappings when using Elasticsearch or Open Search (it is already indexed if using Zebra).
Version(s) released in:
24.11.00
Circulation function:
Attachments: MARC file to test
Bug 36953: Add 678 to authority index (MARC21)
Bug 36953: Add 678 to authority index (MARC21)

Description Caroline Cyr La Rose 2024-05-23 20:39:21 UTC
In order to do a keyword search for biographical information in authorities, we would need to index field 678. This would make it possible to search the "entire record" for biographical information.
Comment 1 Caroline Cyr La Rose 2024-05-23 20:42:40 UTC
Created attachment 167135 [details]
MARC file to test

To recreate:
1. Import the attached .mrc file
2. Go to Authorities
3. Search "Entire record" for innu
   --> No results
4. Go to the OPAC > Authority search
5. Search "in the complete record" for innu
   --> No results
Comment 2 Caroline Cyr La Rose 2024-05-23 20:45:09 UTC
Created attachment 167136 [details] [review]
Bug 36953: Add 678 to authority index (MARC21)

This enhancement adds field 678 to the default MARC21 authority index mappings.

To test:
1. Import the attached .mrc file
2. Go to Authorities
3. Search "Entire record" for innu
   --> No results
4. Go to the OPAC > Authority search
5. Search "in the complete record" for innu
   --> No results
6. Apply patch
7. Reindex authorities (in KTD shell:
   koha-elasticsearch --rebuild -a -v -r kohadev)
8. Redo step 3
   --> 1 result
9. Redo steps 4-5
   --> 1 result
Comment 3 David Nind 2024-05-23 21:46:22 UTC
Created attachment 167140 [details] [review]
Bug 36953: Add 678 to authority index (MARC21)

This enhancement adds field 678 to the default MARC21 authority index mappings.

To test:
1. Import the attached .mrc file
2. Go to Authorities
3. Search "Entire record" for innu
   --> No results
4. Go to the OPAC > Authority search
5. Search "in the complete record" for innu
   --> No results
6. Apply patch
7. Reindex authorities (in KTD shell:
   koha-elasticsearch --rebuild -a -v -r kohadev)
8. Redo step 3
   --> 1 result
9. Redo steps 4-5
   --> 1 result

Signed-off-by: David Nind <david@davidnind.com>
Comment 4 David Nind 2024-05-23 21:47:01 UTC
Testing notes (using KTD):

1. Start up KTD with Elasticsearch: ktd --es8 up
Comment 5 Katrin Fischer 2024-06-27 15:13:40 UTC
Picked from QA queue for main.
Comment 6 Katrin Fischer 2024-06-27 15:26:56 UTC
Pushed for 24.11!

Well done everyone, thank you!
Comment 7 Lucas Gass (lukeg) 2024-07-19 15:48:10 UTC
Enhancement will not be backported to 24.05.x