Bug 39545 - Construct more complete 773 content when creating a child record
Summary: Construct more complete 773 content when creating a child record
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low minor
Assignee: Janusz Kaczmarek
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-03 13:16 UTC by Janusz Kaczmarek
Modified: 2025-04-03 21:06 UTC (History)
1 user (show)

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


Attachments
Bug 39545: Better generation of 773 field for a child record (MARC21) (5.91 KB, patch)
2025-04-03 14:27 UTC, Janusz Kaczmarek
Details | Diff | Splinter Review
Bug 39545: Unit tests (4.18 KB, patch)
2025-04-03 14:27 UTC, Janusz Kaczmarek
Details | Diff | Splinter Review
Bug 39545: Better generation of 773 field for a child record (MARC21) (5.96 KB, patch)
2025-04-03 17:24 UTC, Roman Dolny
Details | Diff | Splinter Review
Bug 39545: Unit tests (4.23 KB, patch)
2025-04-03 17:24 UTC, Roman Dolny
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Janusz Kaczmarek 2025-04-03 13:16:34 UTC
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.
Comment 1 Janusz Kaczmarek 2025-04-03 14:27:38 UTC
Created attachment 180571 [details] [review]
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.
Comment 2 Janusz Kaczmarek 2025-04-03 14:27:40 UTC
Created attachment 180572 [details] [review]
Bug 39545: Unit tests
Comment 3 Roman Dolny 2025-04-03 17:24:36 UTC
Created attachment 180600 [details] [review]
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>
Comment 4 Roman Dolny 2025-04-03 17:24:38 UTC
Created attachment 180601 [details] [review]
Bug 39545: Unit tests

Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>