Bugzilla – Attachment 32115 Details for
Bug 12901
BiblioDefaultView doesn't do anything with NORMARC or UNIMARC XSLT
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12901: (consistency followup) add buildBiblioDefaultViewURL to MARC21 XSLT
Bug-12901-consistency-followup-add-buildBiblioDefa.patch (text/plain), 3.82 KB, created by
Paul Poulain
on 2014-10-09 19:43:34 UTC
(
hide
)
Description:
Bug 12901: (consistency followup) add buildBiblioDefaultViewURL to MARC21 XSLT
Filename:
MIME Type:
Creator:
Paul Poulain
Created:
2014-10-09 19:43:34 UTC
Size:
3.82 KB
patch
obsolete
>From 4bfd3f3722cb71542b8b8c574bd2c848acce028c Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Mon, 15 Sep 2014 10:44:16 -0300 >Subject: [PATCH] Bug 12901: (consistency followup) add > buildBiblioDefaultViewURL to MARC21 XSLT > >Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> > >http://bugs.koha-community.org/show_bug.cgi?id=9828 >--- > .../bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 26 +++++++++------------- > .../bootstrap/en/xslt/MARC21slimUtils.xsl | 21 +++++++++++++++++ > 2 files changed, 31 insertions(+), 16 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >index f40e917..30221f9 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >@@ -403,22 +403,16 @@ > </xsl:call-template> > </xsl:if> > >- <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> >+ <a> >+ <xsl:attribute name="href"> >+ <xsl:call-template name="buildBiblioDefaultViewURL"> >+ <xsl:with-param name="BiblioDefaultView"> >+ <xsl:value-of select="$BiblioDefaultView"/> >+ </xsl:with-param> >+ </xsl:call-template> >+ <xsl:value-of select="$biblionumber"/> >+ </xsl:attribute> >+ <xsl:attribute name="class">title</xsl:attribute> > > <xsl:if test="marc:datafield[@tag=245]"> > <xsl:for-each select="marc:datafield[@tag=245]"> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl >index 9599566..25bdaa4 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl >@@ -72,6 +72,27 @@ > </xsl:if> > </xsl:template> > >+ <xsl:template name="buildBiblioDefaultViewURL"> >+ <xsl:param name="BiblioDefaultView"/> >+ <xsl:choose> >+ <xsl:when test="$BiblioDefaultView='normal'"> >+ <xsl:text>/cgi-bin/koha/catalogue/detail.pl?biblionumber=</xsl:text> >+ </xsl:when> >+ <xsl:when test="$BiblioDefaultView='isbd'"> >+ <xsl:text>/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=</xsl:text> >+ </xsl:when> >+ <xsl:when test="$BiblioDefaultView='labeled_marc'"> >+ <xsl:text>/cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=</xsl:text> >+ </xsl:when> >+ <xsl:when test="$BiblioDefaultView='marc'"> >+ <xsl:text>/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=</xsl:text> >+ </xsl:when> >+ <xsl:otherwise> >+ <xsl:text>/cgi-bin/koha/catalogue/detail.pl?biblionumber=</xsl:text> >+ </xsl:otherwise> >+ </xsl:choose> >+ </xsl:template> >+ > <xsl:template name="chopPunctuation"> > <xsl:param name="chopString"/> > <xsl:variable name="length" select="string-length($chopString)"/> >-- >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 12901
:
31610
|
31611
|
32114
|
32115
|
32869
|
32879
|
32880
|
32881