Merge branch 'master' of git.evergreen-ils.org:Evergreen into template-toolkit-opac
[working/Evergreen.git] / Open-ILS / xsl / oilsMARC21slim2HTMLslim.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="text"/>
4         
5         <xsl:template match="/">
6         <div>
7             <xsl:apply-templates/>
8         </div>
9         </xsl:template>
10         
11         <xsl:template match="marc:record">
12                 <table class='marc_table'>
13                         <tr class='marc_tag_row'>
14                                 <th class='marc_tag_col' NOWRAP="TRUE" ALIGN="RIGHT" VALIGN="middle">
15                                         LDR
16                                 </th>
17                                 <td class='marc_tag_data' COLSPAN='3'>
18                                         <xsl:value-of select="marc:leader"/>
19                                 </td>
20                         </tr>
21                         <xsl:apply-templates select="marc:datafield|marc:controlfield"/>
22                 </table>
23         </xsl:template>
24         
25         <xsl:template match="marc:controlfield">
26                 <tr class='marc_tag_row'>
27                         <th class='marc_tag_col' NOWRAP="TRUE" ALIGN="RIGHT" VALIGN="middle">
28                                 <xsl:value-of select="@tag"/>
29                         </th>
30                         <td class='marc_tag_data' COLSPAN='3'>
31                                 <xsl:value-of select="."/>
32                         </td>
33                 </tr>
34         </xsl:template>
35         
36         <xsl:template match="marc:datafield">
37                 <tr class='marc_tag_row'>
38                         <th class='marc_tag_col' NOWRAP="TRUE" ALIGN="RIGHT" VALIGN="middle">
39                                 <xsl:value-of select="@tag"/>
40                         </th>
41                         <td class='marc_tag_ind'>
42                                 <xsl:value-of select="@ind1"/>
43                         </td>
44
45                         <td class='marc_tag_ind' style='border-left: 1px solid #A0A0A0; padding-left: 3px;'>
46                                 <xsl:value-of select="@ind2"/>
47                                 <span style='color:#FFF'>.</span> 
48                         </td>
49
50                         <td class='marc_subfields'>
51                                 <xsl:apply-templates select="marc:subfield"/>
52                         </td>
53                 </tr>
54         </xsl:template>
55         
56         <xsl:template match="marc:subfield">
57                 <span style='color: blue;padding-left: 5px;padding-right: 5px;'> 
58                         &#8225;<xsl:value-of select="@code"/>
59                 </span><xsl:value-of select="."/>       
60         </xsl:template>
61
62 </xsl:stylesheet>
63
64 <!-- Stylus Studio meta-information - (c)1998-2002 eXcelon Corp.
65 <metaInformation>
66 <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"/>
67 </metaInformation>
68 -->