[Koha-patches] [PATCH] bug 5372: identify empty field in authority record correctly

Galen Charlton gmcharlt at gmail.com
Wed Nov 10 05:48:33 CET 2010


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 at gmail.com>
---
 authorities/authorities.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/authorities/authorities.pl b/authorities/authorities.pl
index 2973697..468021c 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{};
-- 
1.7.0



More information about the Koha-patches mailing list