Bug 17823: Add label for MARC 583 - Action note
authorKaren Jen <karenliang.student@wegc.school.nz>
Tue, 17 Jan 2017 22:46:02 +0000 (22:46 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Thu, 19 Jan 2017 12:09:19 +0000 (12:09 +0000)
test plan
Edit a record
Edit field 583a to add an action note
Save the record and confirm that the note does not show up in staff
client or opac
Apply patch and refresh page
Action note should now show up in staff client and opac

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl

index d22f35b..162c148 100644 (file)
             </span>
         </xsl:if>
 
+         <!-- 583 -->
+             <xsl:if test="marc:datafield[@tag=583]">
+                 <xsl:for-each select="marc:datafield[@tag=583]">
+                    <xsl:if test="@ind1=1 or @ind1=' '">
+                      <span class="results_summary actionnote">
+                          <span class="label">Action note: </span>
+                             <xsl:choose>
+                                 <xsl:when test="marc:subfield[@code='z']">
+                                     <xsl:value-of select="marc:subfield[@code='z']"/>
+                                 </xsl:when>
+                                 <xsl:otherwise>
+                                     <xsl:call-template name="subfieldSelect">
+                                         <xsl:with-param name="codes">abcdefgijklnou</xsl:with-param>
+                                     </xsl:call-template>
+                                 </xsl:otherwise>
+                             </xsl:choose>
+                         </span>
+                     </xsl:if>
+                 </xsl:for-each>
+             </xsl:if>
+
         <!-- 508 -->
         <xsl:if test="marc:datafield[@tag=508]">
             <div class="results_summary prod_credits">
index a8622f3..c62d004 100644 (file)
         <xsl:for-each select="marc:datafield[@tag=583]">
             <xsl:if test="@ind1=1 or @ind1=' '">
             <span class="results_summary actionnote">
+                <span class="label">Action note: </span>
                 <xsl:choose>
                 <xsl:when test="marc:subfield[@code='z']">
                     <xsl:value-of select="marc:subfield[@code='z']"/>