Bugzilla – Attachment 59189 Details for
Bug 17867
Improve display of source (MARC21 773) in result list
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17867 Improve display of MARC21 773 in result list
Bug-17867-Improve-display-of-MARC21-773-in-result-.patch (text/plain), 2.64 KB, created by
Karen
on 2017-01-18 22:57:48 UTC
(
hide
)
Description:
Bug 17867 Improve display of MARC21 773 in result list
Filename:
MIME Type:
Creator:
Karen
Created:
2017-01-18 22:57:48 UTC
Size:
2.64 KB
patch
obsolete
>From fd14b3a2d18588103cafc15c2305d40876caadde Mon Sep 17 00:00:00 2001 >From: Karen Jen <karenliang.student@wegc.school.nz> >Date: Wed, 18 Jan 2017 22:44:41 +0000 >Subject: [PATCH] Bug 17867 Improve display of MARC21 773 in result list > >Test Plan: > >1) Add a record with 773$a (no $t!) and another record with 773$a and $t >2) View it on the detail pages and result lists in staff and OPAC >3) Confirm that 773$a and $t show on the detail page >4) Confirm that 773$a doesn't show on the results list but $t does. >5) Apply patch and refresh the result list page >6) 733$a and $t should now both show on the result list page >--- > .../prog/en/xslt/MARC21slim2intranetResults.xsl | 7 +++++++ > .../opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 12 +++++++++++- > 2 files changed, 18 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >index 23af29c..3b37acb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >@@ -933,6 +933,13 @@ > <xsl:value-of select="marc:subfield[@code='t']"/> > </span> > </xsl:if> >+ <xsl:if test="marc:subfield[@code='a']"> >+ <span class="results_summary source"> >+ <span class="label">In: </span> >+ <xsl:value-of select="marc:subfield[@code='a']"/> >+ </span> >+ </xsl:if> >+ > </xsl:for-each> > </xsl:if> > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >index 353b08e..3566ab3 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >@@ -595,16 +595,26 @@ > </span> > </xsl:if> > >+<!-- This is the beginning of field 773 --> > <xsl:if test="marc:datafield[@tag=773]"> > <xsl:for-each select="marc:datafield[@tag=773]"> > <xsl:if test="marc:subfield[@code='t']"> > <span class="results_summary source"> > <span class="label">Source: </span> > <xsl:value-of select="marc:subfield[@code='t']"/> >- </span> >+ </span> >+ </xsl:if> >+ <xsl:if test="marc:subfield[@code='a']"> >+ <span class="results_summary source"> >+ <span class="label">In: </span> >+ <xsl:value-of select="marc:subfield[@code='a']"/> >+ </span> > </xsl:if> >+ > </xsl:for-each> > </xsl:if> >+<!-- End --> >+ > > <xsl:if test="$DisplayOPACiconsXSLT!='0'"> > <span class="results_summary type"> >-- >2.1.4
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 17867
: 59189 |
59193