koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Chris Cormack
Subject: [Koha-cvs] koha/C4 Biblio.pm [rel_2_2]
Date: Wed, 01 Mar 2006 04:52:08 +0000

CVSROOT:        /sources/koha
Module name:    koha
Branch:         rel_2_2
Changes by:     Chris Cormack <address@hidden>  06/03/01 04:52:08

Modified files:
        C4             : Biblio.pm 

Log message:
        More testing

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

Patches:
Index: koha/C4/Biblio.pm
diff -u koha/C4/Biblio.pm:1.115.2.38 koha/C4/Biblio.pm:1.115.2.39
--- koha/C4/Biblio.pm:1.115.2.38        Wed Mar  1 04:43:25 2006
+++ koha/C4/Biblio.pm   Wed Mar  1 04:52:08 2006
@@ -1043,7 +1043,7 @@
         my $prevtag=-1;
         my $first=1;
         for (my $i=0;$i<address@hidden;$i++){
-            if ((@$tags[$i] ne $prevtag) && ($prevtag != -1)){
+            if ((@$tags[$i] ne $prevtag)){
                 if (!$first){
                    $xml.="</datafield>\n";
                    $first=1;
@@ -1062,6 +1062,7 @@
                    }
                    else {
                        $xml.="<datafield tag=\"@$tags[$i]\" ind1=\"   \" 
ind2=\"   \">\n";
+                       $xml.="<subfield 
code=\"@$subfields[$i]\">@$values[$i]</subfield>\n";
                        $first=0;                       
                    }
                    }
@@ -1070,9 +1071,9 @@
                 if (@$values[$i] eq "") {
                 }
                 else {
-                   if (!$first){
-                       $xml.="<subfield 
code=\"@$subfields[$i]\">@$values[$i]</subfield>\n";
-                   }
+                   
+                   $xml.="<subfield 
code=\"@$subfields[$i]\">@$values[$i]</subfield>\n";
+
                 }
             }
             $prevtag = @$tags[$i];
@@ -2976,8 +2977,11 @@
 
 =cut
 
-# $Id: Biblio.pm,v 1.115.2.38 2006/03/01 04:43:25 rangi Exp $
+# $Id: Biblio.pm,v 1.115.2.39 2006/03/01 04:52:08 rangi Exp $
 # $Log: Biblio.pm,v $
+# Revision 1.115.2.39  2006/03/01 04:52:08  rangi
+# More testing
+#
 # Revision 1.115.2.38  2006/03/01 04:43:25  rangi
 # Fixing it again, for testing
 #




reply via email to

[Prev in Thread] Current Thread [Next in Thread]