Revision 4379
Added by ben leinfelder about 16 years ago
lib/style/skins/first/first-assessment-resultset.xsl | ||
---|---|---|
94 | 94 |
metacatURL, |
95 | 95 |
{ method: 'post', |
96 | 96 |
parameters: Form.serialize(submitFormObj), |
97 |
evalScripts: true, |
|
97 |
evalScripts: true, |
|
98 |
onSuccess: function(transport) {alert('Cart changes saved: ' + operation); window.document.getElementById("iframeheaderclass").src=window.document.getElementById("iframeheaderclass").src;}, |
|
98 | 99 |
onFailure: function(transport) {alert('failure making ajax call');} |
99 | 100 |
}); |
100 | 101 |
|
101 | 102 |
} |
103 |
read = function(formId, docid, divId) { |
|
104 |
|
|
105 |
//alert("divId: " + divId); |
|
106 |
|
|
107 |
var metacatURL = "]]><xsl:value-of select="$contextURL" /><![CDATA[/metacat"; |
|
108 |
|
|
109 |
var submitFormObj = document.getElementById(formId); |
|
110 |
submitFormObj.qformat.value = 'first'; |
|
111 |
submitFormObj.action.value = 'read'; |
|
112 |
submitFormObj.docid.value = docid; |
|
113 |
submitFormObj.insertTemplate.value = '0'; |
|
114 |
|
|
115 |
var myUpdate = new Ajax.Updater( |
|
116 |
divId, |
|
117 |
metacatURL, |
|
118 |
{ method: 'post', |
|
119 |
parameters: Form.serialize(submitFormObj), |
|
120 |
evalScripts: true, |
|
121 |
onSuccess: function(transport) {showDiv(divId); }, |
|
122 |
onFailure: function(transport) {alert('failure making ajax call');} |
|
123 |
}); |
|
124 |
|
|
125 |
} |
|
102 | 126 |
areItemsSelected = function(checkBoxName) { |
103 | 127 |
var checkBoxes = document.getElementsByName(checkBoxName); |
104 | 128 |
|
... | ... | |
114 | 138 |
hideDiv = function(divId) { |
115 | 139 |
Element.hide(divId); |
116 | 140 |
} |
141 |
showDiv = function(divId) { |
|
142 |
Element.show(divId); |
|
143 |
} |
|
117 | 144 |
]]> |
118 | 145 |
</script> |
119 | 146 |
|
... | ... | |
156 | 183 |
</input> |
157 | 184 |
<input type="hidden" name="action" value="read" /> |
158 | 185 |
<input type="hidden" name="docid" /> |
186 |
<input type="hidden" name="insertTemplate" value="1"/> |
|
159 | 187 |
</form> |
160 | 188 |
|
161 | 189 |
<!-- for managing the ajax actions --> |
... | ... | |
245 | 273 |
</xsl:for-each> |
246 | 274 |
|
247 | 275 |
<br/> |
248 |
|
|
249 |
<div> |
|
250 |
<xsl:attribute name="id"> |
|
251 |
<xsl:value-of select="$divId" /> |
|
252 |
</xsl:attribute> |
|
253 |
</div> |
|
276 |
|
|
254 | 277 |
</td> |
255 | 278 |
|
256 | 279 |
<td class="text_plain"> |
... | ... | |
290 | 313 |
</td> |
291 | 314 |
|
292 | 315 |
</tr> |
316 |
|
|
317 |
<tr> |
|
318 |
<td colspan="6"> |
|
319 |
<a> |
|
320 |
<xsl:attribute name="href">#</xsl:attribute> |
|
321 |
<xsl:attribute name="onClick">javascript:read('readForm', '<xsl:value-of select="./docid" />', '<xsl:value-of select="$divId" />')</xsl:attribute> |
|
322 |
<xsl:text>View</xsl:text> |
|
323 |
</a> |
|
324 |
/ |
|
325 |
<a> |
|
326 |
<xsl:attribute name="href">#</xsl:attribute> |
|
327 |
<xsl:attribute name="onClick">javascript:hideDiv('<xsl:value-of select="$divId" />')</xsl:attribute> |
|
328 |
<xsl:text>Hide</xsl:text> |
|
329 |
</a> |
|
330 |
|
|
331 |
<div> |
|
332 |
<xsl:attribute name="id"> |
|
333 |
<xsl:value-of select="$divId" /> |
|
334 |
</xsl:attribute> |
|
335 |
Assessment details... |
|
336 |
</div> |
|
337 |
</td> |
|
338 |
</tr> |
|
339 |
|
|
293 | 340 |
<tr class="searchresultsdivider"> |
294 | 341 |
<td colspan="6"> |
295 | 342 |
<img |
Also available in: Unified diff
[optionally] view assessment details from within results set