Project

General

Profile

1
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
3
<%@ taglib prefix="s" uri="/struts-tags"%>
4

    
5
<html>
6
	<head>
7
		<script language="JavaScript">
8
			function disableEnterKey(e)
9
			{
10
			     var key;      
11
			     if(window.event)
12
			          key = window.event.keyCode; //IE
13
			     else
14
			          key = e.which; //firefox      
15
			     return (key != 13);
16
			}
17
		</script>
18
		<script language="javascript" src="jsps/js/mootools-1.2.5-core-nc.js" ></script> 
19
		<script language="javascript" src="jsps/js/mootools-1.2.5.1-more.js" ></script> 
20
		<script language="javascript" src="jsps/js/populateRules.js"></script>
21
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">	
22
		<title>Test repository/journal</title>
23
        <link href="jsps/favicon.ico" rel="shortcut icon" type="image/x-icon" />
24
        <link href="jsps/style.css" rel="stylesheet" type="text/css" media="screen" />
25
	</head>
26
	
27
	<body  class="left">
28
		<div class="wrapper">
29
			<jsp:include page="menu.jsp"/>
30
			<div id="page">
31
			<div id="page-bgtop">
32
                    	<s:actionmessage/>
33
                        <div id="middle">
34
                            <div class="middle-b">
35
                                <div class="background">
36
                                    <div id="left">
37
                                        <div id="left_container" >
38
                                        	<h2 class="helpHdr">Info</h2>
39
                                         	<s:text name="help.newvalidation"/>
40
                                        </div>
41
                                    </div>
42
	                                <div id="main">
43
                                        <div id="main_container" class="clearfix">
44
                                            <div id="mainmiddle" class="floatbox">
45
                                            <h1><s:text name="addOaiUsage.title"/></h1>	
46
                                                 <div class="entry">
47
                                                 	<s:form id="populateRules" theme="simple" action="validateRules" method="get">
48
                                                         
49
                                                    <div class="firstpar" id="firstpar">
50
                                                        <div class="section">Select repository/journal</div>
51
                                                        <div class="field">
52
                                                        	<div id="urlError" style="color:red;"></div>
53
                                                        	<s:radio name="selection" list="#{'select':getText('addOaiContent.baseUrl')}" id="selectButton" cssClass="radioselect"/>                                                      	
54
                                                            <br>
55
                                                            <s:select id="baseUrl" name="baseUrl" list="repositories" title="%{getText(\'addOaiContent.tooltip.baseUrl\')}" cssClass="baseurl"
56
                                                           		headerKey="" headerValue="Please choose existing Base URL..."/>
57
                                                        </div>		
58
                                                        
59
                                                        <div class="field">
60
                                                        	<s:radio name="selection" list="#{'text':getText('addOaiContent.baseUrl2')}" id="textButton" cssClass="radioselect"/>
61
                                                            <br/>
62
                                                        	<s:textfield name="baseUrl2" onKeyPress="return disableEnterKey(event)" id="baseUrl2" size="70" title="%{getText(\'addOaiContent.tooltip.baseUrl\')+\"(*)\"}"/>
63
        												</div>
64
        												
65
        												<div class="clearfix">
66
                                                        <div class="next"> <a href="#" onClick="javascript:validateUrl();">Next</a></div>                                  
67
                                                        </div>
68
                                                    </div>
69
                                                     
70
                                                    <div class="firstpar" id="firstpar-select" style="display:none;">
71
								<div class="selectedHdr">
72
									Selected repository: <span id="repoUrl"></span>
73
								</div>
74
                                                    </div>                                               
75
                                                    
76
                                                    <div class="secondpar" style="display:none;" id="secondpar">
77
                                                    	<div class="section">Select guidelines</div>
78
<%--  														 <s:radio list="ruleSetMap" name="chosenSet" theme="simple" cssClass="ruleset"/> <br>							 --%>
79
                                                    	<s:iterator value="ruleSetMap"> 
80
														  <span class="fieldName"><s:radio theme="simple" name="chosenSet" list="#{key:value}" cssClass="ruleset"/>
81
														  </span>
82
														  <s:url action="fetchRuleDescriptions" id="link">
83
                                                          	<s:param name="ruleSetId" value="%{key}"/>
84
                                                          </s:url>
85
                                                          <s:a href="%{#link}" target="blank">More info</s:a>
86
                                                          <br>
87
														</s:iterator> 
88
<!--                                                         <div class="info"> -->
89
<!--                                                                 Get more information on the predefined rule sets:&nbsp;<br/> -->
90
<%--                                                                 <s:iterator value="ruleSetMap" var="key">  --%>
91
<%--                                                                     <s:url action="fetchRuleDescriptions" id="link"> --%>
92
<%--                                                                         <s:param name="ruleSetId" value="%{key}"/> --%>
93
<%--                                                                     </s:url> --%>
94
<%--                                                                     <s:a href="%{#link}" target="blank"><s:property value="%{value}"/></s:a> --%>
95
<!--                                                                     &nbsp;|&nbsp; -->
96
<%--                                                                 </s:iterator> --%>
97
<!--                                                             </div> -->
98

    
99
							<div class="note">
100
							
101
							
102
	                                                        <span class="fieldName">View/Select Rules</span>
103
									
104
									
