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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-52 / +52 lines)
Lines 198-270 Link Here
198
            </xsl:call-template>
198
            </xsl:call-template>
199
        </xsl:if>
199
        </xsl:if>
200
200
201
        <!-- Series -->
201
            <!-- Series -->
202
        <xsl:if test="marc:datafield[@tag=440 or @tag=490]">
202
            <xsl:if test="marc:datafield[@tag=440 or @tag=490 or @tag=800 or @tag=810 or @tag=811 or @tag=830]">
203
        <span class="results_summary series"><span class="label">Series: </span>
203
                <span class="results_summary series"><span class="label">Series: </span>
204
        <!-- 440 -->
204
                    <!-- 440 -->
205
        <xsl:for-each select="marc:datafield[@tag=440]">
205
                    <xsl:for-each select="marc:datafield[@tag=440]">
206
            <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se,phr:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>
206
                        <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se,phr:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>
207
            <xsl:call-template name="chopPunctuation">
208
                            <xsl:with-param name="chopString">
209
                                <xsl:call-template name="subfieldSelect">
210
                                    <xsl:with-param name="codes">av</xsl:with-param>
211
                                </xsl:call-template>
212
                            </xsl:with-param>
213
                        </xsl:call-template>
214
            </a>
215
            <xsl:call-template name="part"/>
216
            <xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text> ; </xsl:text></xsl:otherwise></xsl:choose>
217
        </xsl:for-each>
218
219
        <!-- 490 Series not traced, Ind1 = 0 -->
220
        <xsl:for-each select="marc:datafield[@tag=490][@ind1!=1]">
221
            <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se,phr:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>
222
                        <xsl:call-template name="chopPunctuation">
223
                            <xsl:with-param name="chopString">
224
                                <xsl:call-template name="subfieldSelect">
225
                                    <xsl:with-param name="codes">av</xsl:with-param>
226
                                </xsl:call-template>
227
                            </xsl:with-param>
228
                        </xsl:call-template>
229
            </a>
230
                    <xsl:call-template name="part"/>
231
        <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
232
        </xsl:for-each>
233
        <!-- 490 Series traced, Ind1 = 1 -->
234
        <xsl:if test="marc:datafield[@tag=490][@ind1=1]">
235
            <xsl:for-each select="marc:datafield[@tag=800 or @tag=810 or @tag=811 or @tag=830]">
236
                <xsl:choose>
237
                    <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
238
                        <a href="/cgi-bin/koha/opac-search.pl?q=rcn:{marc:subfield[@code='w']}">
239
                            <xsl:call-template name="chopPunctuation">
207
                            <xsl:call-template name="chopPunctuation">
240
                                <xsl:with-param name="chopString">
208
                                <xsl:with-param name="chopString">
241
                                    <xsl:call-template name="subfieldSelect">
209
                                    <xsl:call-template name="subfieldSelect">
242
                                        <xsl:with-param name="codes">a_t</xsl:with-param>
210
                                        <xsl:with-param name="codes">av</xsl:with-param>
243
                                    </xsl:call-template>
211
                                    </xsl:call-template>
244
                                </xsl:with-param>
212
                                </xsl:with-param>
245
                            </xsl:call-template>
213
                            </xsl:call-template>
246
                        </a>
214
                        </a>
247
                    </xsl:when>
215
                        <xsl:call-template name="part"/>
248
                    <xsl:otherwise>
216
                        <xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text> ; </xsl:text></xsl:otherwise></xsl:choose>
217
                    </xsl:for-each>
218
                    
219
                    <!-- 490 Series not traced, Ind1 = 0 -->
220
                    <xsl:for-each select="marc:datafield[@tag=490][@ind1!=1]">
249
                        <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se,phr:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>
221
                        <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se,phr:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>
250
                            <xsl:call-template name="chopPunctuation">
222
                            <xsl:call-template name="chopPunctuation">
251
                                <xsl:with-param name="chopString">
223
                                <xsl:with-param name="chopString">
252
                                    <xsl:call-template name="subfieldSelect">
224
                                    <xsl:call-template name="subfieldSelect">
253
                                        <xsl:with-param name="codes">a_t</xsl:with-param>
225
                                        <xsl:with-param name="codes">av</xsl:with-param>
254
                                    </xsl:call-template>
226
                                    </xsl:call-template>
255
                                </xsl:with-param>
227
                                </xsl:with-param>
256
                            </xsl:call-template>
228
                            </xsl:call-template>
257
                        </a>
229
                        </a>
258
                        <xsl:call-template name="part"/>
230
                        <xsl:call-template name="part"/>
259
                    </xsl:otherwise>
231
                        <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
260
                </xsl:choose>
232
                    </xsl:for-each>
261
                <xsl:text>: </xsl:text>
233
                    
262
                <xsl:value-of  select="marc:subfield[@code='v']" />
234
                    <!-- 800,810,811,830 always display. -->
263
            <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
235
                    <xsl:for-each select="marc:datafield[@tag=800 or @tag=810 or @tag=811 or @tag=830]">
264
            </xsl:for-each>
236
                        <xsl:choose>
265
        </xsl:if>
237
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
266
        </span>
238
                                <a href="/cgi-bin/koha/opac-search.pl?q=rcn:{marc:subfield[@code='w']}">
267
        </xsl:if>
239
                                    <xsl:call-template name="chopPunctuation">
240
                                        <xsl:with-param name="chopString">
241
                                            <xsl:call-template name="subfieldSelect">
242
                                                <xsl:with-param name="codes">a_t</xsl:with-param>
243
                                            </xsl:call-template>
244
                                        </xsl:with-param>
245
                                    </xsl:call-template>
246
                                </a>
247
                            </xsl:when>
248
                            <xsl:otherwise>
249
                                <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se,phr:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>
250
                                    <xsl:call-template name="chopPunctuation">
251
                                        <xsl:with-param name="chopString">
252
                                            <xsl:call-template name="subfieldSelect">
253
                                                <xsl:with-param name="codes">a_t</xsl:with-param>
254
                                            </xsl:call-template>
255
                                        </xsl:with-param>
256
                                    </xsl:call-template>
257
                                </a>
258
                                <xsl:call-template name="part"/>
259
                            </xsl:otherwise>
260
                        </xsl:choose>
261
                        <xsl:if test="marc:subfield[@code='v']">
262
                            <xsl:text> ; </xsl:text>
263
                            <xsl:value-of  select="marc:subfield[@code='v']" />                
264
                        </xsl:if>
265
                        <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise></xsl:choose>
266
                    </xsl:for-each>
267
                </span>
268
            </xsl:if>
268
269
269
        <!-- Analytics -->
270
        <!-- Analytics -->
270
        <xsl:if test="$leader7='s'">
271
        <xsl:if test="$leader7='s'">
271
- 

Return to bug 13600