Bug 30015 - Incomplete LEADER when creating new child record
Summary: Incomplete LEADER when creating new child record
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: 21.05
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-03 13:01 UTC by Michael Kuhn
Modified: 2022-02-04 00:22 UTC (History)
3 users (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 Michael Kuhn 2022-02-03 13:01:15 UTC
When displaying a bibliographic record in the normal view of the staff client, the clicking "New > New child record" the LEADER will just contain the following: "␣␣␣␣␣␣␣␣␣a␣␣␣␣␣␣␣␣␣␣␣␣␣␣" (I have replaced the space character by ␣ to make it visible). It stays the same when we click into the field. So when we fill the rest of the required fields and save the record we will end up with a record that is not properly linked to the parent record.

This is irritating since when just creating a "normal" (non-child) new record, the LEADER is automatically filled with the correct content when clicking the field resp. trying to save the record. This happens through plugin "marc21_leader.pl".

However, when creating A new child record if we click the tag editor symbol at the far right, the popup "000- Leader" opens and we can click "OK" which will eventually result in the following LEADER content: "␣␣␣␣␣aaa␣a22␣␣␣␣␣␣␣␣4500". This seems somehow cumbersome since we don't want to change anything there. It would be desirable if this content would just appear when clicking the field resp. trying to save the record as it does when just creating a "normal" (non-child) record.

Seemingly the logic in the code seems to not consider that use case. As the form is preloaded with that "a" character, it concludes no default filling needs to be done.