Bug 37069: OPAC authorities search is stateless

This patch removes cud- from the search op and chanegs the form
submission to GET

To test:
1 - Search authorities on OPAC for 'a'
2 - Click page 2
3 - You get the search form
4 - Apply patch, restart all
5 - Repeat search, confirm it works
6 - Click page 2
7 - Confirm you get next results

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Nick Clemens 2024-06-11 12:36:15 +00:00 committed by Katrin Fischer
parent b0f53c5aff
commit 1a2b740569
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834
2 changed files with 3 additions and 3 deletions

View file

@ -32,9 +32,9 @@
<div class="col order-first order-md-first order-lg-2">
[% END %]
<div id="userauthhome" class="maincontent">
<form name="f" action="/cgi-bin/koha/opac-authorities-home.pl" method="post">
<form name="f" action="/cgi-bin/koha/opac-authorities-home.pl" method="get">
[% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="cud-do_search" />
<input type="hidden" name="op" value="do_search" />
<input type="hidden" name="type" value="opac" />
<fieldset class="rows">
<legend><h1>Authority search</h1></legend>

View file

@ -48,7 +48,7 @@ my ( $template, $loggedinuser, $cookie );
my $authority_types = Koha::Authority::Types->search({}, { order_by => ['authtypetext']});
if ( $op eq "cud-do_search" ) {
if ( $op eq "do_search" ) {
my @input_marclist = $query->multi_param('marclist');
my @and_or = $query->multi_param('and_or');
my @excluding = $query->multi_param('excluding');