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:
parent
e5f2ddb2be
commit
6773772d59
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue