Bug 34478: Manual fix - Remove cud-search from z3950-admin-search.inc

Convert POST to GET for z3950 server search

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
David Cook 2024-02-14 23:34:27 +00:00 committed by Jonathan Druart
parent 8dc35c14b1
commit 768b24af78
Signed by: jonathan.druart
GPG key ID: A085E712BEF0E0F0
2 changed files with 3 additions and 4 deletions

View file

@ -81,7 +81,7 @@ if( $op eq 'cud-delete_confirmed' && $id ) {
Koha::Z3950Server->new( $formdata )->store;
$template->param( msg_added => 1, msg_add => $formdata->{servername} );
}
} elsif ($op eq 'cud-search') {
} elsif ($op eq 'search') {
#use searchfield only in remaining operations
$searchfield = $input->param('searchfield') || '';
}

View file

@ -3,8 +3,7 @@
<div id="header_search" role="tablist">
<div class="tab-content">
<div id="z3950_search" role="tabpanel" class="tab-pane active">
<form action="/cgi-bin/koha/admin/z3950servers.pl" method="post">
[% INCLUDE 'csrf-token.inc' %]
<form action="/cgi-bin/koha/admin/z3950servers.pl" method="get">
<div class="form-title">
<label class="control-label" for="searchfield"><span class="control-text">Search Z39.50/SRU servers</span> <i class="fa fa-fw fa-search" aria-hidden="true"></i></label>
</div>
@ -12,7 +11,7 @@
<div class="form-content">
<input class="head-searchbox form-control" type="text" name="searchfield" id="searchfield" value="[% searchfield | html %]" placeholder="Z39.50/SRU server search" />
</div>
<input type="hidden" name="op" value="cud-search" />
<input type="hidden" name="op" value="search" />
<button type="submit" aria-label="Search"><i class="fa fa-arrow-right"></i></button>
</form>
</div>