Revision 4879
Added by ben leinfelder over 15 years ago
lib/style/skins/first/search.js | ||
---|---|---|
307 | 307 |
tempQuery += |
308 | 308 |
"<datapackage id=\"" + questionId + "\">" |
309 | 309 |
+ "<entity id=\"" + questionId + "\">" |
310 |
+ "<attribute index=\"0\">"
|
|
310 |
+ "<attribute name=\"qId\">"
|
|
311 | 311 |
+ "<pathexpr label=\"qId\">//assessment/section/item/@ident</pathexpr>" |
312 | 312 |
+ "</attribute>" |
313 |
+ "<attribute index=\"1\">"
|
|
313 |
+ "<attribute name=\"qTitle\">"
|
|
314 | 314 |
+ "<pathexpr label=\"qTitle\">//assessment/section/item/@title</pathexpr>" |
315 | 315 |
+ "</attribute>" |
316 |
+ "<attribute index=\"2\">"
|
|
316 |
+ "<attribute name=\"qLabel\">"
|
|
317 | 317 |
+ "<pathexpr label=\"qLabel\">//assessment/section/item/presentation/@label</pathexpr>" |
318 | 318 |
+ "</attribute>" |
319 |
+ "<attribute index=\"3\">"
|
|
319 |
+ "<attribute name=\"qPrompt\">"
|
|
320 | 320 |
+ "<pathexpr label=\"qPrompt\">//assessment/section/item/presentation/flow/response_lid/render_choice/material/mattext</pathexpr>" |
321 | 321 |
+ "</attribute>" |
322 |
+ "<attribute index=\"4\">"
|
|
322 |
+ "<attribute name=\"qChoice\">"
|
|
323 | 323 |
+ "<pathexpr label=\"qChoice\">//assessment/section/item/presentation/flow/response_lid/render_choice/flow_label/response_label/material/mattext</pathexpr>" |
324 | 324 |
+ "</attribute>" |
325 |
+ "<attribute name=\"qChoice_1\">" |
|
326 |
+ "<pathexpr label=\"qChoice_1\">//assessment/section/item/presentation/flow/response_lid/render_choice/flow_label/response_label/material/mattext</pathexpr>" |
|
327 |
+ "</attribute>" |
|
328 |
+ "<attribute name=\"qChoice_2\">" |
|
329 |
+ "<pathexpr label=\"qChoice_2\">//assessment/section/item/presentation/flow/response_lid/render_choice/flow_label/response_label/material/mattext</pathexpr>" |
|
330 |
+ "</attribute>" |
|
331 |
+ "<attribute name=\"qChoice_3\">" |
|
332 |
+ "<pathexpr label=\"qChoice_3\">//assessment/section/item/presentation/flow/response_lid/render_choice/flow_label/response_label/material/mattext</pathexpr>" |
|
333 |
+ "</attribute>" |
|
334 |
+ "<attribute name=\"qChoice_4\">" |
|
335 |
+ "<pathexpr label=\"qChoice_4\">//assessment/section/item/presentation/flow/response_lid/render_choice/flow_label/response_label/material/mattext</pathexpr>" |
|
336 |
+ "</attribute>" |
|
337 |
+ "<attribute name=\"qMetadataVocabulary\">" |
|
338 |
+ "<pathexpr label=\"qMetadataVocabulary\">//assessment/section/item/itemmetadata/qtimetadata/vocabulary</pathexpr>" |
|
339 |
+ "</attribute>" |
|
340 |
+ "<attribute name=\"qMetadataValue\">" |
|
341 |
+ "<pathexpr label=\"qMetadataValue\">//assessment/section/item/itemmetadata/qtimetadata/qtimetadatafield/fieldentry</pathexpr>" |
|
342 |
+ "</attribute>" |
|
325 | 343 |
+ "</entity>" |
326 | 344 |
+ "</datapackage>"; |
327 | 345 |
} |
... | ... | |
344 | 362 |
+ "<right>" |
345 | 363 |
+ "<datapackage id=\"" + questionId + "\">" |
346 | 364 |
+ "<entity id=\"" + questionId + "\">" |
347 |
+ "<attribute index=\"0\">"
|
|
365 |
+ "<attribute name=\"qId\">"
|
|
348 | 366 |
+ "<pathexpr label=\"qId\">//assessment/section/item/@ident</pathexpr>" |
349 | 367 |
+ "</attribute>" |
350 | 368 |
+ "</entity>" |
Also available in: Unified diff
use name attributes for selection entity-attributes.
note: this is still a static version of which question-level metadata is being included in the resultset