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

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-2 / +4 lines)
Lines 314-320 Link Here
314
        <!-- Publisher info and RDA related info from tags 260, 264 -->
314
        <!-- Publisher info and RDA related info from tags 260, 264 -->
315
        <xsl:choose>
315
        <xsl:choose>
316
            <xsl:when test="marc:datafield[@tag=264]">
316
            <xsl:when test="marc:datafield[@tag=264]">
317
                <xsl:call-template name="showRDAtag264"/>
317
                <xsl:call-template name="showRDAtag264">
318
                   <xsl:with-param name="show_url">1</xsl:with-param>
319
                </xsl:call-template>
318
            </xsl:when>
320
            </xsl:when>
319
            <xsl:when test="marc:datafield[@tag=260]">
321
            <xsl:when test="marc:datafield[@tag=260]">
320
                <span class="results_summary publisher"><span class="label">Publisher: </span>
322
                <span class="results_summary publisher"><span class="label">Publisher: </span>
Lines 326-332 Link Here
326
                        </xsl:if>
328
                        </xsl:if>
327
                        <xsl:text> </xsl:text>
329
                        <xsl:text> </xsl:text>
328
                        <xsl:if test="marc:subfield[@code='b']">
330
                        <xsl:if test="marc:subfield[@code='b']">
329
                        <a href="/cgi-bin/koha/catalogue/search.pl?q=pb:{marc:subfield[@code='b']}">
331
                        <a href="/cgi-bin/koha/catalogue/search.pl?q=Provider:{marc:subfield[@code='b']}">
330
                            <xsl:call-template name="subfieldSelect">
332
                            <xsl:call-template name="subfieldSelect">
331
                                <xsl:with-param name="codes">b</xsl:with-param>
333
                                <xsl:with-param name="codes">b</xsl:with-param>
332
                            </xsl:call-template>
334
                            </xsl:call-template>
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl (-3 / +38 lines)
Lines 218-228 Link Here
218
         The preferred tag is saved in the fav variable and passed to a
218
         The preferred tag is saved in the fav variable and passed to a
219
         helper named-template -->
219
         helper named-template -->
220
    <!-- Amended  to show all 264 fields (filtered by ind1=3 if ind1=3 is present in the record)  -->
220
    <!-- Amended  to show all 264 fields (filtered by ind1=3 if ind1=3 is present in the record)  -->
221
        <xsl:param name="show_url"/>
221
        <xsl:choose>
222
        <xsl:choose>
222
            <xsl:when test="marc:datafield[@tag=264 and @ind1=3]">
223
            <xsl:when test="marc:datafield[@tag=264 and @ind1=3]">
223
                <xsl:for-each select="marc:datafield[@tag=264 and @ind1=3]">
224
                <xsl:for-each select="marc:datafield[@tag=264 and @ind1=3]">
224
                    <xsl:call-template name="showRDAtag264helper">
225
                    <xsl:call-template name="showRDAtag264helper">
225
                        <xsl:with-param name="field" select="."/>
226
                        <xsl:with-param name="field" select="."/>
227
                        <xsl:with-param name="url" select="$show_url"/>
226
                    </xsl:call-template>
228
                    </xsl:call-template>
227
                </xsl:for-each>
229
                </xsl:for-each>
228
            </xsl:when>
230
            </xsl:when>
Lines 230-235 Link Here
230
                <xsl:for-each select="marc:datafield[@tag=264]">
232
                <xsl:for-each select="marc:datafield[@tag=264]">
231
                    <xsl:call-template name="showRDAtag264helper">
233
                    <xsl:call-template name="showRDAtag264helper">
232
                        <xsl:with-param name="field" select="."/>
234
                        <xsl:with-param name="field" select="."/>
235
                        <xsl:with-param name="url" select="$show_url"/>
233
                    </xsl:call-template>
236
                    </xsl:call-template>
234
                </xsl:for-each>
237
                </xsl:for-each>
235
            </xsl:otherwise>
238
            </xsl:otherwise>
Lines 237-242 Link Here
237
    </xsl:template>
240
    </xsl:template>
238
    <xsl:template name="showRDAtag264helper">
241
    <xsl:template name="showRDAtag264helper">
239
        <xsl:param name="field"/>
242
        <xsl:param name="field"/>
243
        <xsl:param name="url"/>
240
        <xsl:variable name="ind2" select="$field/@ind2"/>
244
        <xsl:variable name="ind2" select="$field/@ind2"/>
241
        <span class="results_summary">
245
        <span class="results_summary">
242
            <xsl:choose>
246
            <xsl:choose>
Lines 256-264 Link Here
256
                    <span class="label">Copyright date: </span>
260
                    <span class="label">Copyright date: </span>
257
                </xsl:when>
261
                </xsl:when>
258
            </xsl:choose>
262
            </xsl:choose>
259
            <xsl:call-template name="subfieldSelect">
263
260
                <xsl:with-param name="codes">abc</xsl:with-param>
264
            <xsl:if test="$field/marc:subfield[@code='a']">
265
                <xsl:call-template name="subfieldSelect">
266
                    <xsl:with-param name="codes">a</xsl:with-param>
267
                </xsl:call-template>
268
            </xsl:if>
269
            <xsl:text> </xsl:text>
270
271
            <xsl:choose>
272
                <xsl:when test="$url='1'">
273
                    <xsl:if test="$field/marc:subfield[@code='b']">
274
                         <a href="/cgi-bin/koha/catalogue/search.pl?q=Provider:{$field/marc:subfield[@code='b']}">
275
                         <xsl:call-template name="subfieldSelect">
276
                             <xsl:with-param name="codes">b</xsl:with-param>
277
                         </xsl:call-template>
278
                         </a>
279
                    </xsl:if>
280
                </xsl:when>
281
                <xsl:otherwise>
282
                    <xsl:if test="$field/marc:subfield[@code='b']">
283
                        <xsl:call-template name="subfieldSelect">
284
                            <xsl:with-param name="codes">b</xsl:with-param>
285
                        </xsl:call-template>
286
                    </xsl:if>
287
                </xsl:otherwise>
288
            </xsl:choose>
289
            <xsl:text> </xsl:text>
290
            <xsl:call-template name="chopPunctuation">
291
                <xsl:with-param name="chopString">
292
                    <xsl:call-template name="subfieldSelect">
293
                        <xsl:with-param name="codes">c</xsl:with-param>
294
                    </xsl:call-template>
295
                </xsl:with-param>
261
            </xsl:call-template>
296
            </xsl:call-template>
297
262
        </span>
298
        </span>
263
    </xsl:template>
299
    </xsl:template>
264
300
265
- 

Return to bug 14304