From daabd936d6cb13bd680652da5a32fd1ce354684a Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 9 Nov 2010 23:48:33 -0500 Subject: [PATCH] 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 Signed-off-by: Chris Cormack --- authorities/authorities.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authorities/authorities.pl b/authorities/authorities.pl index 297369730e..468021ceca 100755 --- a/authorities/authorities.pl +++ b/authorities/authorities.pl @@ -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{}; -- 2.39.5