Revision 4387
Added by ben leinfelder almost 16 years ago
first-assessment-resultset.xsl | ||
---|---|---|
58 | 58 |
</script> |
59 | 59 |
<script type="text/javascript" language="Javascript"> |
60 | 60 |
<![CDATA[ |
61 |
downloadMergedResponseData = function(formId) { |
|
61 |
downloadMergedResponseData = function(formId, fieldFormId) {
|
|
62 | 62 |
|
63 | 63 |
if (!areItemsSelected('docid')) { |
64 | 64 |
alert("Please select at least one dataset"); |
... | ... | |
73 | 73 |
submitFormObj.qformat.value = 'csv'; |
74 | 74 |
submitFormObj.action.value = 'dataquery'; |
75 | 75 |
|
76 |
multipleAssessmentSearch(submitFormObj); |
|
76 |
//the form that holds the metadata field mappings - but in the header! |
|
77 |
var fieldFormObj = |
|
78 |
window.document.getElementById("iframeheaderclass").contentDocument.getElementById(fieldFormId); |
|
79 |
//alert("fieldFormObj: " + fieldFormObj); |
|
77 | 80 |
|
81 |
multipleAssessmentSearch(submitFormObj, fieldFormObj); |
|
82 |
|
|
78 | 83 |
submitFormObj.submit(); |
79 | 84 |
} |
80 | 85 |
editCart = function(formId, operation) { |
... | ... | |
154 | 159 |
Download Selected as: |
155 | 160 |
<a> |
156 | 161 |
<xsl:attribute name="href">#</xsl:attribute> |
157 |
<xsl:attribute name="onClick">javascript:downloadMergedResponseData('assessmentForm')</xsl:attribute> |
|
162 |
<xsl:attribute name="onClick">javascript:downloadMergedResponseData('assessmentForm', 'fieldForm')</xsl:attribute>
|
|
158 | 163 |
<xsl:text>Datafile (.csv)</xsl:text> |
159 | 164 |
</a> |
160 | 165 |
<br/> |
Also available in: Unified diff
can now select and save metadata fields from a document and use them when merging across documents in the "cart"