Bugzilla – Attachment 108101 Details for
Bug 20200
Show MARC 770 Supplement/Special Issue Entry on detail pages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20200: Show MARC 770 Supplement/Special Issue Entry on detail pages
Bug-20200-Show-MARC-770-SupplementSpecial-Issue-En.patch (text/plain), 8.28 KB, created by
Eugene Espinoza
on 2020-08-12 12:57:02 UTC
(
hide
)
Description:
Bug 20200: Show MARC 770 Supplement/Special Issue Entry on detail pages
Filename:
MIME Type:
Creator:
Eugene Espinoza
Created:
2020-08-12 12:57:02 UTC
Size:
8.28 KB
patch
obsolete
>From 2e40409af6746523599f75afaeebf134cc2653e7 Mon Sep 17 00:00:00 2001 >From: schnydszch <eugenegf@yahoo.com> >Date: Wed, 12 Aug 2020 11:27:59 +0000 >Subject: [PATCH] Bug 20200: Show MARC 770 Supplement/Special Issue Entry on > detail pages > >Currently 770 is not shown in Koha on the detail pages. We should add the display of this field. > >To test: >1) Edit your framework of choice, edit field 770's subfields iatdw's visibility. Make it visible in editor. >2) Edit a record using the framework just edited, add values into field 770 subfield iatdw. >3) Save the record. >4) View the record in OPAC. >5) The fields won't be visible in the OPAC. >6) Apply patch. >7) Refresh OPAC. >8) Fields are now visible in the OPAC. >--- > .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 55 +++++++++++++++++++++ > .../bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 56 ++++++++++++++++++++++ > 2 files changed, 111 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index 31c094de00..6260fe0c12 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -1133,6 +1133,61 @@ > </xsl:for-each> > </xsl:if> > >+ <!-- 770 Bug no. 20200: Show MARC 770 Supplement/Special Issue Entry on detail pages--> >+ <xsl:if test="marc:datafield[@tag=770]"> >+ <xsl:for-each select="marc:datafield[@tag=770]"> >+ <xsl:if test="@ind1 !=1"> >+ <span class="results_supplement"><span class="label"> >+ <xsl:choose> >+ <xsl:when test="@ind2=' '"> >+ Has supplement: >+ </xsl:when> >+ <xsl:when test="@ind2='8'"> >+ <xsl:if test="marc:subfield[@code='i']"> >+ <xsl:value-of select="marc:subfield[@code='i']"/> >+ </xsl:if> >+ </xsl:when> >+ </xsl:choose> >+ </span> >+ <xsl:variable name="f770"> >+ <xsl:call-template name="chopPunctuation"> >+ <xsl:with-param name="chopString"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">atdw</xsl:with-param> >+ </xsl:call-template> >+ </xsl:with-param> >+ </xsl:call-template> >+ </xsl:variable> >+ <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="translate($f770, '()', '')"/> >+ </a> >+ </xsl:when> >+ <xsl:when test="marc:subfield[@code='0']"> >+ <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/detail.pl?biblionumber=<xsl:value-of select="str:encode-uri(marc:subfield[@code='0'], true())"/></xsl:attribute> >+ <xsl:value-of select="$f770"/> >+ </a> >+ </xsl:when> >+ <xsl:otherwise> >+ <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate($f770, '()', ''), true())"/></xsl:attribute> >+ <xsl:value-of select="$f770"/> >+ </a> >+ </xsl:otherwise> >+ </xsl:choose> >+ <xsl:if test="marc:subfield[@code='g']"> >+ <xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/> >+ </xsl:if> >+ </span> >+ >+ <xsl:if test="marc:subfield[@code='n']"> >+ <span class="results_summary in_note"><xsl:value-of select="marc:subfield[@code='n']"/></span> >+ </xsl:if> >+ >+ </xsl:if> >+ </xsl:for-each> >+ </xsl:if> >+ > <xsl:if test="marc:datafield[@tag=502]"> > <span class="results_summary diss_note"> > <span class="label">Dissertation note: </span> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index 8286a94fc4..2eadc858b3 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -1217,6 +1217,62 @@ > </xsl:for-each> > </xsl:if> > >+ >+ <!-- 770 Bug no. 20200: Show MARC 770 Supplement/Special Issue Entry on detail pages--> >+ <xsl:if test="marc:datafield[@tag=770]"> >+ <xsl:for-each select="marc:datafield[@tag=770]"> >+ <xsl:if test="@ind1 !=1"> >+ <span class="results_supplement"><span class="label"> >+ <xsl:choose> >+ <xsl:when test="@ind2=' '"> >+ Has supplement: >+ </xsl:when> >+ <xsl:when test="@ind2='8'"> >+ <xsl:if test="marc:subfield[@code='i']"> >+ <xsl:value-of select="marc:subfield[@code='i']"/> >+ </xsl:if> >+ </xsl:when> >+ </xsl:choose> >+ </span> >+ <xsl:variable name="f770"> >+ <xsl:call-template name="chopPunctuation"> >+ <xsl:with-param name="chopString"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">atdw</xsl:with-param> >+ </xsl:call-template> >+ </xsl:with-param> >+ </xsl:call-template> >+ </xsl:variable> >+ <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="translate($f770, '()', '')"/> >+ </a> >+ </xsl:when> >+ <xsl:when test="marc:subfield[@code='0']"> >+ <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/detail.pl?biblionumber=<xsl:value-of select="str:encode-uri(marc:subfield[@code='0'], true())"/></xsl:attribute> >+ <xsl:value-of select="$f770"/> >+ </a> >+ </xsl:when> >+ <xsl:otherwise> >+ <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate($f770, '()', ''), true())"/></xsl:attribute> >+ <xsl:value-of select="$f770"/> >+ </a> >+ </xsl:otherwise> >+ </xsl:choose> >+ <xsl:if test="marc:subfield[@code='g']"> >+ <xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/> >+ </xsl:if> >+ </span> >+ >+ <xsl:if test="marc:subfield[@code='n']"> >+ <span class="results_summary in_note"><xsl:value-of select="marc:subfield[@code='n']"/></span> >+ </xsl:if> >+ >+ </xsl:if> >+ </xsl:for-each> >+ </xsl:if> >+ > <xsl:for-each select="marc:datafield[@tag=511]"> > <span class="results_summary perf_note"> > <span class="label"> >-- >2.11.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 20200
: 108101