[Koha-cvs] koha/acqui.simple additem.pl [rel_2_2]
Joshua Ferraro
jmf at liblime.com
Sat Apr 14 20:59:00 CEST 2007
CVSROOT: /sources/koha
Module name: koha
Branch: rel_2_2
Changes by: Joshua Ferraro <kados> 07/04/14 18:59:00
Modified files:
acqui.simple : additem.pl
Log message:
removing some comments
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.25&r2=1.27.2.26
Patches:
Index: additem.pl
===================================================================
RCS file: /sources/koha/koha/acqui.simple/Attic/additem.pl,v
retrieving revision 1.27.2.25
retrieving revision 1.27.2.26
diff -u -b -r1.27.2.25 -r1.27.2.26
--- additem.pl 14 Apr 2007 18:54:20 -0000 1.27.2.25
+++ additem.pl 14 Apr 2007 18:59:00 -0000 1.27.2.26
@@ -1,6 +1,6 @@
#!/usr/bin/perl
-# $Id: additem.pl,v 1.27.2.25 2007/04/14 18:54:20 kados Exp $
+# $Id: additem.pl,v 1.27.2.26 2007/04/14 18:59:00 kados Exp $
# Copyright 2000-2002 Katipo Communications
#
@@ -75,19 +75,13 @@
my @ind_tag = $input->param('ind_tag');
my @indicator = $input->param('indicator');
my @firstsubfields = $input->param('firstsubfields');
- #my %indicators;
- #for (my $i=0;$i<=$#ind_tag;$i++) {
- # $indicators{$ind_tag[$i]} = $indicator[$i];
- #}
if (C4::Context->preference('TemplateEncoding') eq "iso-8859-1") {
$record = MARChtml2marc($dbh,\@tags,\@subfields,\@values,\@firstsubfields,\@indicator,\@ind_tag);
} else {
my $xml = MARChtml2xml(\@tags,\@subfields,\@values,\@indicator,\@ind_tag);
$record=MARC::Record->new_from_xml($xml,C4::Context->preference('TemplateEncoding'),C4::Context->preference('marcflavour'));
}
-# my $xml = MARChtml2xml(\@tags,\@subfields,\@values,\@indicator,\@ind_tag);
-# my $record=MARC::Record::new_from_xml($xml, 'UTF-8');
- #my $record = MARChtml2marc($dbh,\@tags,\@subfields,\@values,%indicators);
+
# if autoBarcode is ON, calculate barcode...
if (C4::Context->preference('autoBarcode')) {
my ($tagfield,$tagsubfield) = &MARCfind_marc_from_kohafield($dbh,"items.barcode");
More information about the Koha-cvs
mailing list