]> git.koha-community.org Git - koha.git/commit
Bug 13528: Use the different isbn variations on search on the isbn index (nb)
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 22 Dec 2014 14:56:41 +0000 (15:56 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 16 Apr 2015 16:44:57 +0000 (13:44 -0300)
commit97f836ef99a38d0d9cff81378c3ca118e48d4dc0
tree42c178b14c7e6d0b7682cd2ad0e4131e3d6aa375
parent56d366f3b1b7346338f9bd3aa676382734e5782b
Bug 13528: Use the different isbn variations on search on the isbn index (nb)

This enhancement adds the ability to search on all isbn variations when
searching on the isbn index.

Test plan:
0/ Don't apply the patch
1/ Create or choose a notice with an isbn with dashes.
2/ Try to search the notice using the isbn index by it isbn without
dashes.
=> It does not work.
3/ Apply the patch, enable the new pref SearchWithISBNVariations and
disable UseQueryParser.
4/ repeat 2 and note that the record is now returned.

Note that this only works if UseQueryParser is disabled.
It looks like QueryParser does not manage more than 1 operator.
See:
  QueryParser does not manage more than 1 operator?
  http://lists.koha-community.org/pipermail/koha-devel/2014-December/041028.html
and
  commit 036f2a50e11dab97ef8509f2f585c4cc407ea728
  Author: Galen Charlton <gmc@esilibrary.com>
  Date:   Mon May 5 19:31:00 2014 +0000
      Bug 10500: (follow-up) disable AggressiveMatchOnISBN if
      UseQueryParser is on

Signed-off-by: Morag Hills <the.invinnysible.one@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Search.pm
installer/data/mysql/sysprefs.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref