Bugzilla – Attachment 29685 Details for
Bug 10571
IntranetBiblioDefaultView doesn't do anything with MARC21 XSLT
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10571 - IntranetBiblioDefaultView doesn't do anything with MARC21 XSLT
Bug-10571---IntranetBiblioDefaultView-doesnt-do-an.patch (text/plain), 3.45 KB, created by
Owen Leonard
on 2014-07-14 17:13:31 UTC
(
hide
)
Description:
Bug 10571 - IntranetBiblioDefaultView doesn't do anything with MARC21 XSLT
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2014-07-14 17:13:31 UTC
Size:
3.45 KB
patch
obsolete
>From 07560a8f7bb1fba9def263287d6586caea041f06 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 14 Jul 2014 13:07:42 -0400 >Subject: [PATCH] Bug 10571 - IntranetBiblioDefaultView doesn't do anything > with MARC21 XSLT >Content-Type: text/plain; charset="utf-8" > >The staff client's XSLT results view does not respect the choice set in >the IntranetBiblioDefaultView system preference. This patch adds a check >of the preference to the staff client's results view for MARC21. > >To test you must have the staff client configured to use the XSLT view >for search results. Perform any search and test the link to a title's >detail page. Switching the value of the IntranetBiblioDefaultView >preference should be correctly reflected in the search results links. >--- > .../prog/en/xslt/MARC21slim2intranetResults.xsl | 21 +++++++++++++++++++- > 1 file changed, 20 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >index f3a1761..756d01d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >@@ -27,6 +27,7 @@ > <xsl:variable name="AlternateHoldingsSeparator" select="marc:sysprefs/marc:syspref[@name='AlternateHoldingsSeparator']"/> > <xsl:variable name="UseAuthoritiesForTracings" select="marc:sysprefs/marc:syspref[@name='UseAuthoritiesForTracings']"/> > <xsl:variable name="DisplayIconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayIconsXSLT']"/> >+ <xsl:variable name="IntranetBiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='IntranetBiblioDefaultView']"/> > <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)"/> >@@ -289,7 +290,25 @@ > </xsl:call-template> > </xsl:if> > >- <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/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="$IntranetBiblioDefaultView='normal'"> >+ /cgi-bin/koha/catalogue/detail.pl?biblionumber=<xsl:value-of select="$biblionumber"/> >+ </xsl:when> >+ <xsl:when test="$IntranetBiblioDefaultView='isbd'"> >+ /cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<xsl:value-of select="$biblionumber"/> >+ </xsl:when> >+ <xsl:when test="$IntranetBiblioDefaultView='labeled_marc'"> >+ /cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=<xsl:value-of select="$biblionumber"/> >+ </xsl:when> >+ <xsl:when test="$IntranetBiblioDefaultView='marc'"> >+ /cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<xsl:value-of select="$biblionumber"/> >+ </xsl:when> >+ <xsl:otherwise> >+ /cgi-bin/koha/catalogue/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 10571
:
29685
|
30652
|
30889