Bugzilla – Attachment 84699 Details for
Bug 21808
Field 711 is not handled correctly in showAuthor XSLT for relator term or code
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21808: Field 711 is not handled correctly in showAuthor XSLT for relator term or code
Bug-21808-Field-711-is-not-handled-correctly-in-sh.patch (text/plain), 2.64 KB, created by
Kyle M Hall (khall)
on 2019-02-04 12:44:38 UTC
(
hide
)
Description:
Bug 21808: Field 711 is not handled correctly in showAuthor XSLT for relator term or code
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2019-02-04 12:44:38 UTC
Size:
2.64 KB
patch
obsolete
>From 055dc04a1ad5b76ae7fec80e8b9307f51879c2a4 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 12 Nov 2018 11:48:23 +0100 >Subject: [PATCH] Bug 21808: Field 711 is not handled correctly in showAuthor > XSLT for relator term or code > >The test should check $4 or $e for fields ne 111,711. >And should check $4 or $j for 111,711. > >Test plan: >Edit a record, add a meeting in 711 without $4 but with $j. >Without this patch the term is not visible, with this patch it is. > >Signed-off-by: Pierre-Marc Thibault <pierre-marc.thibault@inLibro.com> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index f3d0fe7ffc..7cdd98f03d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -1437,7 +1437,7 @@ > > <!-- add relator code too between brackets--> > <!-- #13383 include relator code j for field 111 --> >- <xsl:if test="marc:subfield[@code='4' or @code='e'][not(parent::*[@tag=111])] or (self::*[@tag=111] and marc:subfield[@code='4' or @code='j'][. != ''])"> >+ <xsl:if test="(@tag!=111 and @tag!=711 and marc:subfield[@code='4' or @code='e']) or ((@tag=111 or @tag=711) and marc:subfield[@code='4' or @code='j'])"> > <span class="relatorcode"> > <xsl:text> [</xsl:text> > <xsl:choose> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index 8d2039e10b..d62a71472f 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -1535,7 +1535,7 @@ > </span></span></span> > > <!-- #13383 include relator code j for field 111 also include 711$e 'Subordinate unit' --> >- <xsl:if test="marc:subfield[@code='4' or @code='e'][not(parent::*[@tag=111])] or (self::*[@tag=111] and marc:subfield[@code='4' or @code='j'][. != ''])"> >+ <xsl:if test="(@tag!=111 and @tag!=711 and marc:subfield[@code='4' or @code='e']) or ((@tag=111 or @tag=711) and marc:subfield[@code='4' or @code='j'])"> > > <span class="relatorcode"> > <xsl:text> [</xsl:text> >-- >2.17.2 (Apple Git-113)
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 21808
:
82222
|
82418
| 84699