Bugzilla – Attachment 29684 Details for
Bug 12574
BiblioDefaultView doesn't affect XSLT results view
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12574 - BiblioDefaultView doesn't affect XSLT results view
Bug-12574---BiblioDefaultView-doesnt-affect-XSLT-r.patch (text/plain), 3.04 KB, created by
Owen Leonard
on 2014-07-14 16:59:15 UTC
(
hide
)
Description:
Bug 12574 - BiblioDefaultView doesn't affect XSLT results view
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2014-07-14 16:59:15 UTC
Size:
3.04 KB
patch
obsolete
>From fb55379e080949ba463bfdd1f6bd36ddeff4519f Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 14 Jul 2014 12:49:27 -0400 >Subject: [PATCH] Bug 12574 - BiblioDefaultView doesn't affect XSLT results > view >Content-Type: text/plain; charset="utf-8" > >The OPAC's XSLT results view does not respect the choice set in the >BiblioDefaultView system preference. This patch adds a check of the >preference to the OPAC's results view for MARC21. > >To test you must have the OPAC configured to use the XSLT view for >search results. Perform any search and test the link to a title's detail >page. Switching the values of the BiblioDefaultView should be correctly >reflected in the search results links. >--- > .../bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 18 +++++++++++++++++- > 1 file changed, 17 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >index ea6af38..9d64c6a 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >@@ -30,6 +30,7 @@ > <xsl:variable name="OPACItemLocation" select="marc:sysprefs/marc:syspref[@name='OPACItemLocation']"/> > <xsl:variable name="singleBranchMode" select="marc:sysprefs/marc:syspref[@name='singleBranchMode']"/> > <xsl:variable name="OPACTrackClicks" select="marc:sysprefs/marc:syspref[@name='TrackClicks']"/> >+ <xsl:variable name="BiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='BiblioDefaultView']"/> > <xsl:variable name="leader" select="marc:leader"/> > <xsl:variable name="leader6" select="substring($leader,7,1)"/> > <xsl:variable name="leader7" select="substring($leader,8,1)"/> >@@ -402,7 +403,22 @@ > </xsl:call-template> > </xsl:if> > >- <a><xsl:attribute name="href">/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute><xsl:attribute name="class">title</xsl:attribute> >+ <a><xsl:attribute name="href"> >+ <xsl:choose> >+ <xsl:when test="$BiblioDefaultView='normal'"> >+ /cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="$biblionumber"/> >+ </xsl:when> >+ <xsl:when test="$BiblioDefaultView='isbd'"> >+ /cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=<xsl:value-of select="$biblionumber"/> >+ </xsl:when> >+ <xsl:when test="$BiblioDefaultView='marc'"> >+ /cgi-bin/koha/opac-MARCdetail.pl?biblionumber=<xsl:value-of select="$biblionumber"/> >+ </xsl:when> >+ <xsl:otherwise> >+ /cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="$biblionumber"/> >+ </xsl:otherwise> >+ </xsl:choose> >+ </xsl:attribute><xsl:attribute name="class">title</xsl:attribute> > > <xsl:if test="marc:datafield[@tag=245]"> > <xsl:for-each select="marc:datafield[@tag=245]"> >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 12574
:
29684
|
31330
|
31448