From: Srdjan Jankovic Date: Thu, 6 Oct 2011 00:55:47 +0000 (+1300) Subject: bug_6974: bugfix: do not create empty record before building input for new biblio X-Git-Tag: v3.06.00~149 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=4c1ea37e6366fc7a17ece602f73de4d7ebfbd279;p=koha_gimpoz bug_6974: bugfix: do not create empty record before building input for new biblio It messes up javascript default values Signed-off-by: Owen Leonard Signed-off-by: Ian Walls Signed-off-by: Chris Cormack --- diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl index ba10332533..29df4a57f9 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;