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

--- Comment #7 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 211678
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211678&action=edit
Bug 40883: (QA follow-up) Tidy the tests and do not fail on the 880 of an
unknown type

Tidy the unit test.

The 880 fields of the summary call as_string with the subfields of the last
heading that was built. For an authority type that is not in
C4::Heading::MARC21, there are none and the same error is raised as for the
7XX: "Unmatched [ in regex" in MARC::Field. Use the subfields a to z, without
the linkage in the $6, when there are none.

To test:
1. prove t/db_dependent/AuthoritiesMarc.t
2. Create an authority type with the main heading in 199, and an authority of
   that type with an 880 field, for example $6 199-01 and $a Alternate form
3. Search for it: without this patch the page returns the error "Unmatched [
   in regex", with it the 880 is in the summary

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to