Revision 4012
Added by berkley over 16 years ago
resultset.xsl | ||
---|---|---|
5 | 5 |
<table> |
6 | 6 |
<xsl:apply-templates select="//document"/> |
7 | 7 |
</table> |
8 |
<!-- page navigation--> |
|
8 | 9 |
<div class="resultnavbar"> |
9 | 10 |
<!--previous--> |
10 | 11 |
<xsl:choose> |
11 | 12 |
<xsl:when test="//pagestart = 0"> |
12 |
<
|
|
13 |
← previous
|
|
13 | 14 |
</xsl:when> |
14 | 15 |
<xsl:otherwise> |
15 | 16 |
<a> |
16 | 17 |
<xsl:attribute name="href"> |
17 | 18 |
javascript:reloadSearchContent('/sms/metacat?action=query&anytext=%25&qformat=sms&pagesize=10&pagestart=<xsl:value-of select="//previouspage"/>'); |
18 | 19 |
</xsl:attribute> |
19 |
<
|
|
20 |
← previous
|
|
20 | 21 |
</a> |
21 | 22 |
</xsl:otherwise> |
22 | 23 |
</xsl:choose> |
24 |
|
|
25 |
    |
|
23 | 26 |
|
24 |
<!--current page of num pages--> |
|
25 | 27 |
<!--next--> |
26 | 28 |
<xsl:choose> |
27 | 29 |
<xsl:when test="//lastpage = 'true'"> |
28 |
>
|
|
30 |
next →
|
|
29 | 31 |
</xsl:when> |
30 | 32 |
<xsl:otherwise> |
31 | 33 |
<a> |
32 | 34 |
<xsl:attribute name="href"> |
33 | 35 |
javascript:reloadSearchContent('/sms/metacat?action=query&anytext=%25&qformat=sms&pagesize=10&pagestart=<xsl:value-of select="//nextpage"/>'); |
34 | 36 |
</xsl:attribute> |
35 |
>
|
|
37 |
next →
|
|
36 | 38 |
</a> |
37 | 39 |
</xsl:otherwise> |
38 | 40 |
</xsl:choose> |
39 | 41 |
</div> |
40 | 42 |
</xsl:template> |
41 | 43 |
|
44 |
<!--search results--> |
|
42 | 45 |
<xsl:template match="document"> |
43 | 46 |
<tr> |
44 | 47 |
<td> |
... | ... | |
54 | 57 |
<xsl:when test="doctype='eml://ecoinformatics.org/eml-2.0.1'"> |
55 | 58 |
EML 2.0.1 Document |
56 | 59 |
</xsl:when> |
60 |
<xsl:when test="doctype='rdf:RDF'"> |
|
61 |
RDF Ontology |
|
62 |
</xsl:when> |
|
63 |
<!--add more doctypes here--> |
|
57 | 64 |
<xsl:otherwise> |
58 | 65 |
Unknown Document Type |
59 | 66 |
</xsl:otherwise> |
Also available in: Unified diff
updated stylesheets for ontologies