]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xsl/oilsMARC21slim2HTML.xsl
our stylesheet for moving from marc xml to html
[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                                 <link href='/css/opac_marc.css' rel='stylesheet' type='text/css'></link>
9                         </head>
10                         <xsl:apply-templates/>
11                 </html>
12         </xsl:template>
13         
14         <xsl:template match="marc:record">
15                 <table class='marc_table'>
16                         <tr class='marc_tag_row'>
17                                 <th class='marc_tag_col' NOWRAP="TRUE" ALIGN="RIGHT" VALIGN="TOP">
18                                         LDR
19                                 </th>
20                                 <td class='marc_tag_data' COLSPAN='3'>
21                                         <xsl:value-of select="marc:leader"/>
22                                 </td>
23                         </tr>
24                         <xsl:apply-templates select="marc:datafield|marc:controlfield"/>
25                 </table>
26         </xsl:template>
27         
28         <xsl:template match="marc:controlfield">
29                 <tr class='marc_tag_row'>
30                         <th class='marc_tag_col' NOWRAP="TRUE" ALIGN="RIGHT" VALIGN="TOP">
31                                 <xsl:value-of select="@tag"/>
32                         </th>
33                         <td class='marc_tag_data' COLSPAN='3'>
34                                 <xsl:value-of select="."/>
35                         </td>
36                 </tr>
37         </xsl:template>
38         
39         <xsl:template match="marc:datafield">
40                 <tr class='marc_tag_row'>
41                         <th class='marc_tag_col' NOWRAP="TRUE" ALIGN="RIGHT" VALIGN="TOP">
42                                 <xsl:value-of select="@tag"/>
43                         </th>
44                         <td class='marc_tag_ind'>
45                                 <xsl:value-of select="@ind1"/>
46                         </td>
47
48                         <td class='marc_tag_ind' style='border-left: 1px solid black'>
49                                 <xsl:value-of select="@ind2"/>
50                                 <span style='color:#FFF'>.</span> 
51                         </td>
52
53                         <td class='marc_subfields'>
54                                 <xsl:apply-templates select="marc:subfield"/>
55                         </td>
56                 </tr>
57         </xsl:template>
58         
59         <xsl:template match="marc:subfield">
60                 <span class='marc_subfield_code'>&#8225;<xsl:value-of select="@code"/></span><xsl:value-of select="."/> 
61         </xsl:template>
62
63 </xsl:stylesheet>
64
65 <!-- Stylus Studio meta-information - (c)1998-2002 eXcelon Corp.
66 <metaInformation>
67 <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"/>
68 </metaInformation>
69 -->