[Koha-devel] Need help with bug 26247

Mark Alexander marka at pobox.com
Tue May 3 02:17:52 CEST 2022


Excerpts from Michael Hafen (TECH)'s message of 2022-05-02 15:12:41 -0600:
> $(document).ready(function() {
>   $("#header_search #catalog_search input[name='q']").val("");
> });
> 
> in the IntranetUserJS system preference )

This doesn't work.  The barcode is still in the searchbox after
submitting the form.

> /catalogue/search.pl:
>  379 if ($operands[0] && !$operands[1]) {
>  380     my $ms_query = $operands[0];
>  381     $ms_query =~ s/ #\S+//;
>  382     $template->param(ms_value => $ms_query);
>  383 }

Yes, I discovered this function already and tried hacking it in
various ways.  For example, replacing the first line with this:

if (0 && $operands[0] && !$operands[1]) {

Or changing the name of the parameter being passed to the template
with something bogus:

    $template->param(ms_value_bogus => $ms_query);

Nothing works.  Just to be safe, I tried rebooting the VM after
each change to make sure that all caches were cleared.

Something else is filling in the searchbox, and it's driving
me crazy trying to figure it out.

I think the next step is to try to figure out exactly which
change caused the problem, perhaps using docker.

-- 
I need more time and I probably always will. --Ashleigh Brilliant


More information about the Koha-devel mailing list