From 5e22fe815e6ad35145fe98c9e9725162f0b1e976 Mon Sep 17 00:00:00 2001 From: BestBookBuddies Date: Fri, 7 Sep 2018 02:42:18 +0000 Subject: [PATCH] Bug 16355: Fix Searching for items added before or after a specific data As specified searching for items added before or after a specific data is not working in Koha 16.x while using MARC-21 format. After applying this patch desired result is generated. --- labels/label-item-search.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/labels/label-item-search.pl b/labels/label-item-search.pl index 57f3ff3ea8..1e0f265558 100755 --- a/labels/label-item-search.pl +++ b/labels/label-item-search.pl @@ -88,7 +88,7 @@ if ( $op eq "do_search" ) { "acqdate(" . $datefrom . '-)'; } else { $ccl_query .= ' and ' if $ccl_textbox; - $ccl_query .= "acqdate,st-date-normalized,ge=" . $datefrom; + $ccl_query .= "acqdate,st-date-normalized,ge>=" . $datefrom; } } } @@ -102,7 +102,7 @@ if ( $op eq "do_search" ) { $ccl_query .= "acqdate(-" . $dateto . ')'; } else { $ccl_query .= ' and ' if ( $ccl_textbox || $datefrom ); - $ccl_query .= "acqdate,st-date-normalized,le=" . $dateto; + $ccl_query .= "acqdate,st-date-normalized,le<=" . $dateto; } } } -- 2.11.0