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).
Created attachment 120093 [details] [review] Bug 28203: Add Match-heading search fields and related unimarc mappings
Created attachment 120094 [details] [review] Bug 28203: Add Match-heading-see-from unimarc mappings
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
Looks like is is missing 245 for auth type NAME_COL
Please don't forget to fill in Assignee, thx!
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