]> git.koha-community.org Git - koha.git/commit
Bug 11533: fix authority searching with no sorting when QueryParser is enabled
authorGalen Charlton <gmc@esilibrary.com>
Thu, 16 Jan 2014 20:36:02 +0000 (20:36 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 23 Apr 2014 16:23:21 +0000 (18:23 +0200)
commit06fe0ec4c3e7e4f7208378d3c6d77203f9b8cd7c
tree2064d09850299e85dffc13f434695bc8822f9bef
parent9c5bb7ab907be537a0c71dcf90faabaad6e63ef7
Bug 11533: fix authority searching with no sorting when QueryParser is enabled

This patch fixes an issue where chosing 'None' as the sort order
for an authority search would result in zero hits if QueryParser is
eanbled.

This patch also adds some additional test cases.

To test:

[1] Enable QueryParser.
[2] Perform an authority search in the staff interface that
    uses 'Heading A-Z' as the sort order and returns hits.
[3] Run the same search, but with the sort order set to 'None'.
    No hits are returned.
[4] Apply the patch.
[5] Do step 3 again.  This time, hits should be returned.
[6] Verify that prove -v t/db_dependent/Search.t passes.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 27c312b721d5533560234675712391a60f354c51)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/AuthoritiesMarc.pm
t/db_dependent/Search.t