[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/C4 Biblio.pm [rel_3_0]
From: |
Antoine Farnault |
Subject: |
[Koha-cvs] koha/C4 Biblio.pm [rel_3_0] |
Date: |
Thu, 11 Jan 2007 16:33:04 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: rel_3_0
Changes by: Antoine Farnault <toins> 07/01/11 16:33:04
Modified files:
C4 : Biblio.pm
Log message:
write $record->as_formatted into the log.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Biblio.pm?cvsroot=koha&only_with_tag=rel_3_0&r1=1.178.2.47&r2=1.178.2.48
Patches:
Index: Biblio.pm
===================================================================
RCS file: /sources/koha/koha/C4/Biblio.pm,v
retrieving revision 1.178.2.47
retrieving revision 1.178.2.48
diff -u -b -r1.178.2.47 -r1.178.2.48
--- Biblio.pm 10 Jan 2007 16:46:27 -0000 1.178.2.47
+++ Biblio.pm 11 Jan 2007 16:33:04 -0000 1.178.2.48
@@ -33,7 +33,7 @@
use vars qw($VERSION @ISA @EXPORT);
# set the version for version checking
-$VERSION = do { my @v = '$Revision: 1.178.2.47 $' =~ /\d+/g;
shift(@v).".".join( "_", map { sprintf "%03d", $_ } @v ); };
+$VERSION = do { my @v = '$Revision: 1.178.2.48 $' =~ /\d+/g;
shift(@v).".".join( "_", map { sprintf "%03d", $_ } @v ); };
@ISA = qw( Exporter );
@@ -371,6 +371,12 @@
sub ModBiblio {
my ( $record, $biblionumber, $frameworkcode ) = @_;
+
+ if (C4::Context->preference("CataloguingLog")) {
+ my $newrecord = GetMarcBiblio($biblionumber);
+
&logaction(C4::Context->userenv->{'number'},"CATALOGUING","MODIFY",$biblionumber,$newrecord->as_formatted)
+ }
+
my $dbh = C4::Context->dbh;
$frameworkcode = "" unless $frameworkcode;
@@ -385,9 +391,6 @@
my $oldbiblionumber = _koha_modify_biblio( $dbh, $oldbiblio );
_koha_modify_biblioitem( $dbh, $oldbiblio );
-
&logaction(C4::Context->userenv->{'number'},"CATALOGUING","MODIFY",$biblionumber,"biblio")
- if C4::Context->preference("CataloguingLog");
-
return 1;
}
@@ -3669,8 +3672,11 @@
=cut
-# $Id: Biblio.pm,v 1.178.2.47 2007/01/10 16:46:27 toins Exp $
+# $Id: Biblio.pm,v 1.178.2.48 2007/01/11 16:33:04 toins Exp $
# $Log: Biblio.pm,v $
+# Revision 1.178.2.48 2007/01/11 16:33:04 toins
+# write $record->as_formatted into the log.
+#
# Revision 1.178.2.47 2007/01/10 16:46:27 toins
# Theses modules need to use C4::Log.
#
- [Koha-cvs] koha/C4 Biblio.pm [rel_3_0], paul poulain, 2007/01/04
- [Koha-cvs] koha/C4 Biblio.pm [rel_3_0], Antoine Farnault, 2007/01/09
- [Koha-cvs] koha/C4 Biblio.pm [rel_3_0],
Antoine Farnault <=
- [Koha-cvs] koha/C4 Biblio.pm [rel_3_0], Antoine Farnault, 2007/01/12
- [Koha-cvs] koha/C4 Biblio.pm [rel_3_0], Henri-Damien LAURENT, 2007/01/15
- [Koha-cvs] koha/C4 Biblio.pm [rel_3_0], Antoine Farnault, 2007/01/15
- [Koha-cvs] koha/C4 Biblio.pm [rel_3_0], paul poulain, 2007/01/16
- [Koha-cvs] koha/C4 Biblio.pm [rel_3_0], paul poulain, 2007/01/24
- [Koha-cvs] koha/C4 Biblio.pm [rel_3_0], paul poulain, 2007/01/25