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 _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : https://www.koha-community.org/ git : https://git.koha-community.org/ bugs : https://bugs.koha-community.org/