Bug 7332: Translated title (MARC21 242) not shown
[koha.git] / koha-tmpl / opac-tmpl / prog / en / xslt / MARC21slim2OPACMARCdetail.xsl
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE stylesheet [<!ENTITY nbsp "&#160;" >]>
3 <xsl:stylesheet version="1.0" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4         <xsl:output method="html"/>
5
6         <xsl:template match="/">
7                 <html>
8                         <xsl:apply-templates/>
9                 </html>
10         </xsl:template>
11
12         <xsl:template match="marc:record">
13                 <table>
14                         <tr>
15                                 <th style="white-space:nowrap">
16                                         000
17                                 </th>
18                                 <td colspan="2"></td>
19                                 <td>
20                                         <xsl:value-of select="marc:leader"/>
21                                 </td>
22                         </tr>
23                         <xsl:apply-templates select="marc:datafield|marc:controlfield"/>
24                 </table>
25         </xsl:template>
26
27         <xsl:template match="marc:controlfield">
28                 <tr>
29                         <th style="white-space:nowrap">
30                                 <xsl:value-of select="@tag"/>
31                         </th>
32                         <td colspan="2"></td>
33                         <td>
34                                 <xsl:value-of select="."/>
35                         </td>
36                 </tr>
37         </xsl:template>
38
39         <xsl:template match="marc:datafield">
40                 <tr>
41                         <th style="white-space:nowrap">
42                                 <xsl:value-of select="@tag"/>
43                         </th>
44                         <td><xsl:value-of select="@ind1"/></td>
45                         <td><xsl:value-of select="@ind2"/></td>
46                         <td><xsl:apply-templates select="marc:subfield"/></td>
47                 </tr>
48         </xsl:template>
49
50         <xsl:template match="marc:subfield">
51                 <strong>_<xsl:value-of select="@code"/></strong> <xsl:value-of select="."/>
52                 <xsl:choose>
53                 <xsl:when test="position()=last()"><xsl:text> </xsl:text></xsl:when><xsl:otherwise><br /></xsl:otherwise></xsl:choose>
54         </xsl:template>
55
56 </xsl:stylesheet>