[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/cataloguing additem.pl [rel_3_0]
From: |
paul poulain |
Subject: |
[Koha-cvs] koha/cataloguing additem.pl [rel_3_0] |
Date: |
Tue, 16 Jan 2007 10:25:02 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: rel_3_0
Changes by: paul poulain <tipaul> 07/01/16 10:25:01
Modified files:
cataloguing : additem.pl
Log message:
BUGFIXING :
when modifying or deleting an item, the biblio frameworkcode was
emptied.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/cataloguing/additem.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.7.2.12&r2=1.7.2.13
Patches:
Index: additem.pl
===================================================================
RCS file: /sources/koha/koha/cataloguing/additem.pl,v
retrieving revision 1.7.2.12
retrieving revision 1.7.2.13
diff -u -b -r1.7.2.12 -r1.7.2.13
--- additem.pl 12 Jan 2007 10:10:43 -0000 1.7.2.12
+++ additem.pl 16 Jan 2007 10:25:01 -0000 1.7.2.13
@@ -1,6 +1,6 @@
#!/usr/bin/perl
-# $Id: additem.pl,v 1.7.2.12 2007/01/12 10:10:43 toins Exp $
+# $Id: additem.pl,v 1.7.2.13 2007/01/16 10:25:01 tipaul Exp $
# Copyright 2000-2002 Katipo Communications
#
@@ -118,7 +118,6 @@
#-------------------------------------------------------------------------------
# retrieve item if exist => then, it's a modif
$itemrecord = MARCgetitem($biblionumber,$itemnumber);
- #warn "ITEM : ".$itemrecord->as_formatted;
$nextop="saveitem";
#-------------------------------------------------------------------------------
} elsif ($op eq "delitem") {
@@ -261,7 +260,7 @@
(C4::Context->userenv->{flags} != 1) && ($value) &&
($value ne C4::Context->userenv->{branch}) ;
# print $input->redirect(".pl?biblionumber=$biblionumber") if ($test);
# search for itemcallnumber if applicable
- if ($tagslib->{$tag}->{$subfield}->{kohafield} eq
'items.itemcallnumber' && C4::Context->preference('itemcallnumber')) {
+ if (!$value && $tagslib->{$tag}->{$subfield}->{kohafield} eq
'items.itemcallnumber' && C4::Context->preference('itemcallnumber')) {
my $CNtag = substr(C4::Context->preference('itemcallnumber'),0,3);
my $CNsubfield =
substr(C4::Context->preference('itemcallnumber'),3,1);
my $temp = $record->field($CNtag);