]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xsl/oilsMARC21slim2HTML.xsl
massive web updates,
[Evergreen.git] / Open-ILS / xsl / oilsMARC21slim2HTML.xsl
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3         <xsl:output method="html"/>
4         
5         <xsl:template match="/">
6                 <html>
7                         <head>
8
9                                 <style>
10
11                                         .marc_table {}
12                                         .marc_tag_row {}
13                                         .marc_tag_data {}
14                                         .marc_tag_col {}
15                                         .marc_tag_ind {}
16                                         .marc_subfields {}
17                                         .marc_subfield_code { 
18                                                 color: blue; 
19                                                 padding-left: 5px;
20                                                 padding-right: 5px; 
21                                         }
22
23                                 </style>
24
25                                 <link href='/css/opac_marc.css' rel='stylesheet' type='text/css'></link>
26                         </head>
27                         <xsl:apply-templates/>
28                 </html>
29         </xsl:template>
30         
31         <xsl:template match="marc:record">
32                 <table class='marc_table'>
33                         <tr class='marc_tag_row'>
34                                 <th class='marc_tag_col' NOWRAP="TRUE" ALIGN="RIGHT" VALIGN="middle">
35                                         LDR
36                                 </th>
37                                 <td class='marc_tag_data' COLSPAN='3'>
38                                         <xsl:value-of select="marc:leader"/>
39                                 </td>
40                         </tr>
41                         <xsl:apply-templates select="marc:datafield|marc:controlfield"/>
42                 </table>
43         </xsl:template>
44         
45         <xsl:template match="marc:controlfield">
46                 <tr class='marc_tag_row'>
47                         <th class='marc_tag_col' NOWRAP="TRUE" ALIGN="RIGHT" VALIGN="middle">
48                                 <xsl:value-of select="@tag"/>
49                         </th>
50                         <td class='marc_tag_data' COLSPAN='3'>
51                                 <xsl:value-of select="."/>
52                         </td>
53                 </tr>
54         </xsl:template>
55         
56         <xsl:template match="marc:datafield">
57                 <tr class='marc_tag_row'>
58                         <th class='marc_tag_col' NOWRAP="TRUE" ALIGN="RIGHT" VALIGN="middle">
59                                 <xsl:value-of select="@tag"/>
60                         </th>
61                         <td class='marc_tag_ind'>
62                                 <xsl:value-of select="@ind1"/>
63                         </td>
64
65                         <td class='marc_tag_ind' style='border-left: 1px solid black; padding-left: 3px;'>
66                                 <xsl:value-of select="@ind2"/>
67                                 <span style='color:#FFF'>.</span> 
68                         </td>
69
70                         <td class='marc_subfields'>
71                                 <xsl:apply-templates select="marc:subfield"/>
72                         </td>
73                 </tr>
74         </xsl:template>
75         
76         <xsl:template match="marc:subfield">
77                 <span class='marc_subfield_code' > 
78                         &#8225;<xsl:value-of select="@code"/>
79                 </span><xsl:value-of select="."/>       
80         </xsl:template>
81
82 </xsl:stylesheet>
83
84 <!-- Stylus Studio meta-information - (c)1998-2002 eXcelon Corp.
85 <metaInformation>
86 <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"/>
87 </metaInformation>
88 -->