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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-23 / +22 lines)
Lines 325-377 Link Here
325
            <xsl:when test="marc:datafield[@tag=260]">
325
            <xsl:when test="marc:datafield[@tag=260]">
326
             <span class="results_summary publisher"><span class="label">Publication details: </span>
326
             <span class="results_summary publisher"><span class="label">Publication details: </span>
327
                 <xsl:for-each select="marc:datafield[@tag=260]">
327
                 <xsl:for-each select="marc:datafield[@tag=260]">
328
                     <span property="publisher" typeof="Organization">
328
                     <xsl:for-each select="marc:subfield">
329
                         <xsl:for-each select="marc:subfield[@code='a']">
329
                     <xsl:if test="@code='a'">
330
                         <span property="publisher" typeof="Organization">
330
                            <span class="publisher_place" property="location">
331
                            <span class="publisher_place" property="location">
331
                                <a>
332
                                <a>
332
                                    <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=pl:"<xsl:value-of select="str:encode-uri(., true())"/>"</xsl:attribute>
333
                                    <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=pl:"<xsl:value-of select="str:encode-uri(current(), true())"/>"</xsl:attribute>
333
                                    <xsl:value-of select="."/>
334
                                    <xsl:value-of select="current()"/>
334
                                </a>
335
                                </a>
335
                            </span>
336
                            </span>
337
                         </span>
336
                            <xsl:if test="position() != last()">
338
                            <xsl:if test="position() != last()">
337
                                <xsl:text> </xsl:text>
339
                                <xsl:text> </xsl:text>
338
                            </xsl:if>
340
                            </xsl:if>
339
                         </xsl:for-each>
341
                         <xsl:text> </xsl:text>
340
                     <xsl:text> </xsl:text>
342
                     </xsl:if>
341
                     <xsl:if test="marc:subfield[@code='b']">
343
                     <xsl:if test="@code='b'">
344
                         <span property="publisher" typeof="Organization">
342
                        <span property="name" class="publisher_name">
345
                        <span property="name" class="publisher_name">
343
                            <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Provider:<xsl:value-of select="str:encode-uri(marc:subfield[@code='b'], true())"/></xsl:attribute>
346
                            <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Provider:<xsl:value-of select="str:encode-uri(current(), true())"/></xsl:attribute>
344
                                <xsl:call-template name="subfieldSelect">
347
                                <xsl:value-of select="current()"/>
345
                                    <xsl:with-param name="codes">b</xsl:with-param>
346
                                </xsl:call-template>
347
                            </a>
348
                            </a>
348
                        </span>
349
                        </span>
350
                        </span>
351
                        <xsl:text> </xsl:text>
349
                     </xsl:if>
352
                     </xsl:if>
350
                     </span>
353
                     <xsl:if test="@code='c'">
351
                     <xsl:text> </xsl:text>
352
                     <xsl:for-each select="marc:subfield[@code='c']">
353
                         <span property="datePublished" class="publisher_date">
354
                         <span property="datePublished" class="publisher_date">
354
                             <a>
355
                             <a>
355
                                 <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=copydate:"<xsl:value-of select="str:encode-uri(., true())"/>"</xsl:attribute>
356
                                 <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=copydate:"<xsl:value-of select="str:encode-uri(current(), true())"/>"</xsl:attribute>
356
                                 <xsl:value-of select="."/>
357
                                 <xsl:value-of select="current()"/>
357
                             </a>
358
                             </a>
358
                             <xsl:if test="position() != last()">
359
                             <xsl:if test="position() != last()">
359
                                 <xsl:text> </xsl:text>
360
                                 <xsl:text> </xsl:text>
360
                             </xsl:if>
361
                             </xsl:if>
361
                         </span>
362
                         </span>
362
                     </xsl:for-each>
363
                         <xsl:text> </xsl:text>
363
                     <xsl:text> </xsl:text>
364
                     </xsl:if>
364
                     <xsl:if test="marc:subfield[@code='g']">
365
                     <xsl:if test="@code='g'">
365
                        <span property="datePublished" class="publisher_date">
366
                        <span property="datePublished" class="publisher_date">
366
                           <xsl:call-template name="chopPunctuation">
367
                           <xsl:call-template name="chopPunctuation">
367
                               <xsl:with-param name="chopString">
368
                               <xsl:with-param name="chopString">
368
                                    <xsl:call-template name="subfieldSelect">
369
                                 <xsl:value-of select="current()"/>
369
                                        <xsl:with-param name="codes">g</xsl:with-param>
370
                                    </xsl:call-template>
371
                                </xsl:with-param>
370
                                </xsl:with-param>
372
                            </xsl:call-template>
371
                            </xsl:call-template>
373
                        </span>
372
                        </span>
374
                     </xsl:if>
373
                     </xsl:if>
374
                     </xsl:for-each>
375
                     <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
375
                     <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
376
                 </xsl:for-each>
376
                 </xsl:for-each>
377
             </span>
377
             </span>
378
- 

Return to bug 15594