[Koha-bugs] [Bug 21088] New: Load the correct biblio or item-level link from tracklinks.pl
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jul 19 06:26:33 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21088
Bug ID: 21088
Summary: Load the correct biblio or item-level link from
tracklinks.pl
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: OPAC
Assignee: oleonard at myacpl.org
Reporter: alexbuckley at catalyst.net.nz
QA Contact: testopia at bugs.koha-community.org
When the TrackLastPatronActivity and TrackClicks sysprefs are enabled all
biblio and item level links (these are links stored in the 856u or 952u MARC
subfields) on the OPAC are displayed on the template in the format:
/cgi-bin/koha/tracklinks.pl?uri=<uri>&biblionumber=<biblionumber>
i.e. all biblio and item level holds do not link directly to an external site,
but redirect to tracklinks.pl
In tracklinks.pl the links associated with the biblionumber are retrieved by
the call to C4::Biblio->GetMARCUrls.
However only the first url returned in the array form this function is assigned
as the url to load and so if there are multiple links in the 856u or 952u
fields then only the first link is ever loaded.
As we are handing the url as a cgi parameter to the tracklinks.pl we should
compare each url in the returned url array if it is equal to the url cgi
parameter and choose which url to refirect to accordingly.
This would mean biblios with multiple online resources would load the correct
external link depending which link was selected.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list