|
Lines 216-226
Link Here
|
| 216 |
The preferred tag is saved in the fav variable and passed to a |
216 |
The preferred tag is saved in the fav variable and passed to a |
| 217 |
helper named-template --> |
217 |
helper named-template --> |
| 218 |
<!-- Amended to show all 264 fields (filtered by ind1=3 if ind1=3 is present in the record) --> |
218 |
<!-- Amended to show all 264 fields (filtered by ind1=3 if ind1=3 is present in the record) --> |
|
|
219 |
<xsl:param name="show_url"/> |
| 219 |
<xsl:choose> |
220 |
<xsl:choose> |
| 220 |
<xsl:when test="marc:datafield[@tag=264 and @ind1=3]"> |
221 |
<xsl:when test="marc:datafield[@tag=264 and @ind1=3]"> |
| 221 |
<xsl:for-each select="marc:datafield[@tag=264 and @ind1=3]"> |
222 |
<xsl:for-each select="marc:datafield[@tag=264 and @ind1=3]"> |
| 222 |
<xsl:call-template name="showRDAtag264helper"> |
223 |
<xsl:call-template name="showRDAtag264helper"> |
| 223 |
<xsl:with-param name="field" select="."/> |
224 |
<xsl:with-param name="field" select="."/> |
|
|
225 |
<xsl:with-param name="url" select="$show_url"/> |
| 224 |
</xsl:call-template> |
226 |
</xsl:call-template> |
| 225 |
</xsl:for-each> |
227 |
</xsl:for-each> |
| 226 |
</xsl:when> |
228 |
</xsl:when> |
|
Lines 228-233
Link Here
|
| 228 |
<xsl:for-each select="marc:datafield[@tag=264]"> |
230 |
<xsl:for-each select="marc:datafield[@tag=264]"> |
| 229 |
<xsl:call-template name="showRDAtag264helper"> |
231 |
<xsl:call-template name="showRDAtag264helper"> |
| 230 |
<xsl:with-param name="field" select="."/> |
232 |
<xsl:with-param name="field" select="."/> |
|
|
233 |
<xsl:with-param name="url" select="$show_url"/> |
| 231 |
</xsl:call-template> |
234 |
</xsl:call-template> |
| 232 |
</xsl:for-each> |
235 |
</xsl:for-each> |
| 233 |
</xsl:otherwise> |
236 |
</xsl:otherwise> |
|
Lines 235-240
Link Here
|
| 235 |
</xsl:template> |
238 |
</xsl:template> |
| 236 |
<xsl:template name="showRDAtag264helper"> |
239 |
<xsl:template name="showRDAtag264helper"> |
| 237 |
<xsl:param name="field"/> |
240 |
<xsl:param name="field"/> |
|
|
241 |
<xsl:param name="url"/> |
| 238 |
<xsl:variable name="ind2" select="$field/@ind2"/> |
242 |
<xsl:variable name="ind2" select="$field/@ind2"/> |
| 239 |
<span class="results_summary"> |
243 |
<span class="results_summary"> |
| 240 |
<xsl:choose> |
244 |
<xsl:choose> |
|
Lines 254-262
Link Here
|
| 254 |
<span class="label">Copyright date: </span> |
258 |
<span class="label">Copyright date: </span> |
| 255 |
</xsl:when> |
259 |
</xsl:when> |
| 256 |
</xsl:choose> |
260 |
</xsl:choose> |
| 257 |
<xsl:call-template name="subfieldSelect"> |
261 |
|
| 258 |
<xsl:with-param name="codes">abc</xsl:with-param> |
262 |
<xsl:if test="$field/marc:subfield[@code='a']"> |
|
|
263 |
<xsl:call-template name="subfieldSelect"> |
| 264 |
<xsl:with-param name="codes">a</xsl:with-param> |
| 265 |
</xsl:call-template> |
| 266 |
</xsl:if> |
| 267 |
<xsl:text> </xsl:text> |
| 268 |
|
| 269 |
<xsl:choose> |
| 270 |
<xsl:when test="$url='1'"> |
| 271 |
<xsl:if test="$field/marc:subfield[@code='b']"> |
| 272 |
<a href="/cgi-bin/koha/opac-search.pl?q=Provider:{$field/marc:subfield[@code='b']}"> |
| 273 |
<xsl:call-template name="subfieldSelect"> |
| 274 |
<xsl:with-param name="codes">b</xsl:with-param> |
| 275 |
</xsl:call-template> |
| 276 |
</a> |
| 277 |
</xsl:if> |
| 278 |
</xsl:when> |
| 279 |
<xsl:otherwise> |
| 280 |
<xsl:if test="$field/marc:subfield[@code='b']"> |
| 281 |
<xsl:call-template name="subfieldSelect"> |
| 282 |
<xsl:with-param name="codes">b</xsl:with-param> |
| 283 |
</xsl:call-template> |
| 284 |
</xsl:if> |
| 285 |
</xsl:otherwise> |
| 286 |
</xsl:choose> |
| 287 |
<xsl:text> </xsl:text> |
| 288 |
<xsl:call-template name="chopPunctuation"> |
| 289 |
<xsl:with-param name="chopString"> |
| 290 |
<xsl:call-template name="subfieldSelect"> |
| 291 |
<xsl:with-param name="codes">c</xsl:with-param> |
| 292 |
</xsl:call-template> |
| 293 |
</xsl:with-param> |
| 259 |
</xsl:call-template> |
294 |
</xsl:call-template> |
|
|
295 |
|
| 260 |
</span> |
296 |
</span> |
| 261 |
</xsl:template> |
297 |
</xsl:template> |
| 262 |
</xsl:stylesheet> |
298 |
</xsl:stylesheet> |
| 263 |
- |
|
|