Bug 17602: Fix few minor QA issues
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
fa8cda129e
commit
82ec758f18
|
|
@ -17,26 +17,28 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with Koha; if not, see <http://www.gnu.org/licenses>.
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Modern::Perl;
|
||||
|
||||
use CGI qw ( -utf8 );
|
||||
use CGI qw( -utf8 );
|
||||
|
||||
use C4::Auth qw(:DEFAULT);
|
||||
use C4::Auth;
|
||||
use C4::Output;
|
||||
|
||||
my $cgi = new CGI;
|
||||
|
||||
# Getting the template and auth
|
||||
my ($template, $loggedinuser, $cookie)
|
||||
= get_template_and_user({template_name => "opac-recordedbooks-search.tt",
|
||||
query => $cgi,
|
||||
type => "opac",
|
||||
debug => 1,
|
||||
authnotrequired => 1,
|
||||
});
|
||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||
{
|
||||
template_name => "opac-recordedbooks-search.tt",
|
||||
query => $cgi,
|
||||
type => "opac",
|
||||
debug => 1,
|
||||
authnotrequired => 1,
|
||||
}
|
||||
);
|
||||
|
||||
$template->{'VARS'}->{'q'} = $cgi->param('q');
|
||||
$template->{'VARS'}->{'limit'} = C4::Context->preference('OPACnumSearchResults');
|
||||
$template->param(
|
||||
q => scalar $cgi->param('q'),
|
||||
limit => C4::Context->preference('OPACnumSearchResults'),
|
||||
);
|
||||
|
||||
output_html_with_http_headers $cgi, $cookie, $template->output;
|
||||
|
|
|
|||
Loading…
Reference in New Issue