Bug 29577

Summary: Link bibs to authorities fails if relator terms are in records to be linked
Product: Koha Reporter: Bernard <bernard.scaife>
Component: ToolsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low    
Version: 20.11   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Bernard 2021-11-25 17:00:06 UTC
If you use a relator ($e) in the authority and biblio records and run link_bibs_to_authorities.pl, it does not link the records although they are a match

Observed at 20.11.09
Workflow:
1. Add PERSONAL authority record with 100a Berridge, Elizabeth and 100e actor
2. Add new biblio record with 700a Berridge, Elizabeth and 700e actor
NB/ 700 Field should not be under authority control whilst this data is entered to simulate data that is not linked. Temporarily amend this in cataloguing template for 700 field
3. Run link biblio script on the new test bib's biblionumber:
sudo koha-shell -c "/usr/share/koha/bin/link_bibs_to_authorities.pl --bib-limit='biblionumber=<yourbibnumber>' --verbose" <site>
4. Observe log which will say 
Number of bibs checked: 1
Number of headings linked: 0
Number of headings unlinked: 1
5. Remove 100e actor (from authority) and 700e actor (from biblio) and save
6. Rerun linker script (step 3)
Number of bibs checked: 1
Number of headings linked: 1
Number of headings unlinked: 0