From 54d218d709d7309803caa371f697af434e8650ed 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 (cherry picked from commit 1d888c8d0e9ee2eda9c793cf75fd73a7afeaef16) Signed-off-by: Martin Renvoize (cherry picked from commit 0971fed0b85834f20bc2450c7e68e1d252363b56) Signed-off-by: Fridolin Somers (cherry picked from commit 99b6a69aef18a58d91129cb5b5a299f4ee0257f8) Signed-off-by: Fridolin Somers --- opac/tracklinks.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/tracklinks.pl b/opac/tracklinks.pl index 74fddb38b4..a76ad852e5 100755 --- a/opac/tracklinks.pl +++ b/opac/tracklinks.pl @@ -59,7 +59,7 @@ if ($uri) { my $record = C4::Biblio::GetMarcBiblio($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