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:
parent
873091dcc8
commit
4c1ea37e63
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue