https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36054

Phil Ringnalda <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #4 from Phil Ringnalda <[email protected]> ---
(In reply to Esther Melander from comment #0)
> This requires having some bib records where the 005 is blank or missing.
> 
> To recreate:
> 1. Edit the default framework and uncheck the mandatory box for the 005 and
> save.

For this step, to get the described behavior, you must have unchecked the
mandatory box for 005's single subfield, @, rather than the mandatory box for
005 itself.

In general in the basic editor, a mandatory field without any mandatory
subfield means "Field nnn is mandatory, at least one of its subfields must be
filled" even if it only has one defined subfield, but it makes an exception for
control fields, and treats a mandatory control field without the @ subfield as
mandatory as being... not mandatory. That makes no sense.

In the advanced editor, a mandatory field without any mandatory subfields means
that you must have the field, and because you can't have a field with no
subfields, you must have a subfield, so if 005 is mandatory you have to have it
and the only subfield it has.

Going the other way, making 005 not mandatory but its only subfield mandatory,
would have put you in the difference between bug 25962 and bug 32722 since the
advanced editor thinks mandatory subfield in non-mandatory tag means it's
mandatory only if you add the field, and the basic editor thinks the subfield
is mandatory and since you have no way to remove the tag, that means both are
mandatory, so you would have been able to save in the advanced editor but not
the basic editor.

Unchecking both just works: both editors will save without error if you don't
touch it, both will add it if you choose to, and once bug 35993 lands both will
create it when you save without it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to