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