105
                                                        <div class="field">
106
                                                         	<input type="checkbox" id="contentRules" class="validation"/>
107
                                                         	<span class="fieldName">for Content</span> <a href="#" class="showlink" id="contentlink">Show</a>
108
                                                        </div>						
109
                                                        <div class="nest" id="nest-contentlink">
110
                                                            <div class="optiontable_container">		
111
                                                                 <b class="optiontable_top"> 
112
                                                                    <b class="optiontable_t1"></b> 
113
                                                                    <b class="optiontable_t2"></b> 
114
                                                                    <b class="optiontable_t3"></b> 
115
                                                                    <b class="optiontable_t4"></b> 
116
                                                                </b>
117
                                                    			<div id="contentR" style="overflow: visible;"> </div>
118
                                                                <b class="optiontable_bottom"> 
119
                                                                    <b class="optiontable_b4"></b> 
120
                                                                    <b class="optiontable_b3"></b> 
121
                                                                    <b class="optiontable_b2"></b> 
122
                                                                    <b class="optiontable_b1"></b> 
123
                                                                </b>												
124
                                                            </div>
125
                                                        </div>
126
                                                        <div class="field">
127
                                                            <input type="checkbox" id="usageRules" class="validation"/>
128
                                                            <span class="fieldName">for Usage</span> <a href="#" class="showlink" id="usagelink">Show</a>
129
                                                        </div>
130
                                                        <div class="nest" id="nest-usagelink">
131
                                                            <div class="optiontable_container">							
132
                                                                <b class="optiontable_top"> 
133
                                                                    <b class="optiontable_t1"></b> 
134
                                                                    <b class="optiontable_t2"></b> 
135
                                                                    <b class="optiontable_t3"></b> 
136
                                                                    <b class="optiontable_t4"></b> 
137
                                                                </b>
138
                                                        		<div id="usage"></div>
139
                                                        		<b class="optiontable_bottom"> 
140
                                                                    <b class="optiontable_b4"></b> 
141
                                                                    <b class="optiontable_b3"></b> 
142
                                                                    <b class="optiontable_b2"></b> 
143
                                                                    <b class="optiontable_b1"></b> 
144
                                                                </b>													
145
                                                            </div>
146
                                                        </div>
147
							</div>
148
                                                   </div> 
149
	                                                <div class="thirdpar" style="display:none" id="thirdpar">
150
	                                                    	<div class="section">Select parameters</div>
151
	                                                        <div id="contentParameters">
152
	                                                        	<div class="field">
153
	                                                                <span class="fieldName">Number of records</span>
154
<%-- 	                                                                <s:textfield name="records" id="records" value="10" cssClass="smallInp"/> --%>
155
              													   	<s:radio name="selectionRecords" id="selectionRecords" list="#{'all':'All','custom':'Custom'}" cssClass="radioselectRecords"/>
156
	                                                           		<s:textfield name="records" id="records" value="10" cssClass="smallInp"/>
157
	                                                            </div>
158

    
159
  									<div class="field">
160
		                                                        	<span class="fieldName">Set </span>   
161
		                                                        	<span id="log_res"><!-- spanner --></span>
162
										<span id="reposets">
163
											<s:select name="set" list="{'All Sets', 'Choose another set...'}" id="set"/>
164
										</span> 
165
									</div>
166
																
167
									<div class="note">
168
	                                                        	<div class="field">
169
	                                                                <span class="fieldName">Would you like to group your results by a specific record's field?</span>
170
	                                                                <br>
171
              													   	<s:radio name="selectionGroupBy" id="selectionGroupBy" list="#{'no':'No','yes':'Yes'}" cssClass="radioselectGroupBy"/>
172
	                                                           		<s:textfield name="groupBy" id="groupBy" value="-XPATH-" cssClass="bigInp"/> <br>
173
	                                                           		<b><i>XPath Examples:</i></b>  1. //header/setSpec     2. //record/metadata//*[name()='dc:language']
174
	                                                           				
175
	                                                           		
176
	                                                            </div>
177
									</div>
178
                                                     							
179
															</div>
180
	                                                        
181
	                                                    </div>
182
												<div class="fourthpar" style="display:none;" id="fourthpar">
183

    
184
			                                             
185
														<div class="clearfix">
186
                                                        	<div class="prev"> <a href="#" onClick="javascript:changeDisplays();"> Previous</a></div>
187
														</div>
188
														<div class="info">
189
									You will be notified by email with the results of the compatibility test.
190
			                                             </div>
191
			                                             
192
														<div class="clearfix">
193
                                                    		<span style="float:right"><s:submit  value="Start validation" cssClass="button-default" /></span>
194
														</div>
195

    
196
														<p>&nbsp;</p>
197
														
198

    
199
                                                    </div>
200
                                                    
201
                                                    </s:form>
202
                                                    
203
                                                 </div>		
204
                                            </div>
205
                                    	</div>
206
                                 	</div>  
207
                                 </div> 
208
                            </div>
209
						</div>
210
					
211
					</div>
212
                     <!-- NMI This needs to be the same in all pages and the text is some properties file -->
213
        			<div id="footer"> 
214
						<jsp:include page="footer.jsp"/>
215
					</div>
216
				</div>
217
			</div>		
218
	</body>
219
</html>
(11-11/47)