Bugzilla – Attachment 30688 Details for
Bug 12501
Show Dissertation note (MARC21 502) in XSLT results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 12501: Show dissertation note (MARC21 502) in XSLT results
SIGNED-OFF-Bug-12501-Show-dissertation-note-MARC21.patch (text/plain), 3.52 KB, created by
Bernardo Gonzalez Kriegel
on 2014-08-11 12:18:18 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 12501: Show dissertation note (MARC21 502) in XSLT results
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2014-08-11 12:18:18 UTC
Size:
3.52 KB
patch
obsolete
>From 89a74ca9b740e9db4767b80ca94f2d2f3b1c636b Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer@bsz-bw.de> >Date: Fri, 25 Jul 2014 12:23:58 +0200 >Subject: [PATCH] [SIGNED-OFF] Bug 12501: Show dissertation note (MARC21 502) > in XSLT results > >Bug 9356 added the dissertation note from MARC21 502 to the staff >and OPAC detail pages. This patch adds it to the result list. > >1) Catalog a record with 502 > Examples: http://www.loc.gov/marc/bibliographic/bd502.html >2) Important: Wait until the record got indexed by Zebra or > index it manually. >3) Verify your note shows up on the detail pages in staff and OPAC >4) Verfiy note also shows up on the result pages in staff and OPAC > >5) Hide the dissertation note from display: > >OpacUserCSS: >.diss_note { > display:none; >} > >IntranetUserCSS: >.diss_note { > display:none; >} > >6) Verify CSS works and all looks like before... > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Work as describes, value can be hidden using css, >no koha-qa errors >--- > .../prog/en/xslt/MARC21slim2intranetResults.xsl | 13 +++++++++++++ > .../bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 13 +++++++++++++ > 2 files changed, 26 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >index f3a1761..2a49c1c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >@@ -754,6 +754,19 @@ > </span> > </xsl:if> > >+ <!-- Dissertation note --> >+ <xsl:if test="marc:datafield[@tag=502]"> >+ <span class="results_summary diss_note"> >+ <span class="label">Dissertation note: </span> >+ <xsl:for-each select="marc:datafield[@tag=502]"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">abcdgo</xsl:with-param> >+ </xsl:call-template> >+ </xsl:for-each> >+ <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text> </xsl:text></xsl:otherwise></xsl:choose> >+ </span> >+ </xsl:if> >+ > <xsl:if test="marc:datafield[@tag=300]"> > <span class="results_summary description"><span class="label">Description: </span> > <xsl:for-each select="marc:datafield[@tag=300]"> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >index ea6af38..9dba489 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >@@ -913,6 +913,19 @@ > </span> > </xsl:if> > >+ <!-- Dissertation note --> >+ <xsl:if test="marc:datafield[@tag=502]"> >+ <span class="results_summary diss_note"> >+ <span class="label">Dissertation note: </span> >+ <xsl:for-each select="marc:datafield[@tag=502]"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">abcdgo</xsl:with-param> >+ </xsl:call-template> >+ </xsl:for-each> >+ <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text> </xsl:text></xsl:otherwise></xsl:choose> >+ </span> >+ </xsl:if> >+ > <!-- Other Title Statement: Alternate Graphic Representation (MARC 880) --> > <xsl:if test="$display880"> > <xsl:call-template name="m880Select"> >-- >1.7.9.5
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 12501
:
30078
|
30687
|
30688
|
30860