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: Joshua Ferraro
Subject: [Koha-cvs] koha/C4 Biblio.pm [rel_2_2]
Date: Thu, 11 May 2006 14:55:25 +0000

CVSROOT:        /sources/koha
Module name:    koha
Branch:         rel_2_2
Changes by:     Joshua Ferraro <address@hidden> 06/05/11 14:55:24

Modified files:
        C4             : Biblio.pm 

Log message:
        MARC::File::XML switched the API in 0.83, this code updates Koha --
        it will break your record editing if you don't upgrade MARC::File::XML
        to 0.83 on CPAN.

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

Patches:
Index: koha/C4/Biblio.pm
diff -u koha/C4/Biblio.pm:1.115.2.52 koha/C4/Biblio.pm:1.115.2.53
--- koha/C4/Biblio.pm:1.115.2.52        Thu May 11 14:15:51 2006
+++ koha/C4/Biblio.pm   Thu May 11 14:55:24 2006
@@ -26,7 +26,7 @@
 use vars qw($VERSION @ISA @EXPORT);
 
 # set the version for version checking
-$VERSION = do { my @v = '$Revision: 1.115.2.52 $' =~ /\d+/g;
+$VERSION = do { my @v = '$Revision: 1.115.2.53 $' =~ /\d+/g;
                     shift(@v) . "." . join("_", map {sprintf "%03d", $_ } @v); 
};
 
 @ISA = qw(Exporter);
@@ -1042,9 +1042,10 @@
 }
 sub MARChtml2xml {
        my ($tags,$subfields,$values,$indicator,$ind_tag) = @_;        
-       #use MARC::File::XML;
-       my $xml= 
MARC::File::XML::header(C4::Context->preference('marcflavour'),C4::Context->preference('TemplateEncoding'));
 
+       use MARC::File::XML;
+       my $xml= 
MARC::File::XML::header(C4::Context->preference('TemplateEncoding'),C4::Context->preference('marcflavour'));
 
        #$xml =~ s/UTF-8/ISO-8859-1/;
+       #tell perl that $xml is whatever default encoding is
     my $prevvalue;
     my $prevtag=-1;
     my $first=1;
@@ -3004,8 +3005,13 @@
 
 =cut
 
-# $Id: Biblio.pm,v 1.115.2.52 2006/05/11 14:15:51 rangi Exp $
+# $Id: Biblio.pm,v 1.115.2.53 2006/05/11 14:55:24 kados Exp $
 # $Log: Biblio.pm,v $
+# Revision 1.115.2.53  2006/05/11 14:55:24  kados
+# MARC::File::XML switched the API in 0.83, this code updates Koha --
+# it will break your record editing if you don't upgrade MARC::File::XML
+# to 0.83 on CPAN.
+#
 # Revision 1.115.2.52  2006/05/11 14:15:51  rangi
 # Adding version string
 #




reply via email to

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