]> git.koha-community.org Git - koha.git/commit
Bug 12788: facets calculation should skip 100 if ind1=z
authorTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 20 Aug 2014 03:48:07 +0000 (00:48 -0300)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 23 Sep 2014 20:52:06 +0000 (20:52 +0000)
commit9f2c4b78261b2be1d4a09dd9dfcf0eef75acb308
tree4b06ccbf28f94f7f8e16059eae35250ed0bdf16a
parent5502447d41d93d91bfc9a20201f3049cd9f1642e
Bug 12788: facets calculation should skip 100 if ind1=z

This patch adds a test for field 100, to skip it on facet calculation
if ind1=z.

To test:
- Have IncludeSeeFromInSearches set.
- Create a biblio record, when adding an author, create a new authority record
  that contains a 400$a field (see from).
- Rebuild zebra db.
- Search for the record making sure the search returns more than one record.
=> FAIL: the facets contain the 'see from' field.
- Run
  $ prove -v t/db_dependent/Search.t
=> FAIL: it fails
- Apply the patch
- Run
  $ prove -v t/db_dependent/Search.t
=> SUCCESS: it passes
- Re-run the search, notice the 'see from' doesn't show anymore on the facets.
- Sign off :-D

Edit: minor stylistic change

Regards
To+

Sponsored-by: Universidad Nacional de Cordoba
Signed-off-by: Nick Clemens <nick@quecheelibrary.org>
Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Search.pm