Revision 4976
Added by daigle about 15 years ago
searchWorkflowRun.js | ||
---|---|---|
23 | 23 |
queryString += "<returnfield>/property[@name=\'WorkflowRun\']/property[@name=\'pdfReport\']/@value</returnfield>"; |
24 | 24 |
queryString += "<returnfield>/property[@name=\'WorkflowRun\']/property[@name=\'htmlReport\']/@value</returnfield>"; |
25 | 25 |
queryString += "<returnfield>/property[@name=\'WorkflowRun\']/property[@name=\'karLSID\']/@value</returnfield>"; |
26 |
queryString += "<returnfield>/property[@name=\'WorkflowRun\']/property[@name=\'ReportInstance0\']/@value</returnfield>";
|
|
26 |
queryString += "<returnfield>/property[@name=\'WorkflowRun\']/property[@name=\'ReportInstance_pdf\']/@value</returnfield>";
|
|
27 | 27 |
|
28 | 28 |
queryString += "<querygroup operator='INTERSECT'>"; |
29 | 29 |
|
... | ... | |
103 | 103 |
pathExpr += "<value>workflowLSID</value>"; |
104 | 104 |
pathExpr += "<pathexpr>property/property/@name</pathexpr>"; |
105 | 105 |
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>"; |
|
106 |
pathExpr += "<queryterm casesensitive='false' searchmode='starts-with'>"; |
|
107 |
var workflowId = sfElement.value; |
|
108 |
var lastColonPos = workflowId.lastIndexOf(':'); |
|
109 |
var truncWorkflowId = workflowId.substring(0, lastColonPos); |
|
110 |
pathExpr += "<value>" + truncWorkflowId + "</value>"; |
|
111 |
pathExpr += "<pathexpr>property/property/@value</pathexpr>"; |
|
112 |
pathExpr += "</queryterm>"; |
|
110 | 113 |
} else if (sfElement.name == 'workflow-run-id') { |
111 | 114 |
pathExpr += "<queryterm casesensitive='false' searchmode='" + searchMode + "'>"; |
112 | 115 |
pathExpr += "<value>" + sfElement.value + "</value>"; |
Also available in: Unified diff
Beef up search. Change pdf report element name.