Bug 3150: (follow-up) Make sure host information displays for unlinked records
authorKatrin Fischer <katrin.fischer@bsz-bw.de>
Tue, 7 Mar 2023 17:51:09 +0000 (17:51 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 27 Mar 2023 10:49:44 +0000 (12:49 +0200)
commitd123287b18e063e50e5cb5a8e90122f67b2b07b2
treea264cc55c82b72f838b448d67dd662ea9e9f9852
parent2896077b193de63c5ddb0e2a9334939677b3fe34
Bug 3150: (follow-up) Make sure host information displays for unlinked records

When the 773 entry is not linked to a record using $w or
Easyanalytics we still want to display the information
about the source/host item in the emails.

To test:
1. Activate the UseControlNumber system preference
2. Search for a record and make sure it has 001 set to some value.
3. Use Edit > Add child record to create an analytical record from this record.
4. Make sure 773$w was filled in and finish by adding any mandatory fields, save.
5. Add this record to your cart. Also add a 773$g with the pages or similar.
6. Create another record with 773$t and $g, but without $w.
7. Also add this record to your cart.
8. Add a few other records to the cart.
9. Host item information (In: ) should display for all entries with 773 in the record.

This also makes use of the biblio-title include to display the
different parts of the title (245$abnp), if the record is linked.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Biblio.pm
installer/data/mysql/atomicupdate/bug_3150_-_add_LIST_and_CART_notices.pl
installer/data/mysql/en/mandatory/sample_notices.yml
t/db_dependent/Koha/Biblio/host_record.t