[Koha-cvs] koha/C4 Biblio.pm [rel_3_0]

Antoine Farnault antoine at koha-fr.org
Fri Jan 12 11:12:30 CET 2007


CVSROOT:	/sources/koha
Module name:	koha
Branch:		rel_3_0
Changes by:	Antoine Farnault <toins>	07/01/12 10:12:30

Modified files:
	C4             : Biblio.pm 

Log message:
	writing $record->as_formatted in the log when Modifying an item.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Biblio.pm?cvsroot=koha&only_with_tag=rel_3_0&r1=1.178.2.48&r2=1.178.2.49

Patches:
Index: Biblio.pm
===================================================================
RCS file: /sources/koha/koha/C4/Biblio.pm,v
retrieving revision 1.178.2.48
retrieving revision 1.178.2.49
diff -u -b -r1.178.2.48 -r1.178.2.49
--- Biblio.pm	11 Jan 2007 16:33:04 -0000	1.178.2.48
+++ Biblio.pm	12 Jan 2007 10:12:30 -0000	1.178.2.49
@@ -33,7 +33,7 @@
 use vars qw($VERSION @ISA @EXPORT);
 
 # set the version for version checking
-$VERSION = do { my @v = '$Revision: 1.178.2.48 $' =~ /\d+/g; shift(@v).".".join( "_", map { sprintf "%03d", $_ } @v ); };
+$VERSION = do { my @v = '$Revision: 1.178.2.49 $' =~ /\d+/g; shift(@v).".".join( "_", map { sprintf "%03d", $_ } @v ); };
 
 @ISA = qw( Exporter );
 
@@ -403,6 +403,11 @@
 sub ModItem {
     my ( $record, $biblionumber, $itemnumber, $delete, $new_item_hashref )
       = @_;
+      
+    #logging
+    &logaction(C4::Context->userenv->{'number'},"CATALOGUING","MODIFY",$itemnumber,$record->as_formatted) 
+        if C4::Context->preference("CataloguingLog");
+      
     my $dbh = C4::Context->dbh;
     
     # if we have a MARC record, we're coming from cataloging and so
@@ -422,10 +427,6 @@
     elsif ($new_item_hashref) {
         _koha_modify_item( $dbh, $new_item_hashref );
     }
-    
-    &logaction(C4::Context->userenv->{'number'},"CATALOGUING","MODIFY",$itemnumber,"item") 
-        if C4::Context->preference("CataloguingLog");
-    
 }
 
 =head2 ModBiblioframework
@@ -3672,8 +3673,11 @@
 
 =cut
 
-# $Id: Biblio.pm,v 1.178.2.48 2007/01/11 16:33:04 toins Exp $
+# $Id: Biblio.pm,v 1.178.2.49 2007/01/12 10:12:30 toins Exp $
 # $Log: Biblio.pm,v $
+# Revision 1.178.2.49  2007/01/12 10:12:30  toins
+# writing $record->as_formatted in the log when Modifying an item.
+#
 # Revision 1.178.2.48  2007/01/11 16:33:04  toins
 # write $record->as_formatted into the log.
 #





More information about the Koha-cvs mailing list