https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30745 --- Comment #30 from David Cook <dcook@prosentient.com.au> --- So... my workaround works and is considerably less scary: my $search_engine = C4::Context->preference('SearchEngine'); my $is_elasticsearch = 1 if $search_engine && $search_engine eq 'Elasticsearch'; $idx = $query->param('idx'); $ccl_textbox = $query->param('ccl_textbox'); if ( $ccl_textbox && $idx ) { $ccl_query = "$idx:$ccl_textbox"; } $datefrom = $query->param('datefrom'); $dateto = $query->param('dateto'); if ($datefrom) { $ccl_query .= ' AND ' if $ccl_textbox; if ($is_elasticsearch){ $ccl_query .= "acqdate:>" . $datefrom; } else { $ccl_query .= "acqdate,ge,st-date-normalized=" . $datefrom; } } if ($dateto) { $ccl_query .= ' AND ' if ( $ccl_textbox || $datefrom ); if ($is_elasticsearch){ $ccl_query .= "acqdate:<" . $dateto; } else { $ccl_query .= "acqdate,le,st-date-normalized=" . $dateto; } } -- You are receiving this mail because: You are watching all bug changes.