Bug 11750: (QA follow-up) Remove unconditional warn
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / xslt / oilsMARC21slim2HTML.xsl
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE stylesheet>
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>
9
10                                 <style>
11
12                                         .marc_table {}
13                                         .marc_tag_row {}
14                                         .marc_tag_data {}
15                                         .marc_tag_col {}
16                                         .marc_tag_ind {}
17                                         .marc_subfields {}
18                                         .marc_subfield_code { 
19                                                 color: blue; 
20                                                 padding-left: 5px;
21                                                 padding-right: 5px; 
22                                         }
23
24                                 </style>
25
26                                 <link href='/css/opac_marc.css' rel='stylesheet' type='text/css'></link>
27                         </head>
28                         <body>
29                                 <div><button onclick='window.print();'>Print Page</button></div>
30                                 <xsl:apply-templates/>
31                         </body>
32                 </html>
33         </xsl:template>
34         
35         <xsl:template match="marc:record">
36                 <table class='marc_table'>
37                         <tr class='marc_tag_row'>
38                                 <th class='marc_tag_col' NOWRAP="TRUE" ALIGN="RIGHT" VALIGN="middle">
39                                         LDR
40                                 </th>
41                                 <td class='marc_tag_data' COLSPAN='3'>
42                                         <xsl:value-of select="marc:leader"/>
43                                 </td>
44                         </tr>
45                         <xsl:apply-templates select="marc:datafield|marc:controlfield"/>
46                 </table>
47         </xsl:template>
48         
49         <xsl:template match="marc:controlfield">
50                 <tr class='marc_tag_row'>
51                         <th class='marc_tag_col' NOWRAP="TRUE" ALIGN="RIGHT" VALIGN="middle">
52                                 <xsl:value-of select="@tag"/>
53                         </th>
54                         <td class='marc_tag_data' COLSPAN='3'>
55                                 <xsl:value-of select="."/>
56                         </td>
57                 </tr>
58         </xsl:template>
59         
60         <xsl:template match="marc:datafield">
61                 <tr class='marc_tag_row'>
62                         <th class='marc_tag_col' NOWRAP="TRUE" ALIGN="RIGHT" VALIGN="middle">
63                                 <xsl:value-of select="@tag"/>
64                         </th>
65                         <td class='marc_tag_ind'>
66                                 <xsl:value-of select="@ind1"/>
67                         </td>
68
69                         <td class='marc_tag_ind' style='border-left: 1px solid #A0A0A0; padding-left: 3px;'>
70                                 <xsl:value-of select="@ind2"/>
71                                 <span style='color:#FFF'>.</span> 
72                         </td>
73
74                         <td class='marc_subfields'>
75                                 <xsl:apply-templates select="marc:subfield"/>
76                         </td>
77                 </tr>
78         </xsl:template>
79         
80         <xsl:template match="marc:subfield">
81                 <span class='marc_subfield_code' > 
82                         &#8225;<xsl:value-of select="@code"/>
83                 </span><xsl:value-of select="."/>       
84         </xsl:template>
85
86 </xsl:stylesheet>
87
88 <!-- Stylus Studio meta-information - (c)1998-2002 eXcelon Corp.
89 <metaInformation>
90 <scenarios ><scenario default="no" name="Ray Charles" userelativepaths="yes" externalpreview="no" url="..\xml\MARC21slim\raycharles.xml" htmlbaseurl="" outputurl="" processortype="internal" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext=""/><scenario default="yes" name="s7" userelativepaths="yes" externalpreview="no" url="..\ifla\sally7.xml" htmlbaseurl="" outputurl="" processortype="internal" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext=""/></scenarios><MapperInfo srcSchemaPath="" srcSchemaRoot="" srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/>
91 </metaInformation>
92 -->