projects
/
koha-ffzg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cf339a
)
check-url-quick support redirect, skip invalid biblios
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 16 Apr 2020 08:06:34 +0000
(10:06 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 16 Apr 2020 08:06:34 +0000
(10:06 +0200)
misc/cronjobs/check-url-quick.pl
patch
|
blob
|
history
diff --git
a/misc/cronjobs/check-url-quick.pl
b/misc/cronjobs/check-url-quick.pl
index
22d2dfe
..
0f77aaa
100755
(executable)
--- a/
misc/cronjobs/check-url-quick.pl
+++ b/
misc/cronjobs/check-url-quick.pl
@@
-92,6
+92,7
@@
sub check_all_url {
return if $count > $maxconn;
while ( my ($biblionumber) = $sth->fetchrow ) {
my $record = GetMarcBiblio({ biblionumber => $biblionumber });
+ next unless $record;
for my $tag (@tags) {
foreach my $field ( $record->field($tag) ) {
my $url = $field->subfield('u');
@@
-107,7
+108,7
@@
sub check_all_url {
my ( undef, $hdr ) = @_;
$count--;
report( $hdr, $biblionumber, $url )
- if $hdr->{Status} !~ /^
2
/ || $verbose;
+ if $hdr->{Status} !~ /^
[23]
/ || $verbose;
},
);
}