Project

General

Profile

« Previous | Next » 

Revision 4932

include the "mock up" search fields

View differences:

index.jsp
61 61
			var year = document.getElementById("year").value;
62 62
			var otherField = document.getElementById("otherField").value;
63 63
			var otherValue = document.getElementById("otherValue").value;
64
			//keywords
65
			var keywordThesaurus1 = document.getElementById("keywordThesaurus1").value;
66
			var keyword1 = document.getElementById("keyword1").value;
67

  
68
			
64 69
			var searchTerms = new Object();
65 70
			searchTerms["anyValue"] = searchString;
66 71
			searchTerms["institution/organizationName"] = institution;
......
68 73
			searchTerms["course/lom/general/title/string"] = course;
69 74
			searchTerms["course/year"] = year;
70 75
			searchTerms[otherField] = otherValue;
76
			//TODO: implement thesaurus matching (compound INTERSECTION)
77
			searchTerms["keyword"] = keyword1;
71 78
			
72 79
			var operator = "UNION";
73 80
			if (document.getElementById("all").checked) {
......
118 125

  
119 126
				</tr>
120 127
				<tr>
121
					<td align="left" class="borderbottom">
128
					<td valign="top" align="left" class="borderbottom">
122 129
							
123 130
						<input name="query" type="hidden"> 
124 131
						<input name="qformat" value="first" type="hidden"> 
125 132
						<input type="hidden" name="action" value="squery"> 								
126 133
						
127 134
						<table>
128
							
129 135
							<tr>
136
								<td nowrap="nowrap">Question contains: </td>
137
								<td><input disabled="disabled" readonly="readonly" name="question" id="question" type="text" size="14"/></td>
138
							</tr>
139
							<tr>
130 140
								<td>Institution: </td>
131 141
								<td><input name="institution" id="institution" type="text" size="14"/></td>
132 142
							</tr>
......
142 152
								<td>Year: </td>
143 153
								<td><input name="year" id="year" type="text" size="4"/></td>
144 154
							</tr>
155
							
156
						</table>
157
					</td>
158
					<td valign="top" class="borderbottom">
159
						<table>
145 160
							<tr>
146 161
								<td>
147 162
									<select id="otherField" name="otherValue">
148 163
										<option value="assessment/title">Assessment Title</option>
149 164
										<option value="assessment/type">Assessment Type</option>
150 165
										<option value="assessment/duration">Assessment Duration</option>
166
										<option value="assessment/grading/@group">Group Grading</option>
167
										<option value="assessment/grading/@size">Group Size</option>
168
										<option value="assessment/grading">Group Grading Approach</option>
169

  
170
										<option value="course/lom/general/identifier/entry">Course Id</option>
171
										<option value="course/lom/general/title/string">Course Title</option>
172
										<option value="course/lom/general/description/string">Course Description</option>
151 173
										<option value="course/term">Course Term</option>
174
										<option value="course/year">Course Year</option>
175
										<option value="course/coverage/rangeOfDates/beginDate/calendarDate">Course Start Date</option>
176
										<option value="course/coverage/rangeOfDates/endDate/calendarDate">Course End Date</option>
177

  
178
										<option value="institution/organizationName">Institution Name</option>
179
										<option value="instructor/individualName/surName">Instructor Surname</option>
180
										<option value="instructor/organizationName">Instructor Organization</option>
181

  
152 182
									</select>
153 183
								</td>
154 184
								<td><input name="otherValue" id="otherValue" type="text" size="14"/></td>
155 185
							</tr>
186
							<tr>
187
								<td colspan="2"><input type="button" value="+"/></td>
188
							</tr>
189
							<tr>
190
								<td colspan="2">Keywords</td>
191
							</tr>
192
							<tr>
193
								<td>
194
									<select id="keywordThesaurus1" name="keywordThesaurus1">
195
										<option value=""></option>
196
										<option value="keywordThesaurus">NBII</option>
197
										<option value="keywordThesaurus">Bloom</option>
198
									</select>
199
								</td>
200
								<td><input name="keyword1" id="keyword1" type="text" size="14"/></td>
201
							</tr>
202
							<tr>
203
								<td colspan="2"><input type="button" value="+"/></td>
204
							</tr>
205
							
156 206
						</table>
157 207
					</td>
158
					<td valign="bottom" class="borderbottom">
159
						<table>	
208
				</tr>
209
				<tr>
210
					<td valign="top" class="borderbottom">
211
						<table>
160 212
							<tr>
161 213
								<td nowrap="nowrap">
162 214
									<input name="anyAll" id="any" value="UNION" type="radio" checked="checked"/>
......
169 221
								</td>	
170 222
								<td nowrap="nowrap">Match all</td>
171 223
							</tr>
224
						</table>
225
					</td>
226
					<td valign="bottom" class="borderbottom">
227
						<table>
172 228
							<tr>
173 229
								<td colspan="2">
174 230
									<input type="button" onclick="javascript:searchAssessments()" value="Search"/>
......
177 233
						</table>
178 234
					</td>
179 235
				</tr>
180
				
181 236
			</table>
182 237
			</form>
183 238
			

Also available in: Unified diff