[Koha-bugs] [Bug 15870] Add Filter for MARC to respect visibility settings

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 24 16:21:50 CET 2016


Tomás Cohen Arazi <tomascohen at gmail.com> changed:

           What    |Removed                     |Added
  Attachment #48813|0                           |1
        is obsolete|                            |

--- Comment #26 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 49535
Bug 15870: (QA followup) Add tests

This patch introduces functionality tests for the new Koha::Filter.
It iterates over all the possible 'hidden' values defined in the docs
for hiding/showing fields and subfields, and checks the filter does the job.

It tests the functionality for both opac and intranet interfaces and tries
to catch all scenarios. It adds control fields to the sample record (they
traverse a different branch in the code).

TODO: Add another subfield to 245, set it to be hidden, and make sure 245 $a is

The original tests file has been renamed conveniently.

To test:
- Run
  $ prove t/db_dependent/Filter_MARC_ViewPolicy.t

Signed-off-by: Tomas Cohen Arazi <tomascohen at unc.edu.ar>
Signed-off-by: Hector Castro <hector.hecaxmmx at gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

You are receiving this mail because:
You are watching all bug changes.

More information about the Koha-bugs mailing list