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.
Is it a duplicate of bug 21018?
*** This bug has been marked as a duplicate of bug 21018 ***