Project

General

Profile

1
<%@ page    language="java" %>
2
<%
3
/**
4
 * 
5
 * '$RCSfile$'
6
 * Copyright: 2008 Regents of the University of California and the
7
 *             National Center for Ecological Analysis and Synthesis
8
 *    '$Author: leinfelder $'
9
 *      '$Date: 2008-08-13 15:09:01 -0700 (Wed, 13 Aug 2008) $'
10
 * '$Revision: 4235 $'
11
 * 
12
 * This program is free software; you can redistribute it and/or modify
13
 * it under the terms of the GNU General Public License as published by
14
 * the Free Software Foundation; either version 2 of the License, or
15
 * (at your option) any later version.
16
 * 
17
 * This program is distributed in the hope that it will be useful,
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
 * GNU General Public License for more details.
21
     
22
 * You should have received a copy of the GNU General Public License
23
 * along with this program; if not, write to the Free Software
24
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
25
 */  
26
%>
27

    
28
<%@ include file="../../common/common-settings.jsp"%>
29
<%@ include file="../../common/configure-check.jsp"%>
30

    
31
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
32
<html>
33
<head>
34
<title>FIRST Assessment Metadata Repository</title>
35
<link rel="stylesheet" type="text/css"
36
	href="<%=STYLE_SKINS_URL%>/first/first.css">
37
<script language="JavaScript" type="text/JavaScript"
38
	src="<%=STYLE_SKINS_URL%>/first/first.js"></script>
39
<script language="JavaScript" type="text/JavaScript"
40
	src="<%=STYLE_COMMON_URL%>/branding.js"></script>
41
<script language="Javascript">
42
        function trim(stringToTrim) {
43
                return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
44
        }
45

    
46
        function checkSearch(submitFormObj) {
47
			var searchString = trim(submitFormObj.searchstring.value);
48
 			var searchAssessmentsCheckBox = document.getElementById("searchAssessments");
49
 			var searchQuestionsCheckBox = document.getElementById("searchQuestions");
50

    
51
			//check the doctype checkboxes for at least one
52
			if ( !(searchAssessmentsCheckBox.checked || searchQuestionsCheckBox.checked) ) {
53
				alert("Please select at least one item type for your search");
54
				searchAssessmentsCheckBox.focus();
55
				return false;
56
			}
57
			
58
			if (searchString=="") {
59
				if (confirm("No search terms were entered.\nContinue with a wildcardsearch?")) {
60
					searchString = "%";
61
				} 
62
				else {
63
          			return false;
64
				}
65
			}
66
			
67
			var queryString = 
68
				"<pathquery version=\"1.2\">"
69
					+"<querytitle>Web-Search</querytitle>";
70
					
71
					/** assessments **/
72
					if (searchAssessmentsCheckBox.checked == true) {
73
						queryString +=
74
							"<returndoctype>edml://ecoinformatics.org/edml</returndoctype>"
75
							
76
							//assessment fields
77
			                +"<returnfield>assessment/duration</returnfield>"
78
			                +"<returnfield>assessment/@title</returnfield>"
79
			                +"<returnfield>assessment/@id</returnfield>"
80
			                +"<returnfield>lom/general/title/string</returnfield>"
81
			                +"<returnfield>lom/general/keyword/string</returnfield>"
82
			                +"<returnfield>individualName/surName</returnfield>"
83
			                +"<returnfield>organizationName</returnfield>";
84
					}
85
										
86
					/** questions **/
87
					if (searchQuestionsCheckBox.checked == true) {
88
						queryString +=
89
							"<returndoctype>http://www.imsglobal.org/xsd/ims_qtiasiv1p2</returndoctype>"
90
							
91
							//question (qti) fields
92
							+"<returnfield>item/@title</returnfield>"
93
							+"<returnfield>item/@ident</returnfield>"
94
			                +"<returnfield>qtimetadata/qtimetadatafield/fieldlabel</returnfield>"
95
			                +"<returnfield>qtimetadata/qtimetadatafield/fieldentry</returnfield>"
96
							//classification
97
							+"<returnfield>fieldlabel</returnfield>"
98
							+"<returnfield>fieldentry</returnfield>"
99
							+"<returnfield>objectives/material/mattext</returnfield>"
100
							//question content
101
							+"<returnfield>presentation/flow/material/mattext</returnfield>"
102
							+"<returnfield>response_label/@ident</returnfield>"
103
							+"<returnfield>response_label/material/mattext</returnfield>";
104
					}		
105
                                                      
106
			queryString +=
107
                    "<querygroup operator=\"UNION\">"
108
                            +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
109
                                    +"<value>" + searchString + "</value>"
110
                            +"</queryterm>"
111
                    +"</querygroup>"
112
				+"</pathquery>";
113
				
114
			//set the form value	
115
    		submitFormObj.query.value = queryString;
116
    		//alert(submitFormObj.query.value);	
117
			return true;
118
        }
