bug 5372: identify empty field in authority record correctly

This is the sibling to the fix for this bug for the bib
editor.  However, note that this change won't have a
direct effect yet, as currently you can't specify a
default value for a field or subfield in the authority
MARC frameworks.  See bug 4887.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Galen Charlton 2010-11-09 23:48:33 -05:00 committed by Chris Cormack
parent 1aef81c354
commit daabd936d6
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ sub create_input {
}
# if there is no value provided but a default value in parameters, get it
unless ($value) {
if ($value eq '') {
$value = $tagslib->{$tag}->{$subfield}->{defaultvalue};
if (!defined $value) {
$value = q{};