[Koha-patches] [PATCH] Bug 2505: Enabled warnings in opac-serial-issues.pl and opac-showmarc.pl

Garry Collum gcollum at gmail.com
Sun Aug 9 19:47:14 CEST 2009


Enabled warnings and also fixed resulting 'unintialized value' warning in opac-showmarc.pl.
---
 opac/opac-serial-issues.pl |    2 ++
 opac/opac-showmarc.pl      |    3 ++-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/opac/opac-serial-issues.pl b/opac/opac-serial-issues.pl
index 4935e29..8993d7f 100755
--- a/opac/opac-serial-issues.pl
+++ b/opac/opac-serial-issues.pl
@@ -19,6 +19,8 @@
 
 
 use strict;
+use warnings;
+
 use CGI;
 use C4::Auth;
 use C4::Koha;
diff --git a/opac/opac-showmarc.pl b/opac/opac-showmarc.pl
index b38d77e..2024bcb 100755
--- a/opac/opac-showmarc.pl
+++ b/opac/opac-showmarc.pl
@@ -25,6 +25,7 @@
 # Suite 330, Boston, MA  02111-1307 USA
 
 use strict;
+use warnings;
 
 # standard or CPAN modules used
 use CGI;
@@ -41,7 +42,7 @@ use XML::LibXML;
 my $input       = new CGI;
 my $biblionumber = $input->param('id');
 my $importid	= $input->param('importid');
-my $view		= $input->param('viewas');
+my $view		= $input->param('viewas') || 'marc';
 
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user({
         template_name   => "opac-showmarc.tmpl",
-- 
1.5.6.5




More information about the Koha-patches mailing list