Revision 4971
Added by daigle almost 15 years ago
searchWorkflowRun.js | ||
---|---|---|
18 | 18 |
queryString += "<returnfield>/property[@name=\'WorkflowRun\']/property[@name=\'description\']/@value</returnfield>"; |
19 | 19 |
queryString += "<returnfield>/property[@name=\'WorkflowRun\']/property[@name=\'startTime\']/@value</returnfield>"; |
20 | 20 |
queryString += "<returnfield>/property[@name=\'WorkflowRun\']/property[@name=\'workflowLSID\']/@value</returnfield>"; |
21 |
queryString += "<returnfield>/property[@name=\'WorkflowRun\']/property[@name=\'status\']/@value</returnfield>";
|
|
21 |
queryString += "<returnfield>/property[@name=\'WorkflowRun\']/property[@name=\'tpcStatus\']/@value</returnfield>";
|
|
22 | 22 |
queryString += "<returnfield>/property[@name=\'WorkflowRun\']/property[@name=\'workflowName\']/@value</returnfield>"; |
23 | 23 |
queryString += "<returnfield>/property[@name=\'WorkflowRun\']/property[@name=\'pdfReport\']/@value</returnfield>"; |
24 | 24 |
queryString += "<returnfield>/property[@name=\'WorkflowRun\']/property[@name=\'htmlReport\']/@value</returnfield>"; |
... | ... | |
45 | 45 |
queryField.value = queryString; |
46 | 46 |
} |
47 | 47 |
|
48 |
/* |
|
49 |
* Generate individual query terms for all the search input fields in a search |
|
50 |
* form. There must be a case for each search field handle explicitly below. |
|
51 |
* This assumes: |
|
52 |
* -- search input fields have an ID that starts with sf- |
|
53 |
* -- if there is a search mode dropdown for an input field in the form, it's ID |
|
54 |
* should use the same convention as the input field, but start with sm- |
|
55 |
* (i.e. the search mode input for the sf-firstname input would be sm-firstname) |
|
56 |
*/ |
|
48 | 57 |
function getQueryTerm(sfElement) { |
49 | 58 |
var baseId = sfElement.id.substring(3, sfElement.id.length); |
50 | 59 |
var searchMode = "contains"; |
... | ... | |
94 | 103 |
pathExpr += "<value>workflowLSID</value>"; |
95 | 104 |
pathExpr += "<pathexpr>property/property/@name</pathexpr>"; |
96 | 105 |
pathExpr += "</queryterm>"; |
97 |
pathExpr += "<queryterm casesensitive='false' searchmode='" + searchMode + "'>"; |
|
98 |
pathExpr += "<value>" + sfElement.value + "</value>"; |
|
99 |
pathExpr += "<pathexpr>property/property/@value</pathexpr>"; |
|
100 |
pathExpr += "</queryterm>"; |
|
106 |
// pathExpr += "<queryterm casesensitive='false' searchmode='" + searchMode + "'>";
|
|
107 |
// pathExpr += "<value>" + sfElement.value + "</value>";
|
|
108 |
// pathExpr += "<pathexpr>property/property/@value</pathexpr>";
|
|
109 |
// pathExpr += "</queryterm>";
|
|
101 | 110 |
} else if (sfElement.name == 'workflow-run-id') { |
102 | 111 |
pathExpr += "<queryterm casesensitive='false' searchmode='" + searchMode + "'>"; |
103 | 112 |
pathExpr += "<value>" + sfElement.value + "</value>"; |
... | ... | |
114 | 123 |
return pathExpr; |
115 | 124 |
} |
116 | 125 |
|
117 |
function getResultsSection(url, formId, divId) { |
|
118 |
var submitResults = submitFormIntoDiv(url, formId, divId); |
|
119 |
} |
|
120 |
|
|
121 |
function showWorkflowRuns(workflowId, workflowRunPage) { |
|
122 |
url = document.URL + '/../' + workflowRunPage + '?workflowid=' + workflowId; |
|
123 |
//alert('new url: ' + url); |
|
124 |
window.location = url; |
|
125 |
} |
|
126 |
|
|
127 | 126 |
|
Also available in: Unified diff
Beef up comments