Revision 5354
Added by Jing Tao almost 14 years ago
searchWorkflowRun.js | ||
---|---|---|
25 | 25 |
queryString += "<returnfield>/property[@class=\'org.kepler.util.WorkflowRun\']/property[@name=\'karLSID\']/@value</returnfield>"; |
26 | 26 |
queryString += "<returnfield>/property[@class=\'org.kepler.util.WorkflowRun\']/property[@name=\'ReportInstance_pdf\']/@value</returnfield>";*/ |
27 | 27 |
|
28 |
queryString += "<returndoctype>kar</returndoctype>"; |
|
29 |
queryString += "<returnfield>/kar/karEntry/karEntryXML/property[@name=\'WorkflowRun\']/property[@name=\'user\']/@value</returnfield>"; |
|
30 |
queryString += "<returnfield>/kar/karEntry/karEntryXML/property[@name=\'WorkflowRun\']/property[@name=\'description\']/@value</returnfield>"; |
|
31 |
queryString += "<returnfield>/kar/karEntry/karEntryXML/property[@name=\'WorkflowRun\']/property[@name=\'startTime\']/@value</returnfield>"; |
|
32 |
queryString += "<returnfield>/kar/karEntry/karEntryXML/property[@name=\'WorkflowRun\']/property[@name=\'workflowLSID\']/@value</returnfield>"; |
|
33 |
queryString += "<returnfield>/kar/karEntry/karEntryAttributes/tpcStatus</returnfield>"; |
|
34 |
queryString += "<returnfield>/kar/karEntry/karEntryXML/property[@name=\'WorkflowRun\']/property[@name=\'workflowName\']/@value</returnfield>"; |
|
35 |
queryString += "<returnfield>/kar/mainAttributes/lsid</returnfield>"; |
|
36 |
queryString += "<returnfield>/kar/karEntry/karEntryXML/property[@name=\'WorkflowRun\']/@class</returnfield>"; |
|
37 |
queryString += "<returnfield>/kar/karEntry/karEntryAttributes/Name</returnfield>"; |
|
28 |
/*queryString += "<returndoctype>kar</returndoctype>";*/ |
|
29 |
queryString += "<returndoctype>http://www.kepler-project.org/kar-2.0.0</returndoctype>"; |
|
30 |
queryString += "<returnfield>karEntry/karEntryXML/property[@name=\'WorkflowRun\']/property[@name=\'user\']/@value</returnfield>"; |
|
31 |
queryString += "<returnfield>karEntry/karEntryXML/property[@name=\'WorkflowRun\']/property[@name=\'description\']/@value</returnfield>"; |
|
32 |
queryString += "<returnfield>karEntry/karEntryXML/property[@name=\'WorkflowRun\']/property[@name=\'startTime\']/@value</returnfield>"; |
|
33 |
queryString += "<returnfield>karEntry/karEntryXML/property[@name=\'WorkflowRun\']/property[@name=\'workflowLSID\']/@value</returnfield>"; |
|
34 |
queryString += "<returnfield>karEntry/karEntryAttributes/tpcStatus</returnfield>"; |
|
35 |
queryString += "<returnfield>karEntry/karEntryXML/property[@name=\'WorkflowRun\']/property[@name=\'workflowName\']/@value</returnfield>"; |
|
36 |
queryString += "<returnfield>mainAttributes/lsid</returnfield>"; |
|
37 |
queryString += "<returnfield>karEntry/karEntryXML/property[@name=\'WorkflowRun\']/@class</returnfield>"; |
|
38 |
queryString += "<returnfield>karEntry/karEntryAttributes/Name</returnfield>"; |
|
38 | 39 |
|
39 | 40 |
queryString += "<querygroup operator='INTERSECT'>"; |
40 | 41 |
|
... | ... | |
78 | 79 |
pathExpr += "<queryterm casesensitive='false' searchmode='" + searchMode + "'>"; |
79 | 80 |
pathExpr += "<value>" + sfElement.value + "</value>"; |
80 | 81 |
/*pathExpr += "<pathexpr>entity/@name</pathexpr>";*/ |
81 |
pathExpr += "<pathexpr>/kar/karEntry/karEntryXML/entity/@name</pathexpr>";
|
|
82 |
pathExpr += "<pathexpr>karEntry/karEntryXML/entity/@name</pathexpr>"; |
|
82 | 83 |
pathExpr += "</queryterm>"; |
83 | 84 |
} else if (sfElement.name == 'keyword') { |
84 | 85 |
pathExpr += "<queryterm casesensitive='false' searchmode='" + searchMode + "'>"; |
85 | 86 |
pathExpr += "<value>" + sfElement.value + "</value>"; |
86 |
pathExpr += "<pathexpr>/kar/karEntry/karEntryXML/entity/property/@value</pathexpr>";
|
|
87 |
pathExpr += "<pathexpr>karEntry/karEntryXML/entity/property/@value</pathexpr>"; |
|
87 | 88 |
pathExpr += "</queryterm>"; |
88 | 89 |
} else if (sfElement.name == 'creator') { |
89 | 90 |
pathExpr += "<queryterm casesensitive='false' searchmode='" + searchMode + "'>"; |
90 | 91 |
pathExpr += "<value>" + sfElement.value + "</value>"; |
91 |
pathExpr += "<pathexpr>/kar/karEntry/karEntryXML/entity/property/property/configure</pathexpr>";
|
|
92 |
pathExpr += "<pathexpr>karEntry/karEntryXML/entity/property/property/configure</pathexpr>"; |
|
92 | 93 |
pathExpr += "</queryterm>"; |
93 | 94 |
} else if (sfElement.name == 'description') { |
94 | 95 |
pathExpr += "<queryterm casesensitive='false' searchmode='" + searchMode + "'>"; |
95 | 96 |
pathExpr += "<value>" + sfElement.value + "</value>"; |
96 |
pathExpr += "<pathexpr>/kar/karEntry/karEntryXML/entity/property/property/configure</pathexpr>";
|
|
97 |
pathExpr += "<pathexpr>karEntry/karEntryXML/entity/property/property/configure</pathexpr>"; |
|
97 | 98 |
pathExpr += "</queryterm>"; |
98 | 99 |
} else if (sfElement.name == 'date-created') { |
99 | 100 |
pathExpr += "<queryterm casesensitive='false' searchmode='" + searchMode + "'>"; |
100 | 101 |
pathExpr += "<value>" + sfElement.value + "</value>"; |
101 |
pathExpr += "<pathexpr>/kar/karEntry/karEntryXML/entity/property/property/configure</pathexpr>";
|
|
102 |
pathExpr += "<pathexpr>karEntry/karEntryXML/entity/property/property/configure</pathexpr>"; |
|
102 | 103 |
pathExpr += "</queryterm>"; |
103 | 104 |
} else if (sfElement.name == 'date-executed') { |
104 | 105 |
pathExpr += "<queryterm casesensitive='false' searchmode='" + searchMode + "'>"; |
105 | 106 |
pathExpr += "<value>" + sfElement.value + "</value>"; |
106 |
pathExpr += "<pathexpr>/kar/karEntry/karEntryXML/property/property/@value</pathexpr>";
|
|
107 |
pathExpr += "<pathexpr>karEntry/karEntryXML/property/property/@value</pathexpr>"; |
|
107 | 108 |
pathExpr += "</queryterm>"; |
108 | 109 |
} else if (sfElement.name == 'workflow-lsid') { |
109 | 110 |
pathExpr += "<queryterm casesensitive='false' searchmode='" + searchMode + "'>"; |
110 | 111 |
pathExpr += "<value>entityId</value>"; |
111 |
pathExpr += "<pathexpr>/kar/karEntry/karEntryXML/entity/property/@name</pathexpr>";
|
|
112 |
pathExpr += "<pathexpr>karEntry/karEntryXML/entity/property/@name</pathexpr>"; |
|
112 | 113 |
pathExpr += "</queryterm>"; |
113 | 114 |
pathExpr += "<queryterm casesensitive='false' searchmode='" + searchMode + "'>"; |
114 | 115 |
pathExpr += "<value>" + sfElement.value + "</value>"; |
115 |
pathExpr += "<pathexpr>/kar/karEntry/karEntryXML/entity/property/@value</pathexpr>";
|
|
116 |
pathExpr += "<pathexpr>karEntry/karEntryXML/entity/property/@value</pathexpr>"; |
|
116 | 117 |
pathExpr += "</queryterm>"; |
117 | 118 |
}else if (sfElement.name == 'workflow-run-lsid') { |
118 | 119 |
pathExpr += "<queryterm casesensitive='false' searchmode='" + searchMode + "'>"; |
119 | 120 |
pathExpr += "<value>" + sfElement.value + "</value>"; |
120 |
pathExpr += "<pathexpr>/kar/karEntry/karEntryXML/property/property/@value</pathexpr>";
|
|
121 |
pathExpr += "<pathexpr>karEntry/karEntryXML/property/property/@value</pathexpr>"; |
|
121 | 122 |
pathExpr += "</queryterm>"; |
122 | 123 |
}else if (sfElement.name == 'status') { |
123 | 124 |
pathExpr += "<queryterm casesensitive='false' searchmode='" + searchMode + "'>"; |
124 | 125 |
pathExpr += "<value>" + sfElement.value + "</value>"; |
125 |
pathExpr += "<pathexpr>/kar/karEntry/karEntryXML/property/property/@value</pathexpr>";
|
|
126 |
pathExpr += "<pathexpr>karEntry/karEntryXML/property/property/@value</pathexpr>"; |
|
126 | 127 |
pathExpr += "</queryterm>"; |
127 | 128 |
} |
128 | 129 |
|
Also available in: Unified diff
Change the return type from kar to the namespace.