]> git.koha-community.org Git - koha.git/commit
Bug 31076: Handle year limits with equal sign or colon
authorNick Clemens <nick@bywatersolutions.com>
Fri, 1 Jul 2022 11:08:57 +0000 (11:08 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 14 Oct 2022 19:36:22 +0000 (19:36 +0000)
commita72ecc3b27379a48bb7f5e45d11e923909edea20
tree03d46ab76e47174cfa27a7137b41c659b1e6bbd7
parent4cf509b2480935286ce93fc36b7235c72ab203d2
Bug 31076: Handle year limits with equal sign or colon

To test:
1 - Enable ES and index
2 - Set expandedSearchOption to 'show'
3 - Advanced search on staff and opac using Year field on staff and Publication date range on OPAC for:
    2005
    2005-
    -2005
    <2005
    >2005
    2005-2010
4 - Confirm ranges don't work on staff side, but do on opac
5 - Apply patch
6 - Repeat searches - they work on both staff and opac
7 - prove t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit a11633379f8d9f6a933da7fa887b2e7966e3765a)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm
t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t