projects
/
koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e89e322
)
fix for "marc upload fail silently" (from MJRay)
author
tipaul
<tipaul>
Wed, 8 Dec 2004 10:11:51 +0000
(10:11 +0000)
committer
tipaul
<tipaul>
Wed, 8 Dec 2004 10:11:51 +0000
(10:11 +0000)
C4/Breeding.pm
patch
|
blob
|
history
diff --git
a/C4/Breeding.pm
b/C4/Breeding.pm
index
f2029ac
..
4e17bb0
100644
(file)
--- a/
C4/Breeding.pm
+++ b/
C4/Breeding.pm
@@
-73,7
+73,7
@@
where isbn=? and title=?");
for (my $i=0;$i<=$#marcarray;$i++) {
my $marcrecord = MARC::File::USMARC::decode($marcarray[$i]."\x1D");
my @warnings = $marcrecord->warnings();
- if (
ref($marcrecord) eq undef
) {
+ if (
scalar($marcrecord->fields()) == 0
) {
$notmarcrecord++;
} else {
my $oldbiblio = MARCmarc2koha($dbh,$marcrecord,'');