[Koha-bugs] [Bug 18599] New: "Record URL" link href is broken for multiple 856$u links in MARC record
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri May 12 23:46:30 CEST 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18599
Bug ID: 18599
Summary: "Record URL" link href is broken for multiple 856$u
links in MARC record
Change sponsored?: ---
Product: Koha
Version: 16.11
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Course reserves
Assignee: koha-bugs at lists.koha-community.org
Reporter: ephetteplace at cca.edu
QA Contact: testopia at bugs.koha-community.org
If you place a course reserve on a bib where the MARC record contains multiple
856 $u URLs, the resulting "Record URL" link in the Link column on both the
staff and public catalogs (i.e.
/cgi-bin/koha/course_reserves/course-details.pl?course_id=XXX and
/cgi-bin/koha/opac-course-details.pl?course_id=XXX) is broken. It looks as if
the URL is constructed by concatenating both 856 URLs and separating them with
a vertical bar character surrounded by spaces, " | ".
Testing Plan:
- create a bib record with at least two MARC 856 fields with valid URLs in
their $u subfields
- add an item to the bib record
- enable course reserves (UseCourseReserves)
- create a course
- add an item from the aforementioned record on course reserve
- visit its course details page
- note that the "Record URL" link in the Link column is broken
I'm not sure if the problem lies within Course Reserves itself; I investigated
briefly and I see "cr.item.url" is the field utilized by the template. I don't
need a "url" field in course_reserves or related database tables, I'm guessing
it's a field on the connected item record.
I'm seeing this on 16.11 but I haven't tested master.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list