Project

General

Profile

« Previous | Next » 

Revision 5083

include at least one metadata field and then include any that are additional (_2, _3....etc)
bug #4452

View differences:

lib/style/skins/first/search.js
340 340
							+ "<pathexpr label=\"qChoice\">//assessment/section/item/presentation/flow/response_lid/render_choice/flow_label/response_label/material/mattext</pathexpr>"
341 341
						+ "</attribute>";
342 342
				}
343
				//at least one metadata field
344
				tempQuery +=
345
					"<attribute name=\"qMetadataVocabulary\">"
346
						+ "<pathexpr label=\"qMetadataVocabulary\">//assessment/section/item/itemmetadata/qtimetadata/vocabulary</pathexpr>"
347
					+ "</attribute>"
348
					+ "<attribute name=\"qMetadataValue\">"
349
						+ "<pathexpr label=\"qMetadataValue\">//assessment/section/item/itemmetadata/qtimetadata/qtimetadatafield/fieldentry</pathexpr>"
350
					+ "</attribute>";
343 351
				//control multiple metadata fields
344
				for (var q = 1; q <= questionMetadataCount; q++) {
352
				for (var q = 2; q <= questionMetadataCount; q++) {
345 353
					tempQuery +=
346 354
						"<attribute name=\"qMetadataVocabulary_" + q +"\">"
347 355
							+ "<pathexpr label=\"qMetadataVocabulary\">//assessment/section/item/itemmetadata/qtimetadata/vocabulary</pathexpr>"

Also available in: Unified diff