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 <oleonard@myacpl.org>
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Srdjan Jankovic 2011-10-06 13:55:47 +13:00 committed by Chris Cormack
parent 873091dcc8
commit 4c1ea37e63
1 changed files with 1 additions and 4 deletions

View File

@ -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;