]> git.koha-community.org Git - koha.git/commit
Bug 23970: Make search with "Publication date" field work at any position
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 25 Nov 2019 12:35:25 +0000 (13:35 +0100)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 20 Dec 2019 17:08:48 +0000 (17:08 +0000)
commit837604d935f355904b46a878469390ab4a858c03
tree6bdc037d71e4b78b6fce50bd092b0dd6c7b1ee0d
parent7463b7ac3cc81edb20eb1d4008d22019d6ef8c50
Bug 23970: Make search with "Publication date" field work at any position

The changes made in the following commit:
  commit 0d2e83bca5b91376e9262b6cb0b993f09b919018
  Bug 14636: Item search - fix search and sort by publication date for MARC21
was put at the wrong place. It was inside a "if $i == 1" test that
impacts the first field only.

Test plan:
0/ Use a MARC21 installation
1/ Search items by publication date, use twice the field using different
values.
For instance:
  publication date: 2005 OR
  publication date: 2006
=> Without this patch you only get results for 2005
=> With this patch applied you get results for both years.

Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit c589da3c2931bbe0cc1c4f31899b71044c860082)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
catalogue/itemsearch.pl