Revision 3764
Added by ben leinfelder over 16 years ago
lib/style/common/keywords-list.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" /> |
... | ... | |
119 | 121 |
<xsl:template match="param"> |
120 | 122 |
<li> |
121 | 123 |
<a> |
122 |
<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&keyword=<xsl:value-of select="."/></xsl:attribute>
|
|
124 |
<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&keyword=<xsl:value-of select="."/></xsl:attribute>
|
|
123 | 125 |
<xsl:value-of select="."/> |
124 | 126 |
</a> (<xsl:value-of select="count(//param[.=current()])"/>) |
125 | 127 |
</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.