my $author = $input->param('author');
my $isbn = $input->param('isbn');
my $issn = $input->param('issn');
+my $lccn = $input->param('lccn');
my $random = $input->param('random');
my $op = $input->param('op');
my $noconnection;
my $toggle;
my $record;
my $oldbiblio;
-my $dbh = C4::Context->dbh;
my $errmsg;
my @serverloop = ();
my @serverhost;
my @breeding_loop = ();
-my $DEBUG = 1; # if set to 1, many debug message are send on syslog.
+my $DEBUG = 0; # if set to 1, many debug message are send on syslog.
unless ($random)
{ # this var is not useful anymore just kept to keep rel2_2 compatibility
$template->param(
isbn => $isbn,
issn => $issn,
+ lccn => $lccn,
title => $title,
author => $author,
serverloop => $serverloop,
$term = $isbn if ($isbn);
$term = $issn if ($issn);
}
+ elsif ($lccn) {
+ $attr = '1=9';
+ $term = $lccn;
+ }
elsif ($title) {
$attr = '1=4 ';
utf8::decode($title);
$option1->option( 'preferredRecordSyntax', $server->{syntax} );
$oConnection[$s] = create ZOOM::Connection($option1)
|| $DEBUG
- && warn( "something went wrong: " . $oConnection[$s]->errmsg() );
+ && warn( "" . $oConnection[$s]->errmsg() );
warn( "server data", $server->{name}, $server->{port} ) if $DEBUG;
$oConnection[$s]->connect( $server->{host}, $server->{port} )
|| $DEBUG
- && warn( "something went wrong: " . $oConnection[$s]->errmsg() );
+ && warn( "" . $oConnection[$s]->errmsg() );
$serverhost[$s] = $server->{host};
$encoding[$s] = $server->{syntax};
$s++;
$notmarcrecord, $alreadyindb, $alreadyinfarm,
$imported, $breedingid
)
- = ImportBreeding( $marcdata, 1, $serverhost[$k],
- $encoding[$k], $random );
-
- $encoding[$k], $random ));
-
+ = ImportBreeding( $marcdata, 2, $serverhost[$k], $encoding[$k], $random, 'z3950' );
my %row_data;
if ( $i % 2 ) {
- $toggle = "#ffffcc";
+ $toggle = 1;
}
else {
- $toggle = "white";
+ $toggle = 0;
}
$row_data{toggle} = $toggle;
$row_data{server} = $serverhost[$k];
$row_data{isbn} = $oldbiblio->{isbn};
+ $row_data{lccn} = $oldbiblio->{lccn};
$row_data{title} = $oldbiblio->{title};
$row_data{author} = $oldbiblio->{author};
$row_data{breedingid} = $breedingid;