From 7bcb0a79a9bb39589234c938a9e635ae1f72bcab Mon Sep 17 00:00:00 2001
From: Nick Clemens <nick@bywatersolutions.com>
Date: Mon, 22 Apr 2019 12:39:08 +0000
Subject: [PATCH] Bug 22418: Add magnifying glass to 655 results

To test:
1 - Have some 655 fields linked to authorities
2 - Notice they have no magnifyiung glass
3 - Apply patch
4 - Note they have one now

Signed-off-by: Michal Denar <black23@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
---
 .../prog/en/xslt/MARC21slim2intranetDetail.xsl              | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
index 7cdd98f03d..f8f0ba16c9 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
@@ -734,6 +734,19 @@
                         <xsl:with-param name="subdivDelimiter">-- </xsl:with-param>
                     </xsl:call-template>
                     </a>
+
+                    <xsl:if test="marc:subfield[@code=9]">
+                        <xsl:text> </xsl:text>
+                        <a class='authlink'>
+                            <xsl:attribute name="href">/cgi-bin/koha/authorities/detail.pl?authid=<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
+                            <xsl:element name="img">
+                                <xsl:attribute name="src">/intranet-tmpl/prog/img/filefind.png</xsl:attribute>
+                                <xsl:attribute name="alt"></xsl:attribute>
+                                <xsl:attribute name="height">15</xsl:attribute>
+                                <xsl:attribute name="width">15</xsl:attribute>
+                            </xsl:element>
+                        </a>
+                    </xsl:if>
                     <xsl:if test="position()!=last()"><span class="separator"> | </span></xsl:if>
                 </xsl:for-each>
             </span>
-- 
2.11.0