Bug 37996 - Links created by link_marc_host should contain 773$0 in MARC21
Summary: Links created by link_marc_host should contain 773$0 in MARC21
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Baptiste Wojtkowski (bwoj)
QA Contact: Testopia
URL:
Keywords:
Depends on: 29560
Blocks: 37710
  Show dependency treegraph
 
Reported: 2024-09-24 11:41 UTC by Baptiste Wojtkowski (bwoj)
Modified: 2024-10-03 15:08 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:
Circulation function:


Attachments
Bug 37996: Add field 773$0 to the link created by add_host_link (1.37 KB, patch)
2024-09-24 12:55 UTC, Baptiste Wojtkowski (bwoj)
Details | Diff | Splinter Review
Bug 37996: Add unit tests (2.39 KB, patch)
2024-09-24 12:56 UTC, Baptiste Wojtkowski (bwoj)
Details | Diff | Splinter Review
Bug 37996: Add field 773$0 to the link created by add_host_link (1.37 KB, patch)
2024-09-24 12:56 UTC, Baptiste Wojtkowski (bwoj)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Baptiste Wojtkowski (bwoj) 2024-09-24 11:41:44 UTC
Bug 29560 created a new function link_marc_host which is supposed to bind the fields :
MARC21: 773$0 of the biblio to the 999$c of the bundle biblio
UNIMARC: 461$0 of the biblio to the 001 of the bundle biblio

This does not work for the MARC21
Comment 1 Baptiste Wojtkowski (bwoj) 2024-09-24 12:55:42 UTC
Created attachment 171928 [details] [review]
Bug 37996: Add field 773$0 to the link created by add_host_link

Bug 29560 created a new function link_marc_host which is supposed to bind the fields :
MARC21: 773$0 of the biblio to the 999$c of the bundle biblio
UNIMARC: 461$0 of the biblio to the 001 of the bundle biblio

This does not work for the MARC21

TEST PLAN:
1 - Apply the patch containing tests
2 - Run test in t/db_dependent/Koha/Biblio.t, they should fail on two tests
3 - Create a bundle on a biblio a
4 - Add an object to a bundle of a
5 - Check the field 773$0 -> it should be empty
6 - Apply patch
7 - Re-run tests
8 - Repeat 4&5 -> 773$0 should contain the biblionumber of a
Comment 2 Baptiste Wojtkowski (bwoj) 2024-09-24 12:56:10 UTC
Created attachment 171929 [details] [review]
Bug 37996: Add unit tests
Comment 3 Baptiste Wojtkowski (bwoj) 2024-09-24 12:56:12 UTC
Created attachment 171930 [details] [review]
Bug 37996: Add field 773$0 to the link created by add_host_link

Bug 29560 created a new function link_marc_host which is supposed to bind the fields :
MARC21: 773$0 of the biblio to the 999$c of the bundle biblio
UNIMARC: 461$0 of the biblio to the 001 of the bundle biblio

This does not work for the MARC21

TEST PLAN:
1 - Apply the patch containing tests
2 - Run test in t/db_dependent/Koha/Biblio.t, they should fail on two tests
3 - Create a bundle on a biblio a
4 - Add an object to a bundle of a
5 - Check the field 773$0 -> it should be empty
6 - Apply patch
7 - Re-run tests
8 - Repeat 4&5 -> 773$0 should contain the biblionumber of a