Bugzilla – Attachment 31613 Details for
Bug 12900
IntranetBiblioDefaultView 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 12900: (consistency followup) add buildBiblioDefaultViewURL to MARC21 XSLT
Bug-12900-consistency-followup-add-buildBiblioDefa.patch (text/plain), 4.07 KB, created by
Tomás Cohen Arazi (tcohen)
on 2014-09-15 13:48:54 UTC
(
hide
)
Description:
Bug 12900: (consistency followup) add buildBiblioDefaultViewURL to MARC21 XSLT
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2014-09-15 13:48:54 UTC
Size:
4.07 KB
patch
obsolete
>From 176183537f6c3b66e6033479227da3dfcaee193d Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Mon, 15 Sep 2014 10:02:10 -0300 >Subject: [PATCH] Bug 12900: (consistency followup) add > buildBiblioDefaultViewURL to MARC21 XSLT > >--- > .../prog/en/xslt/MARC21slim2intranetResults.xsl | 29 ++++++++-------------- > .../intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl | 21 ++++++++++++++++ > 2 files changed, 31 insertions(+), 19 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >index e27419d..7ffde6a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >@@ -290,25 +290,16 @@ > </xsl:call-template> > </xsl:if> > >- <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> >+ <a> >+ <xsl:attribute name="href"> >+ <xsl:call-template name="buildBiblioDefaultViewURL"> >+ <xsl:with-param name="IntranetBiblioDefaultView"> >+ <xsl:value-of select="$IntranetBiblioDefaultView"/> >+ </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/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl >index 7334d03..e2ae2cc 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl >@@ -72,6 +72,27 @@ > </xsl:if> > </xsl:template> > >+ <xsl:template name="buildBiblioDefaultViewURL"> >+ <xsl:param name="IntranetBiblioDefaultView"/> >+ <xsl:choose> >+ <xsl:when test="$IntranetBiblioDefaultView='normal'"> >+ <xsl:text>/cgi-bin/koha/catalogue/detail.pl?biblionumber=</xsl:text> >+ </xsl:when> >+ <xsl:when test="$IntranetBiblioDefaultView='isbd'"> >+ <xsl:text>/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=</xsl:text> >+ </xsl:when> >+ <xsl:when test="$IntranetBiblioDefaultView='labeled_marc'"> >+ <xsl:text>/cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=</xsl:text> >+ </xsl:when> >+ <xsl:when test="$IntranetBiblioDefaultView='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 12900
:
31612
|
31613
|
32116
|
32117
|
32775
|
32776