[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/C4 Biblio.pm
From: |
Chris Cormack |
Subject: |
[Koha-cvs] koha/C4 Biblio.pm |
Date: |
Mon, 13 Mar 2006 23:12:44 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch:
Changes by: Chris Cormack <address@hidden> 06/03/13 23:12:44
Modified files:
C4 : Biblio.pm
Log message:
Adding commits, so that changes stick
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha/C4/Biblio.pm.diff?tr1=1.161&tr2=1.162&r1=text&r2=text
Patches:
Index: koha/C4/Biblio.pm
diff -u koha/C4/Biblio.pm:1.161 koha/C4/Biblio.pm:1.162
--- koha/C4/Biblio.pm:1.161 Fri Mar 10 02:40:38 2006
+++ koha/C4/Biblio.pm Mon Mar 13 23:12:44 2006
@@ -30,7 +30,7 @@
use vars qw($VERSION @ISA @EXPORT);
# set the version for version checking
-$VERSION = do { my @v = '$Revision: 1.161 $' =~ /\d+/g;
+$VERSION = do { my @v = '$Revision: 1.162 $' =~ /\d+/g;
shift(@v) . "." . join("_", map {sprintf "%03d", $_ } @v); };
@ISA = qw(Exporter);
@@ -994,8 +994,11 @@
}
# &MARCdelbiblio( $dbh, $bibid, 0 );
# delete from zebra
- my $record = get_record($bibid);
+# my $record = get_record($bibid);
# z3950_extended_services('update',set_service_options('update'),$record);
+ warn "heres the record to delete $bibid";
+
z3950_extended_services('update',set_service_options('update','recordDelete',$bibid));
+ z3950_extended_services('commit');
}
=head2 NEWnewitem
@@ -1310,6 +1313,7 @@
my $record = MARC::File::USMARC::decode($biblioitem->{marc});
z3950_extended_services('update',set_service_options('update'),$record);
+ z3950_extended_services('commit');
# warn "MOD : $biblioitem->{biblioitemnumber} = ".$biblioitem->{marc};
@@ -1378,6 +1382,7 @@
);
$dbh->do("unlock tables");
z3950_extended_services('update',set_service_options('update'),$record);
+ z3950_extended_services('commit');
return ($biblioitemnumber);
}
@@ -1526,6 +1531,7 @@
$error .= $sth->errstr;
}
z3950_extended_services('update',set_service_options('update'),$record);
+ z3950_extended_services('commit');
$dbh->do('unlock tables');
return ( $itemnumber, $error );
}
@@ -1614,6 +1620,7 @@
$sth=$dbh->prepare("update biblioitems set marc=?,marcxml=? where
biblionumber=? and biblioitemnumber=?");
$sth->execute($record->as_usmarc(),$record->as_xml(),$item->{biblionumber},$item->{biblioitemnumber});
z3950_extended_services('update',set_service_options('update'),$record);
+ z3950_extended_services('commit');
if ( defined $sth->errstr ) {
$error .= $sth->errstr;
}
@@ -2987,8 +2994,11 @@
=cut
-# $Id: Biblio.pm,v 1.161 2006/03/10 02:40:38 kados Exp $
+# $Id: Biblio.pm,v 1.162 2006/03/13 23:12:44 rangi Exp $
# $Log: Biblio.pm,v $
+# Revision 1.162 2006/03/13 23:12:44 rangi
+# Adding commits, so that changes stick
+#
# Revision 1.161 2006/03/10 02:40:38 kados
# syncing MARChtml2xml wtih rel_2_2, removing unused MARChtml2marc
#