From aa6f7b89402d084c53fc36d0696d4ffaca1fc601 Mon Sep 17 00:00:00 2001 From: kados Date: Sat, 18 Mar 2006 13:20:21 +0000 Subject: [PATCH] keep subfields expanded if values exist --- acqui.simple/addbiblio.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui.simple/addbiblio.pl b/acqui.simple/addbiblio.pl index 8540fb782c..3631b841d0 100755 --- a/acqui.simple/addbiblio.pl +++ b/acqui.simple/addbiblio.pl @@ -179,7 +179,7 @@ sub create_input () { $subfield_data{repeatable}=$tagslib->{$tag}->{$subfield}->{repeatable}; $subfield_data{kohafield}=$tagslib->{$tag}->{$subfield}->{kohafield}; $subfield_data{index} = $i; - $subfield_data{visibility} = "display:none" unless ($tagslib->{$tag}->{$subfield}->{hidden}%2==0); #check parity + $subfield_data{visibility} = "display:none" unless (($tagslib->{$tag}->{$subfield}->{hidden}%2==0) or $value ne ''); #check parity # it's an authorised field if ($tagslib->{$tag}->{$subfield}->{authorised_value}) { $subfield_data{marc_value}= build_authorized_values_list($tag, $subfield, $value, $dbh,$authorised_values_sth); -- 2.39.5