misc subdir - Dates.pm integration and warnings fixes.
Signed-off-by: Chris Cormack <crc@liblime.com> Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
82b8c496fd
commit
28159f04de
6 changed files with 41 additions and 41 deletions
|
@ -1,6 +1,6 @@
|
|||
use strict;
|
||||
use C4::Context;
|
||||
use C4::Date;
|
||||
use C4::Dates;
|
||||
use Mail::Sendmail; # comment out if not doing e-mail notices
|
||||
use Getopt::Long;
|
||||
use C4::Circulation;
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
use strict;
|
||||
use C4::Context;
|
||||
use C4::Date;
|
||||
use C4::Dates;
|
||||
use Mail::Sendmail; # comment out if not doing e-mail notices
|
||||
use Getopt::Long;
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
use strict;
|
||||
use C4::Context;
|
||||
use C4::Date;
|
||||
use C4::Dates;
|
||||
use Mail::Sendmail; # comment out if not doing e-mail notices
|
||||
use Getopt::Long;
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ use C4::Search;
|
|||
use C4::Circulation;
|
||||
use C4::Circulation::Fines;
|
||||
use C4::Members;
|
||||
use C4::Date;
|
||||
use C4::Dates;
|
||||
use HTML::Template::Pro;
|
||||
use Mail::Sendmail;
|
||||
use Mail::RFC822::Address;
|
||||
|
|
|
@ -38,14 +38,12 @@ my $timeneeded;
|
|||
my $dbh = C4::Context->dbh;
|
||||
|
||||
my $sth2=$dbh->prepare("update biblioitems set marc=? where biblionumber=?");
|
||||
my $i=0;
|
||||
|
||||
my $batch = MARC::Batch->new( 'USMARC', $input_marc_file );
|
||||
$batch->warnings_off();
|
||||
$batch->strict_off();
|
||||
my $i=0;
|
||||
my ($tagfield,$biblionumtagsubfield) = &GetMarcFromKohaField("biblio.biblionumber","");
|
||||
|
||||
my $i=0;
|
||||
while ( my $record = $batch->next() ) {
|
||||
my $biblionumber=$record->field($tagfield)->subfield($biblionumtagsubfield);
|
||||
$i++;
|
||||
|
@ -57,6 +55,8 @@ $timeneeded = gettimeofday - $starttime ;
|
|||
print "$i records in $timeneeded s\n" ;
|
||||
|
||||
END;
|
||||
# IS THIS SUPPOSED TO BE __END__ ?? If not, then what is it? --JBA
|
||||
|
||||
sub search {
|
||||
my ($query)=@_;
|
||||
my $nquery="\ \@attr 1=1007 ".$query;
|
||||
|
|
|
@ -106,7 +106,7 @@ while (my ($bibid,$tag,$tag_indicator,$tagorder,$subfieldcode,$subfieldorder) =
|
|||
&MARCaddsubfield($bibid,$tag,$tag_indicator,$tagorder,$subfield->[0],$subfieldorder,$subfield->[1]);
|
||||
}
|
||||
&MARCaddsubfield($bibid,$tag,$tag_indicator,$tagorder,'9',$subfieldorder,$mergeto);
|
||||
my $biblio = GetMarcBiblio($bibid);
|
||||
$biblio = GetMarcBiblio($bibid);
|
||||
print "AFTER : ".$biblio->as_formatted."\n" if $verbose;
|
||||
$nbdone++;
|
||||
# &MARCdelsubfield($dbh,$bibid,$tag,$tagorder,$subfieldcode,$subfieldorder);
|
||||
|
|
Loading…
Reference in a new issue