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

--- Comment #4 from Frédéric Demians <[email protected]> ---
Created attachment 207944
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207944&action=edit
Bug 43498: (follow-up) Add tests for the authtype Zebra authority indexes

Since bug 41795, SearchAuthorities matches authtype with the completeness
attribute, which only looks at the phrase register. Neither the MARC21
follow-up of bug 41795 nor this bug added a test. So here it is...

t/Zebra_authority_indexdefs.t needs no database and no Zebra server. For

For MARC21/UNIMARC authority index definitions, it checks that:

- every field indexed as authtype also feeds authtype:p,
- authority-zebra-indexdefs.xsl is up to date with
  authority-koha-indexdefs.xml.
  => this one may help in the future to avoid desynchronization

Test plan:
1. prove t/Zebra_authority_indexdefs.t
   => passes
2. Remove authtype:p from the 942$a block in
   etc/zebradb/marc_defs/unimarc/authorities/authority-koha-indexdefs.xml
   and run the test again
   => fails with "Missing authtype:p in: index_subfields 942" and
      "authority-zebra-indexdefs.xsl matches its regenerated version"
3. Modify anything in MARC21/UNIMARC authority-kohaèindexdefs.xml
   without regenerating xsl counterpart
   => test fails: authority-zebra-indexdefs.xsl matches its regenerated
   version
4. git checkout etc/zebradb

-- 
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