]> 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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 19 Aug 2022 19:28:53 +0000 (16:28 -0300)
commita11633379f8d9f6a933da7fa887b2e7966e3765a
tree8e0d025816ebec43000e2f21cb139e0ef5a7542b
parent1611fc4c39ec13b69ac516400bd6e7df4513a5f5
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>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm
t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t