[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/acqui.simple additem.pl [rel_2_2]
From: |
Joshua Ferraro |
Subject: |
[Koha-cvs] koha/acqui.simple additem.pl [rel_2_2] |
Date: |
Sat, 14 Apr 2007 18:54:20 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: rel_2_2
Changes by: Joshua Ferraro <kados> 07/04/14 18:54:20
Modified files:
acqui.simple : additem.pl
Log message:
removing warns
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/acqui.simple/additem.pl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.27.2.24&r2=1.27.2.25
Patches:
Index: additem.pl
===================================================================
RCS file: /sources/koha/koha/acqui.simple/Attic/additem.pl,v
retrieving revision 1.27.2.24
retrieving revision 1.27.2.25
diff -u -b -r1.27.2.24 -r1.27.2.25
--- additem.pl 14 Apr 2007 15:40:12 -0000 1.27.2.24
+++ additem.pl 14 Apr 2007 18:54:20 -0000 1.27.2.25
@@ -1,6 +1,6 @@
#!/usr/bin/perl
-# $Id: additem.pl,v 1.27.2.24 2007/04/14 15:40:12 kados Exp $
+# $Id: additem.pl,v 1.27.2.25 2007/04/14 18:54:20 kados Exp $
# Copyright 2000-2002 Katipo Communications
#
@@ -54,7 +54,6 @@
my $op = $input->param('op');
my $itemnum = $input->param('itemnum');
-warn "ADDITEM: $op";
# find itemtype
my $itemtype = &MARCfind_frameworkcode($dbh,$bibid);
@@ -64,7 +63,6 @@
my $oldrecord = MARCmarc2koha($dbh,$record);
my $itemrecord;
my $nextop="additem";
-warn $nextop;
my @errors; # store errors found while checking data BEFORE saving item.
#------------------------------------------------------------------------------------------------------------------------------
if ($op eq "additem") {
@@ -81,12 +79,10 @@
#for (my $i=0;$i<=$#ind_tag;$i++) {
# $indicators{$ind_tag[$i]} = $indicator[$i];
#}
-warn join " / " , @tags;
if (C4::Context->preference('TemplateEncoding') eq "iso-8859-1") {
$record =
MARChtml2marc($dbh,address@hidden,address@hidden,address@hidden,address@hidden,address@hidden,address@hidden);
} else {
my $xml =
MARChtml2xml(address@hidden,address@hidden,address@hidden,address@hidden,address@hidden);
-warn $xml;
$record=MARC::Record->new_from_xml($xml,C4::Context->preference('TemplateEncoding'),C4::Context->preference('marcflavour'));
}
# my $xml =
MARChtml2xml(address@hidden,address@hidden,address@hidden,address@hidden,address@hidden);
@@ -156,12 +152,10 @@
#for (my $i=0;$i<=$#ind_tag;$i++) {
# $indicators{$ind_tag[$i]} = $indicator[$i];
#}
-warn join " / " , @tags;
if (C4::Context->preference('TemplateEncoding') eq "iso-8859-1") {
$record =
MARChtml2marc($dbh,address@hidden,address@hidden,address@hidden,address@hidden,address@hidden,address@hidden);
} else {
my $xml =
MARChtml2xml(address@hidden,address@hidden,address@hidden,address@hidden,address@hidden);
-warn $xml;
$record=MARC::Record->new_from_xml($xml,C4::Context->preference('TemplateEncoding'),C4::Context->preference('marcflavour'));
}
#my $record =
MARChtml2marc($dbh,address@hidden,address@hidden,address@hidden,%indicators);
@@ -170,7 +164,6 @@
my ($oldbiblionumber,$oldbibnum,$oldbibitemnum) =
NEWmoditem($dbh,$record,$bibid,$itemnum,0);
$itemnum="";
$nextop="additem";
-warn $nextop;
}
#