|
Lines 37-43
$uri =~ s/^\s+|\s+$//g if $uri; # trim
Link Here
|
| 37 |
|
37 |
|
| 38 |
my $tracking_method = C4::Context->preference('TrackClicks'); |
38 |
my $tracking_method = C4::Context->preference('TrackClicks'); |
| 39 |
unless ($tracking_method) { |
39 |
unless ($tracking_method) { |
| 40 |
output_error( $cgi, '404' ); |
40 |
output_error( $cgi, '404', { interface => 'opac' } ); |
| 41 |
exit; |
41 |
exit; |
| 42 |
} |
42 |
} |
| 43 |
my $tracker = Koha::Linktracker->new( { trackingmethod => $tracking_method } ); |
43 |
my $tracker = Koha::Linktracker->new( { trackingmethod => $tracking_method } ); |
|
Lines 85-89
if ( $uri && ( $biblionumber || $itemnumber ) ) {
Link Here
|
| 85 |
} |
85 |
} |
| 86 |
} |
86 |
} |
| 87 |
|
87 |
|
| 88 |
output_error( $cgi, '404' ); |
88 |
output_error( $cgi, '404', { interface => 'opac' } ); |
| 89 |
exit; |
89 |
exit; |
| 90 |
- |
|
|