[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/C4 Biblio.pm
From: |
Tumer Garip |
Subject: |
[Koha-cvs] koha/C4 Biblio.pm |
Date: |
Sat, 15 Apr 2006 02:47:47 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch:
Changes by: Tumer Garip <address@hidden> 06/04/15 02:47:47
Modified files:
C4 : Biblio.pm
Log message:
Change the MARC Leader to UTF-8 incase user did not set it. Important
for Zebra.
The new M::F::XML is sensitive to leader settings
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha/C4/Biblio.pm.diff?tr1=1.169&tr2=1.170&r1=text&r2=text
Patches:
Index: koha/C4/Biblio.pm
diff -u koha/C4/Biblio.pm:1.169 koha/C4/Biblio.pm:1.170
--- koha/C4/Biblio.pm:1.169 Mon Apr 10 20:39:49 2006
+++ koha/C4/Biblio.pm Sat Apr 15 02:47:47 2006
@@ -32,7 +32,7 @@
use vars qw($VERSION @ISA @EXPORT);
# set the version for version checking
-$VERSION = do { my @v = '$Revision: 1.169 $' =~ /\d+/g;
+$VERSION = do { my @v = '$Revision: 1.170 $' =~ /\d+/g;
shift(@v) . "." . join("_", map {sprintf "%03d", $_ } @v); };
@ISA = qw(Exporter);
@@ -898,7 +898,8 @@
my $old_field = $record->field($tagfield);
$record->delete_field($old_field);
$record->add_fields($newfield);
-
+ #Change MARC Leader to UTF-8 incase user did not set it.New M::F::XML
is sensitive to this
+ $record->encoding('UTF-8');
#create the marc entry, that stores the rax marc record in Koha 3.0
$olddata->{marc} = $record->as_usmarc();
$olddata->{marcxml} = $record->as_xml_record();
@@ -3061,8 +3062,12 @@
=cut
-# $Id: Biblio.pm,v 1.169 2006/04/10 20:39:49 tgarip1957 Exp $
+# $Id: Biblio.pm,v 1.170 2006/04/15 02:47:47 tgarip1957 Exp $
# $Log: Biblio.pm,v $
+# Revision 1.170 2006/04/15 02:47:47 tgarip1957
+# Change the MARC Leader to UTF-8 incase user did not set it. Important for
Zebra.
+# The new M::F::XML is sensitive to leader settings
+#
# Revision 1.169 2006/04/10 20:39:49 tgarip1957
# New sub to use by Circ2.pm . Allows one subfield of MARC holdings fields to
be updated to use with branch transfer(holdingbranch) and onloan flag when set
#