From 6c3ac0a60c24416e0eb5fb3a213e1c7434377560 Mon Sep 17 00:00:00 2001 From: Srdjan Jankovic Date: Thu, 6 Oct 2011 13:55:47 +1300 Subject: [PATCH] [SIGNED-OFF] bug_6974: bugfix: do not create empty record before building input for new biblio Content-Type: text/plain; charset="utf-8" It messes up javascript default values Signed-off-by: Owen Leonard --- cataloguing/addbiblio.pl | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl index ba10332..29df4a5 100755 --- a/cataloguing/addbiblio.pl +++ b/cataloguing/addbiblio.pl @@ -1037,10 +1037,7 @@ elsif ( $op eq "delete" ) { $biblionumber = ""; } - if ( $record eq -1 ) { - $record = TransformHtmlToMarc( $input ); - } - else { + if ( $record ne -1 ) { #FIXME: it's kind of silly to go from MARC::Record to MARC::File::XML and then back again just to fix the encoding eval { my $uxml = $record->as_xml; -- 1.7.3