1
|
<?xml version="1.0"?>
|
2
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
3
|
|
4
|
<xsl:template match="/">
|
5
|
<table>
|
6
|
<xsl:apply-templates select="//document"/>
|
7
|
</table>
|
8
|
<div class="resultnavbar">
|
9
|
<!--previous-->
|
10
|
<xsl:choose>
|
11
|
<xsl:when test="//pagestart = 0">
|
12
|
<
|
13
|
</xsl:when>
|
14
|
<xsl:otherwise>
|
15
|
<a>
|
16
|
<xsl:attribute name="href">
|
17
|
javascript:reloadSearchContent('/sms/metacat?action=query&anytext=%25&qformat=sms&pagesize=10&pagestart=<xsl:value-of select="//previouspage"/>');
|
18
|
</xsl:attribute>
|
19
|
<
|
20
|
</a>
|
21
|
</xsl:otherwise>
|
22
|
</xsl:choose>
|
23
|
|
24
|
<!--current page of num pages-->
|
25
|
<!--next-->
|
26
|
<xsl:choose>
|
27
|
<xsl:when test="//lastpage = 'true'">
|
28
|
>
|
29
|
</xsl:when>
|
30
|
<xsl:otherwise>
|
31
|
<a>
|
32
|
<xsl:attribute name="href">
|
33
|
javascript:reloadSearchContent('/sms/metacat?action=query&anytext=%25&qformat=sms&pagesize=10&pagestart=<xsl:value-of select="//nextpage"/>');
|
34
|
</xsl:attribute>
|
35
|
>
|
36
|
</a>
|
37
|
</xsl:otherwise>
|
38
|
</xsl:choose>
|
39
|
</div>
|
40
|
</xsl:template>
|
41
|
|
42
|
<xsl:template match="document">
|
43
|
<tr>
|
44
|
<td>
|
45
|
<a>
|
46
|
<xsl:attribute name="href">
|
47
|
/sms/metacat?action=read&qformat=sms&docid=<xsl:value-of select="docid"/>
|
48
|
</xsl:attribute>
|
49
|
<xsl:value-of select="docid"/>
|
50
|
</a>
|
51
|
</td>
|
52
|
<td>
|
53
|
<xsl:choose>
|
54
|
<xsl:when test="doctype='eml://ecoinformatics.org/eml-2.0.1'">
|
55
|
EML 2.0.1 Document
|
56
|
</xsl:when>
|
57
|
<xsl:otherwise>
|
58
|
Unknown Document Type
|
59
|
</xsl:otherwise>
|
60
|
</xsl:choose>
|
61
|
</td>
|
62
|
</tr>
|
63
|
</xsl:template>
|
64
|
|
65
|
|
66
|
|
67
|
|
68
|
</xsl:stylesheet>
|