Bug 25929

Summary: create_analytical_rel.pl doesn't set host biblionumber in 773$0
Product: Koha Reporter: verolencinas <verolencinas>
Component: Command-line UtilitiesAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: robin
Version: Main   
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 verolencinas 2020-07-05 14:13:22 UTC
The command-line utility create_analytical_rel.pl creates links to the host item from the barcode in 773$o of the analytical record. It should copy some data from the host record and the host item but it fails to copy the Biblionumber from the host record to 773$0 and copies instead the Biblionumber of the analytical record.
In consequence the analytical record shows up in the host item (because Host Itemnumber was correctly copied) but in the analytical record itself there is no direct link to the host item that could show itemtype, circulation status, homebranch, etc.

How to reproduce the bug.
1. Create an analytical record with $773$o<barcode> that references a real barcode in the system.
2. Run create_analytical_rel.pl. 
3. Now some fields have been populated in the 773 field, but the $0 subfield (Host Biblionumber) shows the Biblionumber of the analytical record.
Comment 1 Katrin Fischer 2023-12-09 16:23:13 UTC
It doesn't create $0, because that is only used with EasyAnalytics. The script creates links according to the MARC standard. Both ways of creating analytical records are supported by Koha. It's intentional and should be made configurable if changed.