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)
committerChris Cormack <chris@bigballofwax.co.nz>
Fri, 23 Oct 2015 09:17:36 +0000 (22:17 +1300)
commit257950686466e169dacbd0e6e93db8b0e16005a2
tree83f2151577efcf68287ea91dadfb80a4c4403bfa
parent2943112a2844f7106de0139bb449c3b3ef27fb02
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>
etc/zebradb/ccl.properties