Bugzilla – Attachment 111354 Details for
Bug 19616
Add MARC21 505$g - Formatted Contents Note / Miscellaneous information
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19616: (follow-up) Reindent XSLT code used for 505 display
Bug-19616-follow-up-Reindent-XSLT-code-used-for-50.patch (text/plain), 5.51 KB, created by
Tomás Cohen Arazi (tcohen)
on 2020-10-07 18:34:13 UTC
(
hide
)
Description:
Bug 19616: (follow-up) Reindent XSLT code used for 505 display
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2020-10-07 18:34:13 UTC
Size:
5.51 KB
patch
obsolete
>From b08636d52cae0acd78d9ff9a3c407c014b5f5734 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Sun, 13 Sep 2020 16:31:13 +0000 >Subject: [PATCH] Bug 19616: (follow-up) Reindent XSLT code used for 505 > display > >Also adds a note at the beginning of the code block. >This causes no functional change, just code clean-up. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > .../en/xslt/MARC21slim2intranetDetail.xsl | 19 +++--- > .../en/xslt/MARC21slim2OPACDetail.xsl | 64 +++++++++---------- > 2 files changed, 42 insertions(+), 41 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index 8bd38ad84c6..deecd43b238 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -1030,18 +1030,19 @@ > </span> > </xsl:if> > >+ <!-- 505 - Formatted contents note --> > <xsl:if test="marc:datafield[@tag=505]"> > <div class="results_summary contents"> > <xsl:choose> >- <xsl:when test="marc:datafield[@tag=505]/@ind1=0"> >- <span class="label">Contents:</span> >- </xsl:when> >- <xsl:when test="marc:datafield[@tag=505]/@ind1=1"> >- <span class="label">Incomplete contents:</span> >- </xsl:when> >- <xsl:when test="marc:datafield[@tag=505]/@ind1=2"> >- <span class="label">Partial contents:</span> >- </xsl:when> >+ <xsl:when test="marc:datafield[@tag=505]/@ind1=0"> >+ <span class="label">Contents:</span> >+ </xsl:when> >+ <xsl:when test="marc:datafield[@tag=505]/@ind1=1"> >+ <span class="label">Incomplete contents:</span> >+ </xsl:when> >+ <xsl:when test="marc:datafield[@tag=505]/@ind1=2"> >+ <span class="label">Partial contents:</span> >+ </xsl:when> > </xsl:choose> > <xsl:for-each select="marc:datafield[@tag=505]"> > <div class='contentblock'> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index f4369ebf2c0..3adcc641845 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -1111,39 +1111,39 @@ > </xsl:for-each> > </xsl:if> > >- <!-- 505 --> >+ <!-- 505 - Formatted contents note --> > <xsl:if test="marc:datafield[@tag=505]"> >- <div class="results_summary contents"> >- <xsl:for-each select="marc:datafield[@tag=505]"> >- <xsl:if test="position()=1"> >- <xsl:choose> >- <xsl:when test="@ind1=1"> >- <span class="label">Incomplete contents:</span> >- </xsl:when> >- <xsl:when test="@ind1=2"> >- <span class="label">Partial contents:</span> >- </xsl:when> >- <xsl:otherwise> >- <span class="label">Contents:</span> >- </xsl:otherwise> >- </xsl:choose> >- </xsl:if> >- <div class='contentblock' property='description'> >- <xsl:choose> >- <xsl:when test="@ind2=0"> >- <xsl:call-template name="subfieldSelectSpan"> >- <xsl:with-param name="codes">trug</xsl:with-param> >- </xsl:call-template> >- </xsl:when> >- <xsl:otherwise> >- <xsl:call-template name="subfieldSelectSpan"> >- <xsl:with-param name="codes">atrug</xsl:with-param> >- </xsl:call-template> >- </xsl:otherwise> >- </xsl:choose> >- </div> >- </xsl:for-each> >- </div> >+ <div class="results_summary contents"> >+ <xsl:for-each select="marc:datafield[@tag=505]"> >+ <xsl:if test="position()=1"> >+ <xsl:choose> >+ <xsl:when test="@ind1=1"> >+ <span class="label">Incomplete contents:</span> >+ </xsl:when> >+ <xsl:when test="@ind1=2"> >+ <span class="label">Partial contents:</span> >+ </xsl:when> >+ <xsl:otherwise> >+ <span class="label">Contents:</span> >+ </xsl:otherwise> >+ </xsl:choose> >+ </xsl:if> >+ <div class='contentblock' property='description'> >+ <xsl:choose> >+ <xsl:when test="@ind2=0"> >+ <xsl:call-template name="subfieldSelectSpan"> >+ <xsl:with-param name="codes">trug</xsl:with-param> >+ </xsl:call-template> >+ </xsl:when> >+ <xsl:otherwise> >+ <xsl:call-template name="subfieldSelectSpan"> >+ <xsl:with-param name="codes">atrug</xsl:with-param> >+ </xsl:call-template> >+ </xsl:otherwise> >+ </xsl:choose> >+ </div> >+ </xsl:for-each> >+ </div> > </xsl:if> > > <!-- 583 --> >-- >2.28.0
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 19616
:
82798
|
110027
|
110028
|
110029
|
110215
|
110216
|
110217
|
111353
| 111354 |
111355