View | Details | Raw Unified | Return to bug 27507
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-1 / +1 lines)
Lines 1063-1069 Link Here
1063
                    </xsl:variable>
1063
                    </xsl:variable>
1064
                    <xsl:choose>
1064
                    <xsl:choose>
1065
                        <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1065
                        <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1066
                            <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>
1066
                            <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> AND cni:"<xsl:call-template name="extractCNI"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template>"</xsl:attribute>
1067
                            <xsl:value-of select="translate($f773, '()', '')"/>
1067
                            <xsl:value-of select="translate($f773, '()', '')"/>
1068
                            </a>
1068
                            </a>
1069
                        </xsl:when>
1069
                        </xsl:when>
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl (-1 / +15 lines)
Lines 147-152 Link Here
147
	    </xsl:choose>
147
	    </xsl:choose>
148
	</xsl:template>
148
	</xsl:template>
149
149
150
	<!-- Function extractCNI is used to extract the control number identifier (OrgCode) from MARC tags 773/80/85 [etc.] subfield $w.
151
	     Parameter: control number string.
152
	     Assumes LOC convention: (OrgCode)recordNumber.
153
	     If OrgCode is not present, return empty string.
154
         Returns the value URI-encoded.
155
	-->
156
	<xsl:template name="extractCNI">
157
	    <xsl:param name="subfieldW"/>
158
	    <xsl:choose>
159
	      <xsl:when test="contains($subfieldW,'(') and contains($subfieldW,')')">
160
	        <xsl:value-of select="str:encode-uri(substring-before(substring-after($subfieldW,'('), ')'), true())"/>
161
	      </xsl:when>
162
	    </xsl:choose>
163
	</xsl:template>
164
150
    <!-- Function m880Select:  Display Alternate Graphic Representation (MARC 880) for selected latin "base"tags
165
    <!-- Function m880Select:  Display Alternate Graphic Representation (MARC 880) for selected latin "base"tags
151
        - should be called immediately before the corresonding latin tags are processed 
166
        - should be called immediately before the corresonding latin tags are processed 
152
        - tags in right-to-left languages are displayed floating right
167
        - tags in right-to-left languages are displayed floating right
153
- 

Return to bug 27507