Bug 23506: Display correct icon in staff client and OPAC
authorLucas Gass <lucas@bywatersolutions.com>
Tue, 29 Oct 2019 17:40:47 +0000 (17:40 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Sun, 3 Nov 2019 07:43:31 +0000 (07:43 +0000)
When the leader6 is set to 'i' the MARC21slim2intranetDetail.xsl
attempts to display 'SO.png' which does not exist.

TEST PLAN:
1. Find or create a record with an 'i' as the 6th position in the 000 leader.
2. Do to the OPAC detail page and staff detail for an item in that record.
3. Notice the material type icon does not display because SO.png does not exist.
4. Apply patch and restart_all
5. Look at the opac detail and staff detail page again after clearning the browser cache.
6. The material type icon now displays (MU.png), this is the same icon used on the OPAC results page.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl

index f21e6ce..a1489bb 100644 (file)
@@ -64,7 +64,7 @@
                 <xsl:when test="$leader6='g'">VM</xsl:when>
                 <xsl:when test="$leader6='k'">PK</xsl:when>
                 <xsl:when test="$leader6='r'">OB</xsl:when>
-                <xsl:when test="$leader6='i'">SO</xsl:when>
+                <xsl:when test="$leader6='i'">MU</xsl:when>
                 <xsl:when test="$leader6='j'">MU</xsl:when>
                 <xsl:when test="$leader6='c' or $leader6='d'">PR</xsl:when>
             </xsl:choose>
index adbf98c..db2742e 100644 (file)
@@ -66,7 +66,7 @@
                 <xsl:when test="$leader6='g'">VM</xsl:when>
                 <xsl:when test="$leader6='k'">PK</xsl:when>
                 <xsl:when test="$leader6='r'">OB</xsl:when>
-                <xsl:when test="$leader6='i'">SO</xsl:when>
+                <xsl:when test="$leader6='i'">MU</xsl:when>
                 <xsl:when test="$leader6='j'">MU</xsl:when>
                 <xsl:when test="$leader6='c' or $leader6='d'">PR</xsl:when>
             </xsl:choose>