]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xsl/CNBrowse2HTML.xsl
removing underline from next/prev links because it has never
[Evergreen.git] / Open-ILS / xsl / CNBrowse2HTML.xsl
1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2   
3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4   xmlns="http://www.w3.org/1999/xhtml"
5   xmlns:xhtml="http://www.w3.org/1999/xhtml"
6   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7   xmlns:marc="http://www.loc.gov/MARC21/slim"
8   xmlns:hold="http://open-ils.org/spec/holdings/v1"
9   xmlns:act='http://open-ils.org/spec/actors/v1'
10   version="1.0">
11   <xsl:output method="html" doctype-public="-//W3C/DTD HTML 4.01 Transitional//EN" doctype-system="http://www.w3.org/TR/html4/strict.dtd" />    
12   <xsl:template match="/">
13      <html>
14        <head>
15          <meta http-equiv="Content-Type" content="text/html" charset="utf-8"/>
16        </head>
17        <body>
18         <span>
19          <a>
20           <xsl:attribute name="href">
21            <xsl:value-of select="$prev"/>
22           </xsl:attribute>
23           <xsl:text>Previous</xsl:text>
24          </a>
25          <xsl:text> -- </xsl:text>
26          <a>
27           <xsl:attribute name="href">
28            <xsl:value-of select="$next"/>
29           </xsl:attribute>
30           <xsl:text>Next</xsl:text>
31          </a>
32         </span>
33         <hr/>
34         <xsl:apply-templates select="//hold:volume"/>
35         <hr/>
36         <span>
37          <a>
38           <xsl:attribute name="href">
39            <xsl:value-of select="$prev"/>
40           </xsl:attribute>
41           <xsl:text>Previous</xsl:text>
42          </a>
43          <xsl:text> -- </xsl:text>
44          <a>
45           <xsl:attribute name="href">
46            <xsl:value-of select="$next"/>
47           </xsl:attribute>
48           <xsl:text>Next</xsl:text>
49          </a>
50         </span>
51        </body>
52      </html>
53   </xsl:template>
54
55   <xsl:template match="hold:volume">
56    <div style="border:solid #999999 1px;">
57     <span>
58      <dl>
59       <xsl:value-of select="@label"/>
60       <dd><xsl:apply-templates select="marc:record"/></dd>
61       <dd><xsl:value-of select="act:owning_lib/@name"/></dd>
62      </dl>
63     </span>
64    </div>
65   </xsl:template>
66
67   <xsl:template match="marc:record">
68    <a>
69     <xsl:attribute name="href">
70      <xsl:value-of select="concat('/opac/extras/unapi?format=htmlholdings-full;id=',@id)"/>
71     </xsl:attribute>
72     <xsl:value-of select="marc:datafield[@tag='245']/marc:subfield[@code='a']"/>
73    </a>
74    <xsl:text> By </xsl:text>
75    <xsl:value-of select="marc:datafield[@tag='100']/marc:subfield[@code='a']"/>
76   </xsl:template>
77
78 </xsl:stylesheet>