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>
(cherry picked from commit 4c1ea37e63)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
Srdjan Jankovic 2011-10-06 13:55:47 +13:00 committed by Chris Nighswonger
parent e5f2ddb2be
commit 6773772d59
1 changed files with 1 additions and 4 deletions

View File

@ -1007,10 +1007,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;