Bug 3108 - XSLT stylesheet does not obey URLLinkText syspref
Summary: XSLT stylesheet does not obey URLLinkText syspref
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: rel_3_0
Hardware: PC All
: PATCH-Sent (DO NOT USE) enhancement (vote)
Assignee: Chris Cormack
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-10 12:21 UTC by Jane Wagner
Modified: 2012-10-25 22:37 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Cormack 2010-05-21 01:06:29 UTC


---- Reported by jwagner@ptfs.com 2009-04-10 12:21:32 ----

The URLLinkText syspref allows sites to enter text to display instead of URLs for 856s in the OPAC, such as "click to connect".  However, the XSLT stylesheet does not check or obey this setting.  If XSLTDetailsDisplay is turned on, the OPAC displays the subfield z rather than the URLLinkText entry.  The XSLT stylesheet should obey the system preference.



---- Additional Comments From jwagner@ptfs.com 2009-08-23 20:05:43 ----

Sent patch combined with http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3098, http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3545.  Modified C4/XSLT.pm based on code written by Frédéric Demians (thanks!) to pass the values of the sysprefs to the .xsl files.  Modified the .xsl files to implement them.  Now, if there is a value in the syspref URLLinkText, the OPAC will display that text as generic link text when there is no value in the 856 subfield y, 3, or z.  (Note that if subfields y, 3, or z do contain text, the first match is what will be displayed.)



---- Additional Comments From gmcharlt@gmail.com 2009-09-16 01:42:26 ----

Patch pushed.  Please test and close.



--- Bug imported by chris@bigballofwax.co.nz 2010-05-21 01:06 UTC  ---

This bug was previously known as _bug_ 3108 at http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3108

Unknown operating system Windows 2000. Setting to default OS "All".
Actual time not defined. Setting to 0.0
The original reporter of this bug does not have
   an account here. Reassigning to the person who moved
   it here: chris@bigballofwax.co.nz.
   Previous reporter was jwagner@ptfs.com.
The original assignee of this bug does not have
   an account here. Reassigning to the default assignee
   for the component, chris@bigballofwax.co.nz.
   Previous assignee was jwagner@ptfs.com.
CC member irma@calyx.net.au does not have an account here