Bug 14861: Accession date comparison does not work in advanced search
authorDavid Cook <dcook@prosentient.com.au>
Tue, 6 Oct 2015 00:42:04 +0000 (11:42 +1100)
committerLiz Rea <wizzyrea@gmail.com>
Wed, 28 Oct 2015 01:16:39 +0000 (14:16 +1300)
commit51efc8fc59ccf24f80d92cf7947a8122baa0ea14
tree45a413bde7f89776995385d78c03e36bf32683ca
parent5aa88679696329ac2fae34225c8461f7b1e055d6
Bug 14861: Accession date comparison does not work in advanced search

_Test plan_

Prerequisites: Make sure that you have an item with a valid dateaccessioned,
and that the bib is indexed in zebra.

For the purposes of explanation, I'm going to use the date '2011-09-07'

1) Go to advanced search in the staff client and choose 'Acquisition date (yyyy-mm-dd)'
2) Enter 2011-09-07 (or the date of your choice).
3) Click the search button - you should get your item in the search results.
4) Return to the advanced search screen and select Acquisition date again.
5) Enter a start and end date in the text field separated by ' - '.

For example:

2011-09-01 - 2011-09-30

6) Click the search button -- this will return no results.
7) Apply the patch and copy etc/zebradb/ccl.properties to whatever directory is specified
by the koha-conf.xml referenced by $KOHA_CONF.
8) Try the search again -- this will return the expected results

Signed-off-by: Barton Chittenden <barton@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 5a9b8d9359424a3f0316f89348038fbb290e722b)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
(cherry picked from commit 257950686466e169dacbd0e6e93db8b0e16005a2)
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
etc/zebradb/ccl.properties