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

(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slimUtils.xsl (-22 / +24 lines)
Lines 140-168 Link Here
140
                            </xsl:if>
140
                            </xsl:if>
141
                        </xsl:for-each>
141
                        </xsl:for-each>
142
                    </xsl:variable>
142
                    </xsl:variable>
143
                    <xsl:choose>
143
                    <xsl:if test="string-length($str) &gt; 0">
144
                        <xsl:when test="boolean($bibno)">
144
                        <xsl:choose>
145
                            <a>
145
                            <xsl:when test="boolean($bibno)">
146
                                <xsl:attribute name="href">/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of  select="$bibno"/></xsl:attribute>
146
                                <a>
147
                                <xsl:value-of select="$str"/>
147
                                    <xsl:attribute name="href">/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of  select="$bibno"/></xsl:attribute>
148
                            </a>
148
                                    <xsl:value-of select="$str"/>
149
                        </xsl:when>
149
                                </a>
150
                       <xsl:when test="boolean($index) and boolean(marc:subfield[@code=9])">
150
                            </xsl:when>
151
                            <a>
151
                           <xsl:when test="boolean($index) and boolean(marc:subfield[@code=9])">
152
                                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of  select="marc:subfield[@code=9]"/></xsl:attribute>
152
                                <a>
153
                                  <xsl:value-of select="$str"/>
153
                                    <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of  select="marc:subfield[@code=9]"/></xsl:attribute>
154
                            </a>
154
                                    <xsl:value-of select="$str"/>
155
                        </xsl:when>
155
                                </a>
156
                        <xsl:when test="boolean($index)">
156
                            </xsl:when>
157
                            <a>
157
                            <xsl:when test="boolean($index)">
158
                                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of  select="$index"/>:<xsl:value-of  select="marc:subfield[@code='a']"/></xsl:attribute>
158
                                <a>
159
                                    <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of  select="$index"/>:<xsl:value-of  select="marc:subfield[@code='a']"/></xsl:attribute>
160
                                    <xsl:value-of select="$str"/>
161
                                </a>
162
                            </xsl:when>
163
                            <xsl:otherwise>
159
                                <xsl:value-of select="$str"/>
164
                                <xsl:value-of select="$str"/>
160
                            </a>
165
                            </xsl:otherwise>
161
                        </xsl:when>
166
                        </xsl:choose>
162
                        <xsl:otherwise>
167
                    </xsl:if>
163
                            <xsl:value-of select="$str"/>
164
                        </xsl:otherwise>
165
                    </xsl:choose>
166
                </span>
168
                </span>
167
            </xsl:if>
169
            </xsl:if>
168
        </xsl:for-each>
170
        </xsl:for-each>
(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslimUtils.xsl (-22 / +24 lines)
Lines 170-198 Link Here
170
                            </xsl:if>
170
                            </xsl:if>
171
                        </xsl:for-each>
171
                        </xsl:for-each>
172
                    </xsl:variable>
172
                    </xsl:variable>
173
                    <xsl:choose>
173
                    <xsl:if test="string-length($str) &gt; 0">
174
                        <xsl:when test="boolean($bibno)">
174
                        <xsl:choose>
175
                            <a>
175
                            <xsl:when test="boolean($bibno)">
176
                                <xsl:attribute name="href">/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of  select="$bibno"/></xsl:attribute>
176
                                <a>
177
                                    <xsl:attribute name="href">/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of  select="$bibno"/></xsl:attribute>
178
                                    <xsl:value-of select="$str"/>
179
                                </a>
180
                            </xsl:when>
181
                           <xsl:when test="boolean($index) and boolean(marc:subfield[@code=9])">
182
                                <a>
183
                                    <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of  select="marc:subfield[@code=9]"/></xsl:attribute>
184
                                    <xsl:value-of select="$str"/>
185
                                </a>
186
                            </xsl:when>
187
                            <xsl:when test="boolean($index)">
188
                                <a>
189
                                    <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of  select="$index"/>:<xsl:value-of  select="marc:subfield[@code='a']"/></xsl:attribute>
190
                                    <xsl:value-of select="$str"/>
191
                                </a>
192
                            </xsl:when>
193
                            <xsl:otherwise>
177
                                <xsl:value-of select="$str"/>
194
                                <xsl:value-of select="$str"/>
178
                            </a>
195
                            </xsl:otherwise>
179
                        </xsl:when>
196
                        </xsl:choose>
180
                       <xsl:when test="boolean($index) and boolean(marc:subfield[@code=9])">
197
                    </xsl:if>
181
                            <a>
182
                                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of  select="marc:subfield[@code=9]"/></xsl:attribute>
183
                                  <xsl:value-of select="$str"/>
184
                            </a>
185
                        </xsl:when>
186
                        <xsl:when test="boolean($index)">
187
                            <a>
188
                                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of  select="$index"/>:<xsl:value-of  select="marc:subfield[@code='a']"/></xsl:attribute>
189
                                <xsl:value-of select="$str"/>
190
                            </a>
191
                        </xsl:when>
192
                        <xsl:otherwise>
193
                            <xsl:value-of select="$str"/>
194
                        </xsl:otherwise>
195
                    </xsl:choose>
196
                </span>
198
                </span>
197
            </xsl:if>
199
            </xsl:if>
198
        </xsl:for-each>
200
        </xsl:for-each>
(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl (-4 / +15 lines)
Lines 244-250 Link Here
244
                <xsl:text>/cgi-bin/koha/opac-search.pl?q=an:</xsl:text>
244
                <xsl:text>/cgi-bin/koha/opac-search.pl?q=an:</xsl:text>
245
                <xsl:value-of select="."/>
245
                <xsl:value-of select="."/>
246
              </xsl:attribute>
246
              </xsl:attribute>
247
              <xsl:value-of select="$display"/>
247
              <xsl:choose>
248
                <xsl:when test="string-length($display) &gt; 0">
249
                  <xsl:call-template name="chopPunctuation">
250
                    <xsl:with-param name="chopString">
251
                      <xsl:value-of select="$display"/>
252
                    </xsl:with-param>
253
                  </xsl:call-template>
254
                </xsl:when>
255
                <xsl:otherwise>
256
                  <xsl:value-of select="."/>
257
                </xsl:otherwise>
258
              </xsl:choose>
248
            </a>
259
            </a>
249
            <xsl:variable name="ncommas"
260
            <xsl:variable name="ncommas"
250
                 select="string-length($ends) - string-length(translate($ends, ',', ''))" />
261
                 select="string-length($ends) - string-length(translate($ends, ',', ''))" />
Lines 254-260 Link Here
254
          </xsl:if>
265
          </xsl:if>
255
        </xsl:for-each>
266
        </xsl:for-each>
256
      </xsl:when>
267
      </xsl:when>
257
      <xsl:otherwise>
268
      <xsl:when test="marc:subfield[@code=a]">
258
        <a>
269
        <a>
259
          <xsl:attribute name="href">
270
          <xsl:attribute name="href">
260
            <xsl:text>/cgi-bin/koha/opac-search.pl?q=su:</xsl:text>
271
            <xsl:text>/cgi-bin/koha/opac-search.pl?q=su:</xsl:text>
Lines 270-276 Link Here
270
            </xsl:with-param>
281
            </xsl:with-param>
271
          </xsl:call-template>
282
          </xsl:call-template>
272
        </a>
283
        </a>
273
      </xsl:otherwise>
284
      </xsl:when>
285
      <xsl:otherwise/>
274
    </xsl:choose>
286
    </xsl:choose>
275
    <xsl:if test="not(position()=last())">
287
    <xsl:if test="not(position()=last())">
276
      <xsl:text> | </xsl:text>
288
      <xsl:text> | </xsl:text>
277
- 

Return to bug 8513