Bug 25962 - In Advanced Editor mandatory subfields are not enforced if tag is not mandatory
Summary: In Advanced Editor mandatory subfields are not enforced if tag is not mandatory
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-08 20:50 UTC by Andrew Fuerste-Henry
Modified: 2024-10-10 10:12 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Fuerste-Henry 2020-07-08 20:50:22 UTC
To recreate:
- set your framework so the 100$a is mandatory but the 100 as a whole is not
- open a new record in the advanced editor
- save the record without a 100$a
- edit framework to make the 100 mandatory as well as the 100$a
- open a new record
- try to save without a 100$a, get an error

It doesn't break anything to have to mark the tag required as well as the subfield, but it's more work and it's confusingly different from how we enforce these in the regular editor.
Comment 1 David Cook 2020-07-23 23:50:35 UTC
Agreed
Comment 2 Donna 2023-10-10 21:19:08 UTC
This is still an issue as of 23.05 and is very confusing.  And since the mandatory field (100$a in this example) does not even display in a new record in advanced editor, but then immediately triggers an error when saving in basic editor, it causes issues when staff are adding new records.  Perhaps even just adding a note that it must be marked mandatory in order to display in advanced editor?
Comment 3 Phil Ringnalda 2024-04-05 16:49:16 UTC
On the other hand, in bug 32722 UNIMARC wants the exact opposite, to have the current behavior of the advanced editor be the behavior of the basic editor, because they have subfields that are mandatory if any other subfield of the tag is used, but having the tag is not mandatory.

100$a is actually a perfect example of the use-case for that: although MARC21 doesn't have the concept of required subfields, a personal name without a name is meaningless (and awkward to deal with if you autocreate an authority from it), while a bib record without a personal name as the main entry is very common, so it would be convenient to be able to require that $a be non-blank if 100 is used at all, but not require that it be used.