Bugzilla – Attachment 143142 Details for
Bug 8948
MARC21 field 787 doesn't display
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8948: Changes for OPAC
Bug-8948-Changes-for-OPAC.patch (text/plain), 4.38 KB, created by
Andrew Fuerste-Henry
on 2022-11-03 17:13:45 UTC
(
hide
)
Description:
Bug 8948: Changes for OPAC
Filename:
MIME Type:
Creator:
Andrew Fuerste-Henry
Created:
2022-11-03 17:13:45 UTC
Size:
4.38 KB
patch
obsolete
>From 0375ecf9510e9091a7c8fba30193bdd2b24c3bda Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 3 Nov 2022 12:05:59 +0000 >Subject: [PATCH] Bug 8948: Changes for OPAC > >Test with same record, confirm OPAC view is as expected > >Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org> >--- > .../en/xslt/MARC21slim2OPACDetail.xsl | 63 +++++++++++++++++++ > 1 file changed, 63 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index 31781fd07b..073d329e67 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -1089,6 +1089,69 @@ > </span> > </xsl:if> > >+ <!-- 787 Other Relationship Entry --> >+ <xsl:if test="marc:datafield[@tag=787]"> >+ <span class="results_summary other_relationship_entry"><span class="label">Other related works: </span> >+ <xsl:for-each select="marc:datafield[@tag=580]"> >+ <span class="linking_complexity_note"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">a</xsl:with-param> >+ </xsl:call-template> >+ <xsl:text> </xsl:text> >+ </span> >+ </xsl:for-each> >+ <xsl:for-each select="marc:datafield[@tag=787]"> >+ <span class="other_relationship_entry"> >+ <xsl:variable name="f787"> >+ <xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">a_t</xsl:with-param> >+ </xsl:call-template></xsl:with-param></xsl:call-template> >+ </xsl:variable> >+ <xsl:if test="marc:subfield[@code='i']"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">i</xsl:with-param> >+ </xsl:call-template> >+ <xsl:text>: </xsl:text> >+ </xsl:if> >+ <xsl:choose> >+ <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> >+ <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute> >+ <xsl:value-of select="$f787"/> >+ </a> >+ </xsl:when> >+ <xsl:otherwise> >+ <xsl:variable name="relation_query"> >+ <xsl:text>ti,phr:(</xsl:text> >+ <xsl:call-template name="quote_search_term"> >+ <xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param> >+ </xsl:call-template> >+ <xsl:text>)</xsl:text> >+ <xsl:if test="marc:subfield[@code='a']"> >+ <xsl:text> AND au:(</xsl:text> >+ <xsl:call-template name="quote_search_term"> >+ <xsl:with-param name="term"> >+ <xsl:value-of select="marc:subfield[@code='a']"/> >+ </xsl:with-param> >+ </xsl:call-template> >+ <xsl:text>)</xsl:text> >+ </xsl:if> >+ </xsl:variable> >+ <a> >+ <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /> >+ </xsl:attribute> >+ <xsl:value-of select="$f787"/> >+ </a> >+ </xsl:otherwise> >+ </xsl:choose> >+ <xsl:choose> >+ <xsl:when test="position()=last()"></xsl:when> >+ <xsl:otherwise><span class="separator"><xsl:text>; </xsl:text></span></xsl:otherwise> >+ </xsl:choose> >+ </span> >+ </xsl:for-each> >+ </span> >+ </xsl:if> >+ > <!-- 530 --> > <xsl:if test="marc:datafield[@tag=530]"> > <xsl:for-each select="marc:datafield[@tag=530]"> >-- >2.30.2
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 8948
:
20653
|
26946
|
142781
|
142782
|
142791
|
143083
|
143084
|
143111
|
143141
|
143142
|
143143
|
143562
|
143563
|
143564
|
143642
|
143684
|
143685
|
143686
|
143687