Bugzilla – Attachment 77414 Details for
Bug 21018
OPAC Resource URL Broken if Tracklinks is enabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21018: Allow uris defined in the item
Bug-21018-Allow-uris-defined-in-the-item.patch (text/plain), 1.07 KB, created by
Katrin Fischer
on 2018-08-01 22:13:28 UTC
(
hide
)
Description:
Bug 21018: Allow uris defined in the item
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2018-08-01 22:13:28 UTC
Size:
1.07 KB
patch
obsolete
>From ff01ef883a0eddd422c3a5ff801d3552ce0f66d1 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 <katrin.fischer.83@web.de> >--- > opac/tracklinks.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/opac/tracklinks.pl b/opac/tracklinks.pl >index bc1d540..7bdb939 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.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21018
:
76569
|
76601
|
76863
|
77413
|
77414
|
77519
|
77520