Koha-clms/cataloguing
Janusz Kaczmarek 0b4b8e7078
Bug 39545: Better generation of 773 field for a child record (MARC21)
When creating a child record (New > New child record from Normal view)
the information put in field 773 is very basic, sometimes not
complete (e.g. only one ISBN, only 245 $a in 773 $t, 773 $w
missing 003 of the host record etc.) and put in random order.

Test plan:
==========
1. Find any record to be a host record for an analytical record. You
   can enrich the record with multiple 020, 490+830 fields, make sure that
   there are 001 and 003 fields present.
2. From upper menu chose New > New child record.
3. See the generated field 773 - the subfields are incomplete and in
   random order.
4. Apply the patch ; restart_all.
5. Repeat p. 2.-3. See that the generated 773 field contains now much
   more information, including 773 $7 and also preset leader.

Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Rebased-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
The rebase removed the majority of this patch as the prepare_host_field
method was removed entirely upstream.  The follow-up patch re-implements
the same but in the newer Koha::Biblio->generate_marc_host_field method
instead.  We also dropped the Unit tests that were introduced in the
subsequent patch.

Sponsored-by: Open Fifth <https://openfifth.co.uk>
Signed-off-by: Heather Hernandez <flyingendpaper@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-07-11 15:26:53 -06:00
..
value_builder Bug 39325: Automatic fix 2025-04-28 18:51:22 +02:00
addbiblio.pl Bug 39545: Better generation of 773 field for a child record (MARC21) 2025-07-11 15:26:53 -06:00
addbooks.pl Bug 39834: Replace some tabs with spaces 2025-06-02 15:26:17 -06:00
additem.pl Bug 23010: Clean up try/catch in additem.pl 2025-06-24 16:10:22 -06:00
cataloging-home.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
concerns.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
editor.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
linkitem.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
merge.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
merge_ajax.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
moveitem.pl Bug 39213: Force scalar on query param barcode 2025-03-07 15:41:15 +01:00
plugin_launcher.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
ysearch.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
z3950_auth_search.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
z3950_search.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00