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>
use strict;
+use warnings;
+
use CGI;
use C4::Auth;
use C4::Koha;
# Suite 330, Boston, MA 02111-1307 USA
use strict;
+use warnings;
# standard or CPAN modules used
use CGI;
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",