Bug 2505: Enabled warnings in opac-serial-issues.pl and opac-showmarc.pl
authorGarry Collum <gcollum@gmail.com>
Sun, 9 Aug 2009 17:47:14 +0000 (13:47 -0400)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 16 Sep 2009 21:19:24 +0000 (23:19 +0200)
Enabled warnings and also fixed resulting 'unintialized value' warning in opac-showmarc.pl.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
opac/opac-serial-issues.pl
opac/opac-showmarc.pl

index 4935e29..8993d7f 100755 (executable)
@@ -19,6 +19,8 @@
 
 
 use strict;
+use warnings;
+
 use CGI;
 use C4::Auth;
 use C4::Koha;
index b38d77e..2024bcb 100755 (executable)
@@ -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",