Bug 18017

Summary: [Unimarc] Importing biblios from Z39.50 servers duplicates related authorities
Product: Koha Reporter: Alex Arnaud <alex.arnaud>
Component: CatalogingAssignee: Alex Arnaud <alex.arnaud>
Status: Failed QA --- QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: fridolin.somers, jonathan.druart, laurence.rault, m.de.rooy
Version: master   
Hardware: All   
OS: All   
Whiteboard:
Change sponsored?: --- Patch complexity: ---
Bot Control: --- When did the bot last check this:
Who signed the patch off: Text to go in the release notes:
Attachments: Bug 18017 - add index_matching_heading to create indexes for matching an entire authority heading

Description Alex Arnaud 2017-01-31 09:35:14 UTC
This is a unimarc bug only:

When importing biblios from Z39.50, related authorities are wrong matched by the linker. This causes duplicates of authorities. The problem come from a bad marc definition in unimarc/authorities/authority-koha-indexdefs.xml which does not create a index for matching an entire heading.
Comment 1 Alex Arnaud 2017-01-31 09:38:52 UTC
Created attachment 59675 [details] [review]
Bug 18017 - add index_matching_heading to create indexes for matching an entire authority heading
Comment 2 Jonathan Druart 2017-02-16 13:21:21 UTC
A test plan to help testers?
Comment 3 Laurence Rault 2017-07-28 14:58:50 UTC
If I understand the patch, a test plan could be

Test plan

BiblioAddsAuthorities ON
AutoCreateAuthorities ON

1) Import Z3950 record and save it : authorities are created
2) Import the same record again, when saving say it is not a duplicate : 
Without the patch : new authorities (duplicates) are created for the same values
With the patch : new record should be linked with existing authorities



Tested on sandbox : 

BiblioAddsAuthorities ON
AutoCreateAuthorities ON

1) Import Z3950 record and save it : authorities are created
2) Import the same record again, when saving say it is not a duplicate : 
Without the patch : new authorities (duplicates) are created for the same values
With the patch : new authorities (duplicates) are created for the same values : KO