Bugzilla – Attachment 30889 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]
[PASSED QA] Bug 10571 - IntranetBiblioDefaultView doesn't do anything with MARC21 XSLT
PASSED-QA-Bug-10571---IntranetBiblioDefaultView-do.patch (text/plain), 3.63 KB, created by
Katrin Fischer
on 2014-08-17 08:58:17 UTC
(
hide
)
Description:
[PASSED QA] Bug 10571 - IntranetBiblioDefaultView doesn't do anything with MARC21 XSLT
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2014-08-17 08:58:17 UTC
Size:
3.63 KB
patch
obsolete
>From 1afa2e7bdf0f3afe3cdbb64e8e7b30ccd2002aa1 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 14 Jul 2014 13:07:42 -0400 >Subject: [PATCH] [PASSED QA] Bug 10571 - IntranetBiblioDefaultView doesn't do > anything with MARC21 XSLT > >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. > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Work as described, no koha-qa errors. > >Only for MARC21 :( > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >Works as described, no problems found. >--- > .../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.9.1
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