Project

General

Profile

« Previous | Next » 

Revision 4242

switch to jsp

View differences:

lib/style/skins/first/index.html
1
<!--
2
  *  '$RCSfile$'
3
  *      Authors: Matt Jones
4
  *    Copyright: 2000 Regents of the University of California and the
5
  *               National Center for Ecological Analysis and Synthesis
6
  *  For Details: http://www.nceas.ucsb.edu/
7
  *
8
  *   '$Author$'
9
  *     '$Date$'
10
  * '$Revision$'
11
  * 
12
  * This is an HTML document for displaying metadata catalog tools
13
  *
14
  * This program is free software; you can redistribute it and/or modify
15
  * it under the terms of the GNU General Public License as published by
16
  * the Free Software Foundation; either version 2 of the License, or
17
  * (at your option) any later version.
18
  *
19
  * This program is distributed in the hope that it will be useful,
20
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
  * GNU General Public License for more details.
23
  *
24
  * You should have received a copy of the GNU General Public License
25
  * along with this program; if not, write to the Free Software
26
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27
-->
28
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
29
<html>
30
<head>
31
<title>FIRST Assessment Metadata Repository</title>
32
<link rel="stylesheet" type="text/css"
33
	href="@systemidserver@@style-skins-path@/first/first.css">
34
<script language="JavaScript" type="text/JavaScript"
35
	src="@systemidserver@@style-skins-path@/first/first.js"></script>
36
<script language="JavaScript" type="text/JavaScript"
37
	src="@systemidserver@@style-common-path@/branding.js"></script>
38
<script language="Javascript">
39
        function trim(stringToTrim) {
40
                return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
41
        }
42

  
43
        function checkSearch(submitFormObj) {
44
			var searchString = trim(submitFormObj.searchstring.value);
45
 			var searchAssessmentsCheckBox = document.getElementById("searchAssessments");
46
 			var searchQuestionsCheckBox = document.getElementById("searchQuestions");
47

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

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

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

  
237
		</td>
238
	</tr>
239
</table>
240

  
241
<script language="JavaScript">          
242
    insertTemplateClosing();
243
</script>
244
</body>
245
</html>
246 0

  
lib/style/skins/first/header.html
1

  
2
<!--
3
    '$RCSfile$'
4
    Copyright: 2003 Regents of the University of California and the
5
               National Center for Ecological Analysis and Synthesis
6
     '$Author$'
7
       '$Date$'
8
   '$Revision$'
9

  
10
   This program is free software; you can redistribute it and/or modify
11
   it under the terms of the GNU General Public License as published by
12
   the Free Software Foundation; either version 2 of the License, or
13
   (at your option) any later version.
14

  
15
   This program is distributed in the hope that it will be useful,
16
   but WITHOUT ANY WARRANTY; without even the implied warranty of
17
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
   GNU General Public License for more details.
19
     
20
   You should have received a copy of the GNU General Public License
21
   along with this program; if not, write to the Free Software
22
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23
  -->
24
<!--____________________________max_width____________________________________-->
25

  
26
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
27
<html>
28
<head>
29
<title>FIRST Data Repository</title>
30
<link rel="stylesheet" type="text/css"
31
	href="@systemidserver@@style-skins-path@/first/first.css"></link>
32
</head>
33

  
34
<body>
35
<table width="760" border="0" cellspacing="0" cellpadding="0">
36
	<tr valign="top">
37
		<td>
38
			<img src="@systemidserver@@style-skins-path@/first/images/first2banner.jpg">
39
		</td>
40
		<td>
41
			<table>
42
				<tr>
43
					<td colspan="2" class="title">FIRST Data Repository</td>
44
				</tr>
45
				<tr>
46
					<td valign="top">
47
						<p><a href="http://www.first2.org" target=_top">FIRST Home</a></p>
48
					</td>
49
					<td valign="top">
50
						<p><a href="index.html" target="_top">Repository Home</a></p>
51
					</td>
52
					<!-- 
53
					<td valign="top">
54
						<p><a href="@cgi-prefix@/register-dataset.cgi?cfg=first"
55
						target="_top">Register a New Data Set</a></p>
56
					</td>
57
					 -->
58
				</tr>
59
			</table>
60
		</td>	
61
	</tr>
62
</table>		
63
</body>
64
</html>
65 0

  

Also available in: Unified diff