[Koha-cvs] koha/C4 Biblio.pm [rel_2_2]

Joshua Ferraro jmf at kados.org
Wed Mar 8 17:39:01 CET 2006


CVSROOT:	/sources/koha
Module name:	koha
Branch: 	rel_2_2
Changes by:	Joshua Ferraro <kados at savannah.gnu.org>	06/03/08 16:39:01

Modified files:
	C4             : Biblio.pm 

Log message:
	removing blank subfield values

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha/C4/Biblio.pm.diff?only_with_tag=rel_2_2&tr1=1.115.2.46&tr2=1.115.2.47&r1=text&r2=text

Patches:
Index: koha/C4/Biblio.pm
diff -u koha/C4/Biblio.pm:1.115.2.46 koha/C4/Biblio.pm:1.115.2.47
--- koha/C4/Biblio.pm:1.115.2.46	Wed Mar  8 16:31:04 2006
+++ koha/C4/Biblio.pm	Wed Mar  8 16:39:01 2006
@@ -1050,7 +1050,7 @@
 			#warn "IND:".substr(@$indicator[$j],0,1).substr(@$indicator[$j],1,1)." ".@$tags[$i];
 			if (!$first){
 		    	$xml.="</datafield>\n";
-				if (@$tags[$i] > 10) {
+				if ((@$tags[$i] > 10) && (@$values[$i] ne "")){
 						my $ind1 = substr(@$indicator[$j],0,1);
                         my $ind2 = substr(@$indicator[$j],1,1);
                         $xml.="<datafield tag=\"@$tags[$i]\" ind1=\"$ind1\" ind2=\"$ind2\">\n";
@@ -2993,8 +2993,11 @@
 
 =cut
 
-# $Id: Biblio.pm,v 1.115.2.46 2006/03/08 16:31:04 kados Exp $
+# $Id: Biblio.pm,v 1.115.2.47 2006/03/08 16:39:01 kados Exp $
 # $Log: Biblio.pm,v $
+# Revision 1.115.2.47  2006/03/08 16:39:01  kados
+# removing blank subfield values
+#
 # Revision 1.115.2.46  2006/03/08 16:31:04  kados
 # bugfix for Biblio.pm based on feedback from production system. previous
 # version was dropping subfields in cases where the previous tag in the





More information about the Koha-cvs mailing list