[Bug 21088] New: Load the correct biblio or item-level link from tracklinks.pl
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@myacpl.org Reporter: alexbuckley@catalyst.net.nz QA Contact: testopia@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.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21088 Alex Buckley <alexbuckley@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|master |17.05 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21088 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |katrin.fischer@bsz-bw.de Severity|enhancement |minor -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21088 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@bugs.koha-c | |ommunity.org See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=21018 --- Comment #1 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Is it a duplicate of bug 21018? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21088 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|NEW |RESOLVED --- Comment #2 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- *** This bug has been marked as a duplicate of bug 21018 *** -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org