next if there is an error getting the biblio.
This commit is contained in:
parent
7fc3f2394b
commit
6dfb0dca36
1 changed files with 8 additions and 2 deletions
|
@ -80,8 +80,14 @@ my %result;
|
|||
while (my ($biblionumber) = $sth->fetchrow) {
|
||||
$i++;
|
||||
print "\r$i";
|
||||
my $record = GetMarcBiblio($biblionumber);
|
||||
|
||||
my $record;
|
||||
eval{
|
||||
$record = GetMarcBiblio($biblionumber);
|
||||
};
|
||||
if($@){
|
||||
print " There was some pb getting biblionumber : ".$biblionumber."\n";
|
||||
next;
|
||||
}
|
||||
# get title of the record (to store the 10 first letters with the index)
|
||||
my ($titletag,$titlesubfield) = GetMarcFromKohaField('biblio.title');
|
||||
my $title = lc($record->subfield($titletag,$titlesubfield));
|
||||
|
|
Loading…
Reference in a new issue