Bug 28203

Summary: Add Match-heading search field and UNIMARC mappings
Product: Koha Reporter: Alex Arnaud <alex.arnaud>
Component: Searching - ElasticsearchAssignee: Alex Arnaud <alex.arnaud>
Status: Failed QA --- QA Contact:
Severity: enhancement    
Priority: P5 - low CC: david, fridolin.somers, nick
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29191
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 28203: Add Match-heading search fields and related unimarc mappings
Bug 28203: Add Match-heading-see-from unimarc mappings

Description Alex Arnaud 2021-04-23 12:26:14 UTC
As the authority matching use Match-heading index, we should add these search field and related mapping to avoid authority duplicating when cataloguing biblios ( Biblioaddsauthorities and AutoCreateAuthorities enabled).
Comment 1 Alex Arnaud 2021-04-23 13:03:19 UTC
Created attachment 120093 [details] [review]
Bug 28203: Add Match-heading search fields and related unimarc mappings
Comment 2 Alex Arnaud 2021-04-23 13:03:25 UTC
Created attachment 120094 [details] [review]
Bug 28203: Add Match-heading-see-from unimarc mappings
Comment 3 David Nind 2022-05-01 23:59:54 UTC
Hi Alex.

Are you able to provide a test plan? I'd then be happy to test.

I got part of the way (UNIMARC instance with Elasticsearch), but I'm not familiar enough with mappings and searching/authorities to be able to do it without one.

This is how far I got:

1. On a UNIMARC installation:
   - Enable Elasticsearch (set searchengine system preference to Elasticsearch)
   - Reindex: koha-elasticsearch --rebuild -b -a kohadev
   - Enable Biblioaddsauthorities (set to allow) and AutoCreateAuthorities (set to generate) system references, if not already enabled

2. Replicate the issue: authority record duplicated because here are no mappings for the search for XXX when cataloging a new record:
   - setup a subfield to use authorities when adding or editing(?)

3. Apply the patch.

4. Repeat step 2:
   => Result: authority found and not duplicated

David
Comment 4 Fridolin Somers 2022-08-02 19:13:16 UTC
Looks like is is missing 245 for auth type NAME_COL
Comment 5 Katrin Fischer 2022-10-01 08:03:14 UTC
Please don't forget to fill in Assignee, thx!
Comment 6 Nick Clemens (kidclamp) 2022-11-16 11:34:10 UTC
I don't think this is correct - Match-heading is a standardized format based on the heading of the authority record - it is constructed according to set rules and does not need to be configurable.

The field has been removed from mappings and is auto-constructed in the indexing now

The changes for Match-heading-see-from could be moved forward, I am not sure how utilized this field is though