From 1d888c8d0e9ee2eda9c793cf75fd73a7afeaef16 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 11 Jul 2018 11:29:15 -0300 Subject: [PATCH] Bug 21018: Allow uris defined in the item We need to search for uri defined for the itemnumber we passed in parameter. Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize Signed-off-by: Nick Clemens --- opac/tracklinks.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/tracklinks.pl b/opac/tracklinks.pl index bc1d54015c..7bdb93935c 100755 --- a/opac/tracklinks.pl +++ b/opac/tracklinks.pl @@ -59,7 +59,7 @@ if ($uri) { my $record = C4::Biblio::GetMarcBiblio({ biblionumber => $biblionumber }); my $marc_urls = C4::Biblio::GetMarcUrls($record, C4::Context->preference('marcflavour')); if ( ( grep { $_ eq $uri } map { $_->{MARCURL} } @$marc_urls ) - || Koha::Items->search( { uri => $uri } )->count ) + || Koha::Items->search( { itemnumber => $itemnumber, uri => $uri } )->count ) { $tracker->trackclick( { -- 2.39.5