[Koha-cvs] koha/acqui.simple addbiblio.pl [rel_2_2]

Joshua Ferraro jmf at kados.org
Sat Mar 18 14:20:21 CET 2006


CVSROOT:	/sources/koha
Module name:	koha
Branch: 	rel_2_2
Changes by:	Joshua Ferraro <kados at savannah.gnu.org>	06/03/18 13:20:21

Modified files:
	acqui.simple   : addbiblio.pl 

Log message:
	keep subfields expanded if values exist

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha/acqui.simple/addbiblio.pl.diff?only_with_tag=rel_2_2&tr1=1.52.2.32&tr2=1.52.2.33&r1=text&r2=text

Patches:
Index: koha/acqui.simple/addbiblio.pl
diff -u koha/acqui.simple/addbiblio.pl:1.52.2.32 koha/acqui.simple/addbiblio.pl:1.52.2.33
--- koha/acqui.simple/addbiblio.pl:1.52.2.32	Fri Mar 17 10:50:17 2006
+++ koha/acqui.simple/addbiblio.pl	Sat Mar 18 13:20:21 2006
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 
-# $Id: addbiblio.pl,v 1.52.2.32 2006/03/17 10:50:17 kados Exp $
+# $Id: addbiblio.pl,v 1.52.2.33 2006/03/18 13:20:21 kados Exp $
 
 # Copyright 2000-2002 Katipo Communications
 #
@@ -179,7 +179,7 @@
 	$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);





More information about the Koha-cvs mailing list