Bug 21958: Allow 'e' subfield for authorities

This bug specifically changed the code to allow for e in authority record

This is a tricky issue, see link for discussion:
https://www.loc.gov/marc/marbi/2008/2008-dp05-1.html

It seems to be allowed, but possibly not useful?

In either case I think for now we can allow in the test to fix this error
and possibly open a new bug for further discussion

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Nick Clemens 2021-04-06 12:56:50 +00:00 committed by Jonathan Druart
parent 789a7a8634
commit fb77238117
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ subtest "MARC21 tests" => sub {
ok(!C4::Heading::valid_heading_subfield('100', 'e'), '100e not valid for bib');
ok(C4::Heading::valid_heading_subfield('100', 'a', 1), '100a valid for authority');
ok(!C4::Heading::valid_heading_subfield('100', 'e', 1), '100e not valid for authority');
ok(C4::Heading::valid_heading_subfield('100', 'e', 1), '100e valid for authority');
ok(C4::Heading::valid_heading_subfield('110', 'a'), '110a valid for bib');
ok(!C4::Heading::valid_heading_subfield('110', 'e'), '110e not valid for bib');