From 4361e54a15a70d41d4d798f7b0711b6fd390d9ca Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 8 Apr 2019 12:14:31 +0100 Subject: [PATCH] Bug 15326: (follow-up) Code review fixes Addresses the following issues: b) In opac-cmspages there is: + flagsrequired => { borrow => 1 }, The borrow permission has been removed since. (blocker) c) Comment was removed unnecessarily, just needs to be moved into its right spot below again: -# If GoogleIndicTransliteration system preference is On Set parameter to load Google's javascript in OPAC search screens d) One file uses qw( -utf-8) but another does not: +use CGI; +use CGI qw( -utf8 ); (blocker) Signed-off-by: Michal Denar Signed-off-by: Michal Denar Rebased-by: Martin Renvoize --- opac/opac-cmspages.pl | 3 +-- opac/opac-main.pl | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/opac/opac-cmspages.pl b/opac/opac-cmspages.pl index 1cc68d0c4f..ac31dae08d 100755 --- a/opac/opac-cmspages.pl +++ b/opac/opac-cmspages.pl @@ -18,7 +18,7 @@ # along with Koha; if not, see . use Modern::Perl; -use CGI; +use CGI qw( -utf8 ); use C4::Auth; use C4::Output; use C4::Languages qw( getTranslatedLanguages accept_language ); @@ -36,7 +36,6 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( type => "opac", query => $input, authnotrequired => ( C4::Context->preference( "OpacPublic" ) ? 1 : 0 ), - flagsrequired => { borrow => 1 }, } ); diff --git a/opac/opac-main.pl b/opac/opac-main.pl index 980914cd74..3915975380 100755 --- a/opac/opac-main.pl +++ b/opac/opac-main.pl @@ -116,7 +116,7 @@ $template->param( parent_list => $parent_list, ); - +# If GoogleIndicTransliteration system preference is On Set parameter to load Google's javascript in OPAC search screens if (C4::Context->preference('GoogleIndicTransliteration')) { $template->param('GoogleIndicTransliteration' => 1); -- 2.11.0