Bug 30015

Summary: Incomplete LEADER when creating new child record
Product: Koha Reporter: Michael Kuhn <mik>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: cmkelleymls, lucy.vaux-harvey, m.de.rooy
Version: 21.05   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

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.