|
Lines 217-222
Link Here
|
| 217 |
Publisher-latest or Publisher or 'Other'-latest or 'Other' |
217 |
Publisher-latest or Publisher or 'Other'-latest or 'Other' |
| 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 |
<xsl:param name="show_url"/> |
| 220 |
<xsl:choose> |
221 |
<xsl:choose> |
| 221 |
<xsl:when test="marc:datafield[@tag=264 and @ind1=3 and @ind2=1]"> |
222 |
<xsl:when test="marc:datafield[@tag=264 and @ind1=3 and @ind2=1]"> |
| 222 |
<!-- ind1==3 means latest change --> |
223 |
<!-- ind1==3 means latest change --> |
|
Lines 224-229
Link Here
|
| 224 |
<xsl:variable name="fav" select="marc:datafield[@tag=264 and @ind1=3 and @ind2=1][1]"/> |
225 |
<xsl:variable name="fav" select="marc:datafield[@tag=264 and @ind1=3 and @ind2=1][1]"/> |
| 225 |
<xsl:call-template name="showRDAtag264helper"> |
226 |
<xsl:call-template name="showRDAtag264helper"> |
| 226 |
<xsl:with-param name="field" select="$fav"/> |
227 |
<xsl:with-param name="field" select="$fav"/> |
|
|
228 |
<xsl:with-param name="url" select="$show_url"/> |
| 227 |
</xsl:call-template> |
229 |
</xsl:call-template> |
| 228 |
</xsl:when> |
230 |
</xsl:when> |
| 229 |
|
231 |
|
|
Lines 231-236
Link Here
|
| 231 |
<xsl:variable name="fav" select="marc:datafield[@tag=264 and @ind2=1][last()]"/> |
233 |
<xsl:variable name="fav" select="marc:datafield[@tag=264 and @ind2=1][last()]"/> |
| 232 |
<xsl:call-template name="showRDAtag264helper"> |
234 |
<xsl:call-template name="showRDAtag264helper"> |
| 233 |
<xsl:with-param name="field" select="$fav"/> |
235 |
<xsl:with-param name="field" select="$fav"/> |
|
|
236 |
<xsl:with-param name="url" select="$show_url"/> |
| 234 |
</xsl:call-template> |
237 |
</xsl:call-template> |
| 235 |
</xsl:when> |
238 |
</xsl:when> |
| 236 |
|
239 |
|
|
Lines 238-243
Link Here
|
| 238 |
<xsl:variable name="fav" select="marc:datafield[@tag=264 and @ind1=3][1]"/> |
241 |
<xsl:variable name="fav" select="marc:datafield[@tag=264 and @ind1=3][1]"/> |
| 239 |
<xsl:call-template name="showRDAtag264helper"> |
242 |
<xsl:call-template name="showRDAtag264helper"> |
| 240 |
<xsl:with-param name="field" select="$fav"/> |
243 |
<xsl:with-param name="field" select="$fav"/> |
|
|
244 |
<xsl:with-param name="url" select="$show_url"/> |
| 241 |
</xsl:call-template> |
245 |
</xsl:call-template> |
| 242 |
</xsl:when> |
246 |
</xsl:when> |
| 243 |
|
247 |
|
|
Lines 245-256
Link Here
|
| 245 |
<xsl:variable name="fav" select="marc:datafield[@tag=264][last()]"/> |
249 |
<xsl:variable name="fav" select="marc:datafield[@tag=264][last()]"/> |
| 246 |
<xsl:call-template name="showRDAtag264helper"> |
250 |
<xsl:call-template name="showRDAtag264helper"> |
| 247 |
<xsl:with-param name="field" select="$fav"/> |
251 |
<xsl:with-param name="field" select="$fav"/> |
|
|
252 |
<xsl:with-param name="url" select="$show_url"/> |
| 248 |
</xsl:call-template> |
253 |
</xsl:call-template> |
| 249 |
</xsl:otherwise> |
254 |
</xsl:otherwise> |
| 250 |
</xsl:choose> |
255 |
</xsl:choose> |
| 251 |
</xsl:template> |
256 |
</xsl:template> |
| 252 |
<xsl:template name="showRDAtag264helper"> |
257 |
<xsl:template name="showRDAtag264helper"> |
| 253 |
<xsl:param name="field"/> |
258 |
<xsl:param name="field"/> |
|
|
259 |
<xsl:param name="url"/> |
| 254 |
<xsl:variable name="ind2" select="$field/@ind2"/> |
260 |
<xsl:variable name="ind2" select="$field/@ind2"/> |
| 255 |
<xsl:choose> |
261 |
<xsl:choose> |
| 256 |
<xsl:when test="$ind2='0'"> |
262 |
<xsl:when test="$ind2='0'"> |
|
Lines 268-274
Link Here
|
| 268 |
</xsl:choose> |
274 |
</xsl:choose> |
| 269 |
<xsl:value-of select="$field/marc:subfield[@code='a']"/> |
275 |
<xsl:value-of select="$field/marc:subfield[@code='a']"/> |
| 270 |
<xsl:text> </xsl:text> |
276 |
<xsl:text> </xsl:text> |
| 271 |
<xsl:value-of select="$field/marc:subfield[@code='b']"/> |
277 |
<xsl:choose> |
|
|
278 |
<xsl:when test="$url='1'"> |
| 279 |
<a href="/cgi-bin/koha/catalogue/search.pl?q=pv:{$field/marc:subfield[@code='b']}"> |
| 280 |
<xsl:value-of select="$field/marc:subfield[@code='b']"/> |
| 281 |
</a> |
| 282 |
</xsl:when> |
| 283 |
<xsl:otherwise> |
| 284 |
<xsl:value-of select="$field/marc:subfield[@code='b']"/> |
| 285 |
</xsl:otherwise> |
| 286 |
</xsl:choose> |
| 272 |
<xsl:text> </xsl:text> |
287 |
<xsl:text> </xsl:text> |
| 273 |
<xsl:value-of select="$field/marc:subfield[@code='c']"/> |
288 |
<xsl:value-of select="$field/marc:subfield[@code='c']"/> |
| 274 |
</xsl:template> |
289 |
</xsl:template> |