Revision 3763
Added by ben leinfelder almost 17 years ago
lib/style/common/browse.xsl | ||
---|---|---|
31 | 31 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
32 | 32 |
<xsl:output method="html"/> |
33 | 33 |
<xsl:param name="qformat">default</xsl:param> |
34 |
<xsl:param name="contextURL"/> |
|
35 |
<xsl:param name="cgi-prefix"/> |
|
34 | 36 |
<xsl:template match="/"> |
35 | 37 |
<html> |
36 | 38 |
<head> |
37 | 39 |
<link rel="stylesheet" type="text/css" |
38 |
href="./style/skins/{$qformat}/{$qformat}.css" />
|
|
40 |
href="{$contextURL}/style/skins/{$qformat}/{$qformat}.css" />
|
|
39 | 41 |
</head> |
40 | 42 |
|
41 | 43 |
<body> |
... | ... | |
62 | 64 |
</tr> |
63 | 65 |
<tr> |
64 | 66 |
<td align="right" valign="top" colspan="7"> |
65 |
<form action="./metacat" method="POST">
|
|
67 |
<form action="{$contextURL}/metacat" method="POST">
|
|
66 | 68 |
Data Search: <input type="text" name="anyfield" size="10" /> |
67 | 69 |
<input type="hidden" name="action" value="query" /> |
68 | 70 |
<input type="hidden" name="qformat" value="knb" /> |
... | ... | |
141 | 143 |
<xsl:template match="param[@name='keyword']"> |
142 | 144 |
<li> |
143 | 145 |
<a> |
144 |
<xsl:attribute name="href">./metacat?action=query&operator=INTERSECT&qformat=knb&returndoctype=eml://ecoinformatics.org/eml-2.0.1&returndoctype=eml://ecoinformatics.org/eml-2.0.0&returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN&returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN&returnfield=dataset/title&returnfield=citation/title&returnfield=software/title&returnfield=protocol/title&returnfield=keyword&returnfield=originator/individualName/surName&returnfield=creator/individualName/surName&returnfield=originator/organizationName&returnfield=creator/organizationName&keyword=<xsl:value-of select="."/></xsl:attribute>
|
|
146 |
<xsl:attribute name="href">{$contextURL}/metacat?action=query&operator=INTERSECT&qformat=knb&returndoctype=eml://ecoinformatics.org/eml-2.0.1&returndoctype=eml://ecoinformatics.org/eml-2.0.0&returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN&returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN&returnfield=dataset/title&returnfield=citation/title&returnfield=software/title&returnfield=protocol/title&returnfield=keyword&returnfield=originator/individualName/surName&returnfield=creator/individualName/surName&returnfield=originator/organizationName&returnfield=creator/organizationName&keyword=<xsl:value-of select="."/></xsl:attribute>
|
|
145 | 147 |
<xsl:value-of select="."/> |
146 | 148 |
</a> (<xsl:value-of select="count(//param[.=current()])"/>) |
147 | 149 |
</li> |
... | ... | |
150 | 152 |
<xsl:template match="param[@name='surName']"> |
151 | 153 |
<li> |
152 | 154 |
<a> |
153 |
<xsl:attribute name="href">./metacat?action=query&operator=INTERSECT&qformat=knb&returndoctype=eml://ecoinformatics.org/eml-2.0.0&returndoctype=eml://ecoinformatics.org/eml-2.0.1&returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN&returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN&returnfield=dataset/title&returnfield=citation/title&returnfield=software/title&returnfield=protocol/title&returnfield=keyword&returnfield=originator/individualName/surName&returnfield=creator/individualName/surName&returnfield=originator/organizationName&returnfield=creator/organizationName&surName=<xsl:value-of select="."/></xsl:attribute>
|
|
155 |
<xsl:attribute name="href">{$contextURL}/metacat?action=query&operator=INTERSECT&qformat=knb&returndoctype=eml://ecoinformatics.org/eml-2.0.0&returndoctype=eml://ecoinformatics.org/eml-2.0.1&returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN&returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN&returnfield=dataset/title&returnfield=citation/title&returnfield=software/title&returnfield=protocol/title&returnfield=keyword&returnfield=originator/individualName/surName&returnfield=creator/individualName/surName&returnfield=originator/organizationName&returnfield=creator/organizationName&surName=<xsl:value-of select="."/></xsl:attribute>
|
|
154 | 156 |
<xsl:value-of select="."/> |
155 | 157 |
</a> (<xsl:value-of select="count(//param[.=current()])"/>) |
156 | 158 |
</li> |
... | ... | |
159 | 161 |
<xsl:template match="param[@name='organizationName']"> |
160 | 162 |
<li> |
161 | 163 |
<a> |
162 |
<xsl:attribute name="href">./metacat?action=query&operator=INTERSECT&qformat=knb&returndoctype=eml://ecoinformatics.org/eml-2.0.0&returndoctype=eml://ecoinformatics.org/eml-2.0.1&returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN&returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN&returnfield=dataset/title&returnfield=citation/title&returnfield=software/title&returnfield=protocol/title&returnfield=keyword&returnfield=originator/individualName/surName&returnfield=creator/individualName/surName&returnfield=originator/organizationName&returnfield=creator/organizationName&organizationName=<xsl:value-of select="."/></xsl:attribute>
|
|
164 |
<xsl:attribute name="href">{$contextURL}/metacat?action=query&operator=INTERSECT&qformat=knb&returndoctype=eml://ecoinformatics.org/eml-2.0.0&returndoctype=eml://ecoinformatics.org/eml-2.0.1&returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN&returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN&returnfield=dataset/title&returnfield=citation/title&returnfield=software/title&returnfield=protocol/title&returnfield=keyword&returnfield=originator/individualName/surName&returnfield=creator/individualName/surName&returnfield=originator/organizationName&returnfield=creator/organizationName&organizationName=<xsl:value-of select="."/></xsl:attribute>
|
|
163 | 165 |
<xsl:value-of select="."/> |
164 | 166 |
</a> (<xsl:value-of select="count(//param[.=current()])"/>) |
165 | 167 |
</li> |
Also available in: Unified diff
use {$contextURL} param for absolute paths (instead of relative paths)
note: this file seems not to be used in metacat now.