119

    
120
		function browseAll(){
121
			var submitFormObj = document.getElementById("searchForm");
122
			var searchAssessmentsCheckBox = document.getElementById("searchAssessments");
123
			var searchQuestionsCheckBox = document.getElementById("searchQuestions");
124
			
125
			searchAssessmentsCheckBox.checked = true;
126
			searchQuestionsCheckBox.checked = true;
127
			
128
			if (checkSearch(submitFormObj)) {
129
				submitFormObj.submit();
130
			}
131
		}
132
   </script>
133
</head>
134
<body>
135
<script language="JavaScript">
136
          insertTemplateOpening("<%=CONTEXT_URL%>");
137
          insertSearchBox("<%=CONTEXT_URL%>");
138
      </script>
139

    
140
<table width="760" border="0" cellspacing="0" cellpadding="0">
141
	<!--DWLayoutTable-->
142
	<tr>
143
		<td>
144
			<p class="intro">
145
				Welcome to the FIRST Assessment Repository. 
146
				The repository contains detailed information on assessment tools used
147
				[primarily] in biological and ecological science courses.
148
				Records herein adhere to a standard educational metadata specification 
149
				and enable educators to explore effective teaching models and techniques.
150
			</p>
151
			<p class="intro">	
152
				The aim is to associate outcome measures (i.e. student test scores) with the particular concepts
153
				on which the student is being tested and also associate the specific instructional techniques employed 
154
				when presenting that material to the student.
155
			</p>
156
				
157
			<p class="intro">
158
				The repository relies primarily on data collected from and submitted by
159
				professors and instructors.  While this system is still in active development,
160
				a quick search should reveal the depth, flexibility, and utility of the model. 
161
				And, of course, feedback is strongly encouraged and greatly appreciated.
162
			</p>
163
			<p class="intro">
164
				Information about the FIRST Project and it's activities is currently available through the 
165
				<a href="http://www.first2.org/">FIRST II</a> site.
166
				
167
			<p class="intro">
168
				If you have any questions, comments or problems,
169
				please contact the repository developer and administrator at
170
				<a	href="mailto:leinfelder@nceas.ucsb.edu">leinfelder@nceas.ucsb.edu</a>
171
			</p>
172
			
173
			<br />
174
			<table class="tables" cellpadding="8" cellspacing="0">
175
				<tr class="sectheader">
176
					<td class="borderbottom" align="left">
177
						<p align="center">Search Assessments and Questions</p>
178
					</td>
179
				</tr>
180
				<tr class="sectbody"></tr>
181
	
182
				<tr>
183
					<td colspan="2" align="left">
184
						<form method="POST" action="<%=SERVLET_URL%>" target="_top"
185
							onSubmit="return checkSearch(this)" id="searchForm">
186
							<span class="searchresultsdividerPale"> 
187
								<input value="UNION" name="operator" type="hidden"> &nbsp; 
188
								<input size="14" name="searchstring" type="text" value="" id="searchBox"> 
189
								<input name="query" type="hidden"> 
190
								<input name="qformat" value="first" type="hidden"> 
191
								<input name="enableediting"	value="false" type="hidden"> 
192
								<input type="hidden" name="action" value="squery"> 
193
								<input value="Search" type="submit">
194
							</span>
195
						</form>
196
						<form>
197
							<input name="search" type="checkbox" id="searchAssessments" checked="checked">
198
							<label for="searchAssessments">Include Assessments</label>
199
							<br/>
200
							<input name="search" type="checkbox" id="searchQuestions"> 
201
							<label for="searchQuestions">Include Questions</label>
202
							<br />
203
						</form>
204
						<div align="center">
205
							<p align="left">This tool allows you to search for Assessments and Questions.
206
							By default, the search will be conducted over all Assessment fields.
207
							These include (but are not limited to):
208
							course and assessment titles and descriptions, instructor name, and keyword fields. 
209
							Expanding the search to include Questions will include additional results for question matches
210
							(much like a question bank). 
211
							<br />
212
							<br />
213
							You can use the '%' character as a wildcard in your searches (e.g.,
214
							'%biology%' would locate any phrase with the word biology embedded within it).
215
							</p>
216
						</div>
217
					</td>
218
				</tr>
219
				<tr>
220
					<td class="borderbottom">
221
						<div align="center">
222
							<a href="javascript:browseAll()">
223
							Browse All FIRST items
224
							</a> 
225
							<br />
226
						</div>
227
					</td>
228
				</tr>
229
			</table>
230
			<br />
231
			<br />
232
	
233
			<p class="intro">
234
			This repository is an effort of the <a href="http://www.nceas.ucsb.edu">National Center for Ecological
235
			Analysis and Synthesis (NCEAS)</a> and is based on software developed by
236
			the <a href="http://knb.ecoinformatics.org">Knowledge Network for
237
			Biocomplexity (KNB)</a>, and houses metadata that are compliant with 
238
			[the currently-under-development] Educational Metadata Language (EdML [name subject to change]).</p>
239

    
240
		</td>
241
	</tr>
242
</table>
243

    
244
<script language="JavaScript">          
245
    insertTemplateClosing("<%=CONTEXT_URL%>");
246
</script>
247
</body>
248
</html>
(10-10/11)