]> 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)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Wed, 19 Oct 2022 03:07:19 +0000 (05:07 +0200)
commit1ea8d9931916c3a93439825d8574a611d7c69c9a
tree5152edcf257d20e8e64d862fb95fc4480feeb3c7
parentb3d4270a0ef23f4c82a5709f4754e013d7ec7fa8
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>
(cherry picked from commit a72ecc3b27379a48bb7f5e45d11e923909edea20)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm
t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t