Bug 2093: (follow-up) Add OPAC dashboard for logged-in users
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / xslt / plainMARC.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" encoding="UTF-8"/>
5
6         <xsl:template match="/">
7                 <html>
8           <head><title>MARC View</title></head>
9           <body>
10            <xsl:apply-templates/>
11           </body>
12                 </html>
13         </xsl:template>
14
15         <xsl:template match="marc:record">
16                 <table>
17                         <tr>
18                                 <th style="white-space:nowrap">
19                                         000
20                                 </th>
21                                 <td colspan="2"></td>
22                                 <td>
23                                         <xsl:value-of select="marc:leader"/>
24                                 </td>
25                         </tr>
26                         <xsl:apply-templates select="marc:datafield|marc:controlfield"/>
27                 </table>
28         </xsl:template>
29
30         <xsl:template match="marc:controlfield">
31                 <tr>
32                         <th style="white-space:nowrap">
33                                 <xsl:value-of select="@tag"/>
34                         </th>
35                         <td colspan="2"></td>
36                         <td>
37                                 <xsl:value-of select="."/>
38                         </td>
39                 </tr>
40         </xsl:template>
41
42         <xsl:template match="marc:datafield">
43                 <tr>
44                         <th style="white-space:nowrap">
45                                 <xsl:value-of select="@tag"/>
46                         </th>
47                         <td><xsl:value-of select="@ind1"/></td>
48                         <td><xsl:value-of select="@ind2"/></td>
49                         <td><xsl:apply-templates select="marc:subfield"/></td>
50                 </tr>
51         </xsl:template>
52
53         <xsl:template match="marc:subfield">
54                 <strong>_<xsl:value-of select="@code"/></strong> <xsl:value-of select="."/>
55                 <xsl:choose>
56                 <xsl:when test="position()=last()"><xsl:text> </xsl:text></xsl:when><xsl:otherwise><br /></xsl:otherwise></xsl:choose>
57         </xsl:template>
58
59 </xsl:stylesheet>