Bug 25929 - create_analytical_rel.pl doesn't set host biblionumber in 773$0
Summary: create_analytical_rel.pl doesn't set host biblionumber in 773$0
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Command-line Utilities (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-05 14:13 UTC by verolencinas
Modified: 2023-12-09 16:23 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.