r4887 - trunk/lib/style/skins/first
leinfelder at ecoinformatics.org
leinfelder at ecoinformatics.org
Wed Apr 1 09:08:04 PDT 2009
Author: leinfelder
Date: 2009-04-01 09:08:04 -0700 (Wed, 01 Apr 2009)
New Revision: 4887
Modified:
trunk/lib/style/skins/first/search.js
Log:
omit the demographic data - this is not well-defined for the prototype
Modified: trunk/lib/style/skins/first/search.js
===================================================================
--- trunk/lib/style/skins/first/search.js 2009-03-31 22:43:46 UTC (rev 4886)
+++ trunk/lib/style/skins/first/search.js 2009-04-01 16:08:04 UTC (rev 4887)
@@ -209,6 +209,9 @@
function generateQuery(docObjs, metadataObjs) {
//alert("calling method");
+ //make parameter at some point
+ var includeDemographicData = false;
+
//construct the assessment metadata attribute selection snippet
var metadataAttributes = "";
var index = 0;
@@ -281,23 +284,25 @@
+ "</datapackage>";
//select the demographic data
- if (containsDemographicData) {
- tempQuery +=
- "<datapackage id=\"" + docId + "\">"
- + "<entity index=\"1\">"
- //omit student id attribute
- + "<attribute index=\"1\"/>"
- + "<attribute index=\"2\"/>"
- + "<attribute index=\"3\"/>"
- + "</entity>"
- + "</datapackage>";
+ if (includeDemographicData) {
+ if (containsDemographicData) {
+ tempQuery +=
+ "<datapackage id=\"" + docId + "\">"
+ + "<entity index=\"1\">"
+ //omit student id attribute
+ + "<attribute index=\"1\"/>"
+ + "<attribute index=\"2\"/>"
+ + "<attribute index=\"3\"/>"
+ + "</entity>"
+ + "</datapackage>";
+ }
+ else {
+ tempQuery +=
+ "<staticItem name=\"demographic_1\" value=\"\" />"
+ + "<staticItem name=\"demographic_2\" value=\"\" />"
+ + "<staticItem name=\"demographic_3\" value=\"\" />";
+ }
}
- else {
- tempQuery +=
- "<staticItem name=\"demographic_1\" value=\"\" />"
- + "<staticItem name=\"demographic_2\" value=\"\" />"
- + "<staticItem name=\"demographic_3\" value=\"\" />";
- }
//select the metadata
tempQuery += metadataAttributeSelection;
More information about the Metacat-cvs
mailing list