Revision 5672
Added by ben leinfelder over 13 years ago
resultset.xsl | ||
---|---|---|
49 | 49 |
src="/knb/style/skins/{$qformat}/{$qformat}.js" /> |
50 | 50 |
<script language="Javascript" type="text/JavaScript" |
51 | 51 |
src="/knb/style/common/branding.js" /> |
52 |
<script language="JavaScript"> |
|
53 |
<![CDATA[ |
|
54 |
function submitform(action,form_ref) { |
|
55 |
form_ref.action.value=action; |
|
56 |
form_ref.sessionid.value="]]><xsl:value-of select="$sessid" /><![CDATA["; |
|
57 |
form_ref.qformat.value="]]><xsl:value-of select="$qformat" /><![CDATA["; |
|
58 |
form_ref.submit(); |
|
59 |
} |
|
60 |
]]> |
|
61 |
</script> |
|
62 | 52 |
</head> |
63 | 53 |
|
64 | 54 |
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> |
... | ... | |
140 | 130 |
</xsl:attribute> |
141 | 131 |
|
142 | 132 |
<td class="text_plain"> |
143 |
<form action="/knb/metacat" |
|
144 |
method="POST"> |
|
145 |
<xsl:attribute name="name"> |
|
146 |
<xsl:value-of select="translate(./docid, '()-.', '____')" /> |
|
133 |
<a> |
|
134 |
<xsl:attribute name="href"> |
|
135 |
<xsl:value-of select="$tripleURI"/><xsl:value-of select="./docid"/> |
|
147 | 136 |
</xsl:attribute> |
148 |
|
|
149 |
<input type="hidden" |
|
150 |
name="qformat" /> |
|
151 |
<input type="hidden" |
|
152 |
name="sessionid" /> |
|
153 |
<input type="hidden" |
|
154 |
name="action" value="read" /> |
|
155 |
<input type="hidden" |
|
156 |
name="docid"> |
|
157 |
<xsl:attribute name="value"> |
|
158 |
<xsl:value-of select="./docid" /> |
|
159 |
</xsl:attribute> |
|
160 |
</input> |
|
161 |
<a> |
|
162 |
<xsl:attribute name="href">javascript:submitform('read',document.<xsl:value-of select="translate(./docid, '()-.', '____')" />)</xsl:attribute> |
|
163 |
<b> |
|
164 |
<xsl:text>» </xsl:text> |
|
165 |
<xsl:value-of select="./param[@name='dataset/title']"/> |
|
166 |
</b> |
|
167 |
</a> |
|
168 |
|
|
169 |
<pre>ID: <xsl:value-of select="./docid" /></pre> |
|
170 |
|
|
171 |
</form> |
|
137 |
<b> |
|
138 |
<xsl:text>» </xsl:text> |
|
139 |
<xsl:value-of select="./param[@name='dataset/title']"/> |
|
140 |
</b> |
|
141 |
</a> |
|
172 | 142 |
|
143 |
<pre>ID: <xsl:value-of select="./docid" /></pre> |
|
144 |
|
|
173 | 145 |
<!-- render the annotation --> |
174 |
<xsl:for-each select="./*[local-name()='annotation']"> |
|
175 |
<xsl:call-template name="annotation"> |
|
176 |
<xsl:with-param name="showAll" select="false"/> |
|
177 |
</xsl:call-template> |
|
178 |
</xsl:for-each> |
|
179 |
|
|
180 |
|
|
146 |
<xsl:for-each select="./*[local-name()='annotation']"> |
|
147 |
<xsl:call-template name="annotation"> |
|
148 |
<xsl:with-param name="showAll" select="false"/> |
|
149 |
</xsl:call-template> |
|
150 |
</xsl:for-each> |
|
151 |
|
|
181 | 152 |
</td> |
182 | 153 |
|
183 | 154 |
<td class="text_plain"> |
... | ... | |
242 | 213 |
|
243 | 214 |
<td class="text_plain"> |
244 | 215 |
<a> |
245 |
<xsl:attribute name="href">javascript:submitform('read',document.<xsl:value-of select="translate(./docid, '()-.', '____')" />)</xsl:attribute> |
|
216 |
<xsl:attribute name="href"> |
|
217 |
<xsl:value-of select="$tripleURI"/><xsl:value-of select="./docid"/> |
|
218 |
</xsl:attribute> |
|
246 | 219 |
<xsl:text>» </xsl:text> |
247 | 220 |
<xsl:value-of select="./docid" /> |
248 | 221 |
</a> |
249 |
<form action="{$contextURL}/metacat" method="POST"> |
|
250 |
<xsl:attribute name="name"> |
|
251 |
<xsl:value-of select="translate(./docid, '()-.', '____')" /> |
|
252 |
</xsl:attribute> |
|
253 |
<input type="hidden" name="qformat" value="{$qformat}"/> |
|
254 |
<input type="hidden" name="sessionid" /> |
|
255 |
<input type="hidden" name="action" value="read" /> |
|
256 |
<input type="hidden" name="docid"> |
|
257 |
<xsl:attribute name="value"> |
|
258 |
<xsl:value-of select="./docid" /> |
|
259 |
</xsl:attribute> |
|
260 |
</input> |
|
261 |
</form> |
|
262 | 222 |
</td> |
263 | 223 |
|
264 | 224 |
<td class="text_plain"> |
265 | 225 |
<a> |
266 |
<xsl:attribute name="href">javascript:submitform('read',document.<xsl:value-of select="concat(translate(./param[@name='@emlPackage'], '()-.', '____'), '_annotation')" />)</xsl:attribute> |
|
226 |
<xsl:attribute name="href"> |
|
227 |
<xsl:value-of select="$tripleURI"/><xsl:value-of select="./param[@name='@emlPackage']"/> |
|
228 |
</xsl:attribute> |
|
267 | 229 |
<xsl:value-of select="./param[@name='@emlPackage']"/> |
268 | 230 |
</a> |
269 |
|
|
270 |
<form action="{$contextURL}/metacat" method="POST"> |
|
271 |
<xsl:attribute name="name"> |
|
272 |
<xsl:value-of select="concat(translate(./param[@name='@emlPackage'], '()-.', '____'), '_annotation')" /> |
|
273 |
</xsl:attribute> |
|
274 |
<input type="hidden" name="qformat" value="{$qformat}"/> |
|
275 |
<input type="hidden" name="sessionid" /> |
|
276 |
<input type="hidden" name="action" value="read" /> |
|
277 |
<input type="hidden" name="docid"> |
|
278 |
<xsl:attribute name="value"> |
|
279 |
<xsl:value-of select="./param[@name='@emlPackage']"/> |
|
280 |
</xsl:attribute> |
|
281 |
</input> |
|
282 |
</form> |
|
283 |
|
|
284 | 231 |
</td> |
285 | 232 |
|
286 | 233 |
<td class="text_plain"> |
Also available in: Unified diff
-use a tab for search options
-search results are in their own container now
-jquery ui and semtools css share same corner radius
-removed form-based "link" in resultset xsl