C4::Search :Enhancements
[koha_fer] / opac / opac-main.pl
index 1bce420..99f672c 100755 (executable)
@@ -17,7 +17,7 @@
 
 
 use strict;
-require Exporter;
+use warnings;
 use CGI;
 use C4::Auth;    # get_template_and_user
 use C4::Output;
@@ -40,7 +40,7 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
     }
 );
 
-my $borrower = GetMember( $borrowernumber, 'borrowernumber' );
+my $borrower = GetMember( 'borrowernumber'=> $borrowernumber );
 $template->param(
     textmessaging        => $borrower->{textmessaging},
 );
@@ -56,4 +56,9 @@ $template->param(
     koha_news_count => $koha_news_count
 );
 
+# If GoogleIndicTransliteration system preference is On Set paramter to load Google's javascript in OPAC search screens 
+if (C4::Context->preference('GoogleIndicTransliteration')) {
+        $template->param('GoogleIndicTransliteration' => 1);
+}
+
 output_html_with_http_headers $input, $cookie, $template->output;