[Koha-bugs] [Bug 31076] New: Bug 22605 breaks date of publication range search

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 1 10:50:33 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31076

            Bug ID: 31076
           Summary: Bug 22605 breaks date of publication range search
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Searching - Elasticsearch
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: fridolin.somers at biblibre.com

Bug 22605 changed in staff interface the date of publication limit :
       - $limit_yr = "yr,st-numeric=$params->{'limit-yr'}";
       + $limit_yr = "yr,st-numeric:$params->{'limit-yr'}";

This breaks the range search on date of publication which is a special case in
QueryBuilder :
https://git.koha-community.org/Koha-community/Koha/src/commit/6c315c164dbcf3e05fcfe4a3110b824ab3ac162c/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm#L1058

Maybe juste allow ":" or "=" :
  my ($date) = ( $l =~ /^yr,st-numeric[=:](.*)$/ );

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list