Revision 4390
Added by ben leinfelder about 16 years ago
lib/style/skins/first/first-assessment-resultset.xsl | ||
---|---|---|
43 | 43 |
form_ref.docid.value=docid; |
44 | 44 |
form_ref.sessionid.value="]]><xsl:value-of select="$sessid" /><![CDATA["; |
45 | 45 |
form_ref.qformat.value="first"; |
46 |
form_ref.insertTemplate.value="1"; |
|
46 | 47 |
form_ref.submit(); |
47 | 48 |
} |
48 | 49 |
setSelect = function(form_ref, checkBoxName, checked) { |
... | ... | |
102 | 103 |
evalScripts: true, |
103 | 104 |
onSuccess: function(transport) { |
104 | 105 |
//alert('Cart changes saved: ' + operation); |
105 |
window.document.getElementById("iframeheaderclass").src=window.document.getElementById("iframeheaderclass").src;}, |
|
106 |
//if we are in the cart, we should refresh the entire page |
|
107 |
if (document.getElementById("ajaxCartResults")) { |
|
108 |
window.location.reload(); |
|
109 |
} |
|
110 |
else { |
|
111 |
window.document.getElementById("iframeheaderclass").src=window.document.getElementById("iframeheaderclass").src; |
|
112 |
} |
|
113 |
}, |
|
106 | 114 |
onFailure: function(transport) {alert('failure making ajax call');} |
107 | 115 |
}); |
108 | 116 |
|
... | ... | |
143 | 151 |
|
144 | 152 |
} |
145 | 153 |
hideDiv = function(divId) { |
146 |
Effect.Fade(divId); |
|
154 |
new Effect.Fade(divId);
|
|
147 | 155 |
//Element.hide(divId); |
148 | 156 |
} |
149 | 157 |
showDiv = function(divId) { |
150 |
Effect.Appear(divId) |
|
158 |
new Effect.Appear(divId)
|
|
151 | 159 |
//Element.show(divId); |
152 | 160 |
} |
153 | 161 |
]]> |
154 | 162 |
</script> |
155 | 163 |
|
156 |
<p class="emphasis"><xsl:number value="count(resultset/document)" /> found</p>
|
|
164 |
<p class="emphasis">Assessments found: <xsl:number value="count(resultset/document)" /></p>
|
|
157 | 165 |
|
158 | 166 |
<!-- This tests to see if there are returned documents, |
159 | 167 |
if there are not then don't show the query results --> |
160 | 168 |
|
161 | 169 |
<xsl:if test="count(resultset/document) > 0"> |
162 |
|
|
163 |
Download Selected as: |
|
164 |
<a> |
|
165 |
<xsl:attribute name="href">javascript:downloadMergedResponseData('assessmentForm', 'fieldForm')</xsl:attribute> |
|
166 |
<xsl:text>Datafile (.csv)</xsl:text> |
|
167 |
</a> |
|
168 |
<br/> |
|
169 |
Edit Cart: |
|
170 |
<a> |
|
171 |
<xsl:attribute name="href">javascript:editCart('assessmentForm', 'add')</xsl:attribute> |
|
172 |
<xsl:text>Add Selected</xsl:text> |
|
173 |
</a> |
|
174 |
/ |
|
175 |
<a> |
|
176 |
<xsl:attribute name="href">javascript:editCart('assessmentForm', 'remove')</xsl:attribute> |
|
177 |
<xsl:text>Remove Selected</xsl:text> |
|
178 |
</a> |
|
179 |
|
|
180 |
<br/> |
|
181 |
|
|
170 |
<p> |
|
171 |
Download Selected (.csv): |
|
172 |
<a> |
|
173 |
<xsl:attribute name="href">javascript:{}</xsl:attribute> |
|
174 |
<xsl:attribute name="onclick">javascript:downloadMergedResponseData('assessmentForm', 'fieldForm')</xsl:attribute> |
|
175 |
<img border="none"> |
|
176 |
<xsl:attribute name="src"> |
|
177 |
<xsl:value-of select="$contextURL" /> |
|
178 |
<xsl:text>/style/images/page_white_put.png</xsl:text> |
|
179 |
</xsl:attribute> |
|
180 |
</img> |
|
181 |
</a> |
|
182 |
</p> |
|
183 |
<p> |
|
184 |
Edit Selected: |
|
185 |
<a> |
|
186 |
<xsl:attribute name="href">javascript:{}</xsl:attribute> |
|
187 |
<xsl:attribute name="onclick">javascript:editCart('assessmentForm', 'add')</xsl:attribute> |
|
188 |
<xsl:text>+</xsl:text> |
|
189 |
</a> |
|
190 |
/ |
|
191 |
<a> |
|
192 |
<xsl:attribute name="href">javascript:{}</xsl:attribute> |
|
193 |
<xsl:attribute name="onclick">javascript:editCart('assessmentForm', 'remove')</xsl:attribute> |
|
194 |
<!-- <xsl:text>Remove </xsl:text> --> |
|
195 |
<img border="none"> |
|
196 |
<xsl:attribute name="src"> |
|
197 |
<xsl:value-of select="$contextURL" /> |
|
198 |
<xsl:text>/style/images/delete.gif</xsl:text> |
|
199 |
</xsl:attribute> |
|
200 |
</img> |
|
201 |
</a> |
|
202 |
</p> |
|
203 |
|
|
182 | 204 |
<!-- for reading the assessment details --> |
183 | 205 |
<form action="{$contextURL}/metacat" method="POST" id="readForm" name="readForm" > |
184 | 206 |
<input type="hidden" name="qformat" value="first" /> |
... | ... | |
321 | 343 |
</tr> |
322 | 344 |
|
323 | 345 |
<tr> |
324 |
<td> |
|
325 |
</td> |
|
346 |
<td width="30"> </td> |
|
326 | 347 |
<td colspan="5"> |
327 |
Details (
|
|
348 |
Details |
|
328 | 349 |
<a> |
329 | 350 |
<xsl:attribute name="href">javascript:read('readForm', '<xsl:value-of select="./docid" />', '<xsl:value-of select="$divId" />')</xsl:attribute> |
330 |
<xsl:text>+</xsl:text> |
|
351 |
<img border="none"> |
|
352 |
<xsl:attribute name="src"> |
|
353 |
<xsl:value-of select="$contextURL" /> |
|
354 |
<xsl:text>/style/images/next.gif</xsl:text> |
|
355 |
</xsl:attribute> |
|
356 |
</img> |
|
331 | 357 |
</a> |
332 | 358 |
/ |
333 | 359 |
<a> |
334 | 360 |
<xsl:attribute name="href">javascript:hideDiv('<xsl:value-of select="$divId" />')</xsl:attribute> |
335 |
<xsl:text>-</xsl:text> |
|
361 |
<img border="none"> |
|
362 |
<xsl:attribute name="src"> |
|
363 |
<xsl:value-of select="$contextURL" /> |
|
364 |
<xsl:text>/style/images/previous.gif</xsl:text> |
|
365 |
</xsl:attribute> |
|
366 |
</img> |
|
336 | 367 |
</a> |
337 |
) |
|
368 |
|
|
338 | 369 |
</td> |
339 | 370 |
</tr> |
340 | 371 |
|
341 | 372 |
<tr> |
342 |
<td colspan="6"> |
|
373 |
<td> </td> |
|
374 |
<td colspan="5"> |
|
343 | 375 |
<div style="display:none;"> |
344 | 376 |
<xsl:attribute name="id"> |
345 | 377 |
<xsl:value-of select="$divId" /> |
Also available in: Unified diff
refresh the entire cart view when modifications are made.
add icons to many of the control features (download, remove...)