[Top][All Lists]
[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: |
Mon, 10 Apr 2006 19:53:44 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: rel_2_2
Changes by: Joshua Ferraro <address@hidden> 06/04/10 19:53:44
Modified files:
C4 : Biblio.pm
Log message:
adds a quick sanity check to make sure we're dealing with valid MARC
tags (a client of mine had tags from a Dynix system that were '???' and
this was causing bulkmarcimport.pl to fail horribly. This fixes that
problem).
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha/C4/Biblio.pm.diff?only_with_tag=rel_2_2&tr1=1.115.2.48&tr2=1.115.2.49&r1=text&r2=text
Patches:
Index: koha/C4/Biblio.pm
diff -u koha/C4/Biblio.pm:1.115.2.48 koha/C4/Biblio.pm:1.115.2.49
--- koha/C4/Biblio.pm:1.115.2.48 Wed Mar 8 16:50:14 2006
+++ koha/C4/Biblio.pm Mon Apr 10 19:53:44 2006
@@ -350,6 +350,8 @@
# now, add subfields...
foreach my $field (@fields) {
$fieldcount++;
+ # make sure we're dealing with valid MARC tags
+ if ($field->tag =~ /^[0-9A-Za-z]{3}$/) {
if ( $field->tag() < 10 ) {
&MARCaddsubfield( $dbh, $bibid, $field->tag(), '', $fieldcount, '',
1, $field->data() );
@@ -369,6 +371,7 @@
);
}
}
+ }
}
# save leader
&MARCaddsubfield($dbh,$bibid,'000','',$fieldcount+1,'',1,$record->leader);
@@ -2999,8 +3002,14 @@
=cut
-# $Id: Biblio.pm,v 1.115.2.48 2006/03/08 16:50:14 kados Exp $
+# $Id: Biblio.pm,v 1.115.2.49 2006/04/10 19:53:44 kados Exp $
# $Log: Biblio.pm,v $
+# Revision 1.115.2.49 2006/04/10 19:53:44 kados
+# adds a quick sanity check to make sure we're dealing with valid MARC
+# tags (a client of mine had tags from a Dynix system that were '???' and
+# this was causing bulkmarcimport.pl to fail horribly. This fixes that
+# problem).
+#
# Revision 1.115.2.48 2006/03/08 16:50:14 kados
# re-adding paul's fix for improper XML characters.
#
- [Koha-cvs] koha/C4 Biblio.pm [rel_2_2],
Joshua Ferraro <=