Revision 29541
Added by Nikon Gasparis over 10 years ago
modules/uoa-madgik-validator/trunk/src/main/java/gr/uoa/di/validatorweb/actions/registration/dnet/test.java | ||
---|---|---|
1 |
package gr.uoa.di.validatorweb.actions.registration.dnet; |
|
2 |
|
|
3 |
public class test { |
|
4 |
|
|
5 |
/** |
|
6 |
* @param args |
|
7 |
* @author Nikon Gasparis |
|
8 |
*/ |
|
9 |
public static void main(String[] args) { |
|
10 |
String pref = "Open Access Repository".toLowerCase().replace(" ", "_"); |
|
11 |
if (pref.length() > 12) { |
|
12 |
pref = pref.substring(0,11); |
|
13 |
} else { |
|
14 |
while (pref.length() < 12) |
|
15 |
pref = pref.concat("_"); |
|
16 |
} |
|
17 |
|
|
18 |
System.out.println(pref); |
|
19 |
} |
|
20 |
|
|
21 |
} |
modules/uoa-madgik-validator/trunk/src/main/java/gr/uoa/di/validatorweb/actions/registration/dnet/RepoRegistration.java | ||
---|---|---|
187 | 187 |
logger.debug("current ComplianceCode: "+ getComplianceCode(iFace.getCompliance())); |
188 | 188 |
logger.debug("desired Compliance: "+ iFace.getDesiredCompatibilityLevel()); |
189 | 189 |
if ((this.getDbMode().equalsIgnoreCase("direct") && !compMap.containsKey(iFace.getDesiredCompatibilityLevel())) |
190 |
|| (this.getDbMode().equalsIgnoreCase("dms") && !iFace.getDesiredCompatibilityLevel().equalsIgnoreCase(getComplianceCode(iFace.getCompliance())))) { |
|
190 |
|| (this.getDbMode().equalsIgnoreCase("dms") && (!(iFace.getDesiredCompatibilityLevel().equalsIgnoreCase(getComplianceCode(iFace.getCompliance()))) && |
|
191 |
!(iFace.getDesiredCompatibilityLevel().equalsIgnoreCase("openaire3.0_data") && getComplianceCode(iFace.getCompliance()).equalsIgnoreCase("openaire3.0"))))){ |
|
192 |
|
|
191 | 193 |
logger.debug("initiating preregistration validations on repo :" + iFace.getBaseUrl() + "for set: " + iFace.getAccessSet() + " and compliance: " + iFace.getDesiredCompatibilityLevel()); |
192 | 194 |
activationId = UUID.randomUUID().toString(); |
193 | 195 |
this.getOpenAIREValidator().storeJobForRegistration(iFace.getBaseUrl(), repo.getOfficialName(), activationId, (String) session.get(Constants.loggedInField), this.adminEmails, iFace.getAccessSet(), iFace.getDesiredCompatibilityLevel(), repo.getId(), iFace.getId()); |
... | ... | |
197 | 199 |
List<String> rec = new ArrayList<String>(); |
198 | 200 |
rec.add((String) session.get(Constants.loggedInField)); |
199 | 201 |
String msgUpgrade = ""; |
200 |
if (iFace.getCompliance() != null && !iFace.getCompliance().equalsIgnoreCase("openaire3.0"))
|
|
202 |
if (iFace.getCompliance() != null && !getComplianceCode(iFace.getCompliance()).equalsIgnoreCase("openaire3.0"))
|
|
201 | 203 |
msgUpgrade = "\n\n Please consider to upgrade to OpenAIRE Guidelines v3. Link: https://guidelines.openaire.eu/wiki/OpenAIRE_Guidelines:_For_Literature_repositories"; |
202 | 204 |
|
203 | 205 |
this.getEmailer().sendMail(rec, "Request to Join OpenAIRE - Test Results", "Your repository/journal is already \"" + iFace.getDesiredCompatibilityLevel() + "\" compliant. As a result, there is no need to run registration test for url: " + iFace.getBaseUrl() + " and set: " + iFace.getAccessSet() + " ." + msgUpgrade, false, null); |
modules/uoa-madgik-validator/trunk/src/main/java/gr/uoa/di/validator/ehcacher/CacheProvider.java | ||
---|---|---|
17 | 17 |
public void start() throws Exception { |
18 | 18 |
Ehcache originalCache = cacheManager.getCache("doar"); |
19 | 19 |
|
20 |
// final String cacheType = System.getProperty("com.blogspot.mikler.java.cache.factory"); |
|
21 |
// if (cacheType == null || cacheType.equals("create")){ |
|
22 |
// updatingFactory = new ExampleCacheEntryFactory(); |
|
23 |
// } else { |
|
24 |
// updatingFactory = new ExampleUpdatingCacheEntryFactory(); |
|
25 |
// } |
|
26 | 20 |
selfPopulatingCache = new SelfPopulatingCache(originalCache, updatingFactory); |
27 |
//chache refresh thread
|
|
21 |
//cache refresh thread |
|
28 | 22 |
Thread updatingThread = new Thread(){ |
29 | 23 |
public void run() { |
30 | 24 |
while (true){ |
31 | 25 |
logger.debug("!!!!! Doing cache refresh !!!!!"); |
32 | 26 |
selfPopulatingCache.refresh(); |
33 | 27 |
try { |
34 |
Thread.sleep(600000);
|
|
28 |
Thread.sleep(450000);
|
|
35 | 29 |
} catch (InterruptedException e) { |
36 | 30 |
logger.error("cache update thread Interrupted"); |
37 | 31 |
} |
modules/uoa-madgik-validator/trunk/src/main/java/gr/uoa/di/validator/database/OpenDoarRepositoryFactoryDmsImpl.java | ||
---|---|---|
17 | 17 |
|
18 | 18 |
import org.apache.log4j.Logger; |
19 | 19 |
|
20 |
import com.unboundid.util.Base64; |
|
21 |
|
|
22 | 20 |
public class OpenDoarRepositoryFactoryDmsImpl implements OpenDoarRepositoryFactory { |
23 | 21 |
private static Logger logger = Logger.getLogger(OpenDoarRepositoryFactoryDmsImpl.class); |
24 | 22 |
private ServiceLocator<DatasourceManagerService> dmService = null; |
modules/uoa-madgik-validator/trunk/src/main/java/gr/uoa/di/validator/api/listeners/OpenAIREValidatorRegistrationListener.java | ||
---|---|---|
111 | 111 |
List<String> rec = new ArrayList<String>(); |
112 | 112 |
rec.add(this.userMail); |
113 | 113 |
if (adminEmails.contains(userMail)) { |
114 |
emailer.sendMail(rec, "Request to Join OpenAIRE - Results", "The compatibility test of your repository/journal was successful. Nevertheless, some erros might still exist. We strongly recommend reviewing the results and correcting any errors found:\n" + valBaseUrl + "/prepareSummary.action?jobId=" + this.jobId1 + "\n" + valBaseUrl + "/prepareSummary.action?jobId=" + this.jobId2, false, null);
|
|
114 |
emailer.sendMail(rec, "Request to Join OpenAIRE - Results", "The compatibility test of your repository/journal was successful. Nevertheless, some erros might still exist. We strongly recommend reviewing the results and correcting any errors found:\n" + valBaseUrl + "/prepareSummary.action?jobId=" + this.jobId1 + "&groupBy=all" + "\n" + valBaseUrl + "/prepareSummary.action?jobId=" + this.jobId2 + "&groupBy=all", false, null);
|
|
115 | 115 |
} |
116 | 116 |
else { |
117 |
emailer.sendMail(rec, "Request to Join OpenAIRE - Results", "The compatibility test of your repository/journal was successful. Nevertheless, some erros might still exist. We strongly recommend reviewing the results and correcting any errors found:\n" + valBaseUrl + "/prepareSummary.action?jobId=" + this.jobId1 + "\n" + valBaseUrl + "/prepareSummary.action?jobId=" + this.jobId2 + "\n\n" + msgInformUser, false, null);
|
|
117 |
emailer.sendMail(rec, "Request to Join OpenAIRE - Results", "The compatibility test of your repository/journal was successful. Nevertheless, some erros might still exist. We strongly recommend reviewing the results and correcting any errors found:\n" + valBaseUrl + "/prepareSummary.action?jobId=" + this.jobId1 + "&groupBy=all" + "\n" + valBaseUrl + "/prepareSummary.action?jobId=" + this.jobId2 + "&groupBy=all" + "\n\n" + msgInformUser, false, null);
|
|
118 | 118 |
rec.clear(); |
119 | 119 |
rec.addAll(adminEmails); |
120 |
emailer.sendMail(rec, "Request to Join OpenAIRE - Results", "The compatibility test of your repository/journal was successful. Nevertheless, some erros might still exist. We strongly recommend reviewing the results and correcting any errors found:\n" + valBaseUrl + "/prepareSummary.action?jobId=" + this.jobId1 + "\n" + valBaseUrl + "/prepareSummary.action?jobId=" + this.jobId2 + "\n\n" + msgInformAdmins, false, null);
|
|
120 |
emailer.sendMail(rec, "Request to Join OpenAIRE - Results", "The compatibility test of your repository/journal was successful. Nevertheless, some erros might still exist. We strongly recommend reviewing the results and correcting any errors found:\n" + valBaseUrl + "/prepareSummary.action?jobId=" + this.jobId1 + "&groupBy=all" + "\n" + valBaseUrl + "/prepareSummary.action?jobId=" + this.jobId2 + "&groupBy=all" + "\n\n" + msgInformAdmins, false, null);
|
|
121 | 121 |
} |
122 | 122 |
|
123 | 123 |
// mail to specials informing them of the new repository |
124 | 124 |
// registration |
125 | 125 |
rec.clear(); |
126 |
emailer.sendMail(rec, "Request to Join OpenAIRE - Results (success)", "A new repository/journal is ready to be added in the list of OpenAIRE compliant repositories/journals: " + this.officialName + "\n\nBase URL: " + this.baseUrl + "\n\nValidation Set: " + this.validationSet + "\n\nGuidelines: " + msgGuidelines, true, null);
|
|
126 |
emailer.sendMail(rec, "Request to Join OpenAIRE - Results (success)", "A new repository/journal is ready to be added in the list of OpenAIRE compliant repositories/journals." + "\n\nOfficial Name" + this.officialName + "\n\nBase URL: " + this.baseUrl + "\n\nValidation Set: " + this.validationSet + "\n\nGuidelines: " + msgGuidelines, true, null);
|
|
127 | 127 |
} catch (Exception e) { |
128 | 128 |
logger.error("", e); |
129 | 129 |
} |
modules/uoa-madgik-validator/trunk/src/main/webapp/jsps/registerRepository.jsp | ||
---|---|---|
123 | 123 |
<tr><td colspan="2"><s:fielderror fieldName="baseUrl"/></td></tr> |
124 | 124 |
<tr><td colspan="2"><s:fielderror fieldName="validationSet"/></td></tr> |
125 | 125 |
</s:if> |
126 |
<table id="myTable" class="zebra" style="table-layout:fixed; width:100%"> |
|
127 |
<thead> |
|
128 |
<tr> |
|
129 |
<s:if test="%{dbMode.trim().toLowerCase().equals(\"dms\")}"> |
|
130 |
<th scope="col" style="width:20%"><s:text name="registerRepoDnet.baseUrl"/></th> |
|
131 |
<th scope="col" style="width:15%"><s:text name="registerRepoDnet.validationSet"/></th> |
|
132 |
<th scope="col" style="width:25%"><s:text name="registerRepoDnet.compliance"/></th> |
|
133 |
<th scope="col" style="width:25%"><s:text name="registerRepoDnet.compatibilityLevel"/></th> |
|
134 |
<th scope="col" style="width:10%"><s:text name="registerRepoDnet.deteleApi"/></th> |
|
135 |
</s:if> |
|
136 |
<s:else> |
|
137 |
<th scope="col" style="width:40%"><s:text name="registerRepoDnet.baseUrl"/></th> |
|
138 |
<th scope="col" style="width:30%"><s:text name="registerRepoDnet.validationSet"/></th> |
|
139 |
<th scope="col" style="width:30%"><s:text name="registerRepoDnet.compatibilityLevel"/></th> |
|
140 |
</s:else> |
|
141 |
</tr> |
|
142 |
</thead> |
|
126 |
<table id="myTable" class="zebra1" style="table-layout:fixed; width:100%"> |
|
143 | 127 |
<tbody> |
144 | 128 |
<s:iterator value="interfaces" var="opendoarrepositoryinterface" status="stat"> |
145 |
<tr> |
|
129 |
<tr><th scope="col" class="numb">Interface Number</th><td class="numb"><s:text name="%{#stat.count}"/></td></tr> |
|
130 |
|
|
146 | 131 |
<s:if test="%{dbMode.trim().toLowerCase().equals(\"dms\")}"> |
147 |
<td><s:textfield theme="simple" size ="22%" name="interfaces[%{#stat.count-1}].baseUrl" value="%{#opendoarrepositoryinterface.baseUrl}" title="%{getText(\'repoRegistration.tooltip.baseUrl\')}" required="true"/></td>
|
|
148 |
<td><s:textfield theme="simple" size ="14%" name="interfaces[%{#stat.count-1}].accessSet" value="%{#opendoarrepositoryinterface.accessSet}" title="%{getText(\'repoRegistration.tooltip.accessSet\')}" required="true"/></td>
|
|
149 |
<td><s:textfield theme="simple" size ="30%" name="interfaces[%{#stat.count-1}].compliance" value="%{#opendoarrepositoryinterface.compliance}" title="%{getText(\'repoRegistration.tooltip.compliance\')}" readonly="true"/></td>
|
|
132 |
<tr><th scope="col"><s:text name="registerRepoDnet.baseUrl"/></th><td><s:textfield theme="simple" size ="50" name="interfaces[%{#stat.count-1}].baseUrl" value="%{#opendoarrepositoryinterface.baseUrl}" title="%{getText(\'repoRegistration.tooltip.baseUrl\')}" required="true"/></td></tr>
|
|
133 |
<tr><th scope="col"><s:text name="registerRepoDnet.validationSet"/></th><td><s:textfield theme="simple" size ="50" name="interfaces[%{#stat.count-1}].accessSet" value="%{#opendoarrepositoryinterface.accessSet}" title="%{getText(\'repoRegistration.tooltip.accessSet\')}" required="true"/></td></tr>
|
|
134 |
<tr><th scope="col"><s:text name="registerRepoDnet.compliance"/></th><td><s:textfield theme="simple" size ="50" name="interfaces[%{#stat.count-1}].compliance" value="%{#opendoarrepositoryinterface.compliance}" title="%{getText(\'repoRegistration.tooltip.compliance\')}" readonly="true"/></td></tr>
|
|
150 | 135 |
</s:if> |
151 | 136 |
<s:else> |
152 |
<td><s:textfield theme="simple" size ="30%" name="interfaces[%{#stat.count-1}].baseUrl" value="%{#opendoarrepositoryinterface.baseUrl}" title="%{getText(\'repoRegistration.tooltip.baseUrl\')}" required="true"/></td>
|
|
153 |
<td><s:textfield theme="simple" size ="20%" name="interfaces[%{#stat.count-1}].accessSet" value="%{#opendoarrepositoryinterface.accessSet}" title="%{getText(\'repoRegistration.tooltip.accessSet\')}" required="true"/></td>
|
|
137 |
<tr><th scope="col"><s:text name="registerRepoDnet.baseUrl"/></th><td><s:textfield theme="simple" size ="50" name="interfaces[%{#stat.count-1}].baseUrl" value="%{#opendoarrepositoryinterface.baseUrl}" title="%{getText(\'repoRegistration.tooltip.baseUrl\')}" required="true"/></td></tr>
|
|
138 |
<tr><th scope="col"><s:text name="registerRepoDnet.validationSet"/></th><td><s:textfield theme="simple" size ="50" name="interfaces[%{#stat.count-1}].accessSet" value="%{#opendoarrepositoryinterface.accessSet}" title="%{getText(\'repoRegistration.tooltip.accessSet\')}" required="true"/></td></tr>
|
|
154 | 139 |
</s:else> |
140 |
<tr><th scope="col"><s:text name="registerRepoDnet.compatibilityLevel"/></th> |
|
155 | 141 |
<td> |
156 | 142 |
<s:if test="%{mode=='re3data'}"> |
157 | 143 |
<s:select theme="simple" name="interfaces[%{#stat.count-1}].desiredCompatibilityLevel" |
... | ... | |
168 | 154 |
/> |
169 | 155 |
</s:else> |
170 | 156 |
</td> |
157 |
</tr> |
|
158 |
<tr><th scope="col"><s:text name="registerRepoDnet.deteleApi"/></th> |
|
171 | 159 |
<s:if test="%{dbMode.trim().toLowerCase().equals(\"dms\") && #opendoarrepositoryinterface.removable}"> |
172 |
<td align="center"><s:checkbox theme="simple" align="center" name="interfaces[%{#stat.count-1}].deleteApi" value="%{#opendoarrepositoryinterface.deleteApi}"/></td>
|
|
160 |
<td><s:checkbox theme="simple" align="center" name="interfaces[%{#stat.count-1}].deleteApi" value="%{#opendoarrepositoryinterface.deleteApi}"/></td> |
|
173 | 161 |
</s:if> |
174 | 162 |
<s:else> |
175 |
<td></td> |
|
163 |
<td></td>
|
|
176 | 164 |
</s:else> |
165 |
</tr> |
|
177 | 166 |
<s:hidden name="interfaces[%{#stat.count-1}].id" value="%{#opendoarrepositoryinterface.id}"/> |
178 | 167 |
<s:hidden name="interfaces[%{#stat.count-1}].removable" value="%{#opendoarrepositoryinterface.removable}"/> |
179 |
|
|
180 |
</tr> |
|
181 | 168 |
</s:iterator> |
182 | 169 |
</tbody> |
183 | 170 |
</table> |
... | ... | |
256 | 243 |
</div></td></tr> |
257 | 244 |
</table> |
258 | 245 |
<s:submit id="subm" value="Register" cssClass="button-default"/> |
246 |
<s:submit id="submWait" value="Please Wait" disabled="true" cssClass="button-default"/> |
|
259 | 247 |
</s:form> |
260 | 248 |
|
261 | 249 |
</div> |
modules/uoa-madgik-validator/trunk/src/main/webapp/jsps/style.css | ||
---|---|---|
1105 | 1105 |
|
1106 | 1106 |
/* Zebra List and Table */ |
1107 | 1107 |
table.zebra th, table.zebra td { padding: 5px; } |
1108 |
table.zebra th { font-size: 14px; font-weight: normal; text-align: left; } |
|
1108 |
table.zebra th { color:#2D72D6 ;font-size: 14px; font-weight: normal; text-align: left; }
|
|
1109 | 1109 |
table { border-collapse: collapse; border-spacing: 0; } |
1110 | 1110 |
table.zebra tbody, table.zebra tfoot { font-size: 12px; font-family: "OpenSansLight"; } |
1111 | 1111 |
|
... | ... | |
1117 | 1117 |
|
1118 | 1118 |
table.zebra caption { color: #999; } |
1119 | 1119 |
table.zebra tbody tr:hover td { background: #E7E7E7; } |
1120 |
|
|
1121 |
/* Zebra List and Table */ |
|
1122 |
table.zebra1 th, table.zebra td { padding: 5px; } |
|
1123 |
table.zebra1 th { font-size: 14px; font-weight: normal; text-align: left; } |
|
1124 |
table { border-collapse: collapse; border-spacing: 0; } |
|
1125 |
table.zebra1 tbody, table.zebra tfoot { font-size: 12px; font-family: "OpenSansLight"; } |
|
1126 |
|
|
1127 |
table.zebra1 tbody td { border-bottom: 0px solid #ddd; word-wrap:break-word; } |
|
1128 |
table.zebra1 tbody tr:first-child td { border-top: 1px solid #ddd; } |
|
1129 |
|
|
1130 |
table.zebra1 tbody tr { background: url(images/zebra_list.png) 0 0 repeat; } |
|
1131 |
table.zebra1 tbody tr:first-child td { border-top: 0px solid #ddd; } |
|
1132 |
|
|
1133 |
table.zebra1 tbody th.numb { background: #2D72D6; border: none; color: white;} |
|
1134 |
table.zebra1 tbody td.numb { background: #00B5F0; border: none; padding-left: 10px; color: white;} |
|
1135 |
|
|
1136 |
table.zebra1 caption { color: #999; } |
|
1137 |
table.zebra1 tbody tr:hover td { background: #E7E7E7; } |
modules/uoa-madgik-validator/trunk/src/main/webapp/jsps/registerRepositoryBak.jsp | ||
---|---|---|
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 |
<html> |
|
5 |
<head> |
|
6 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
|
7 |
<title><s:text name="registerRepo.dnet.title"/></title> |
|
8 |
<link href="jsps/favicon.ico" rel="shortcut icon" type="image/x-icon" /> |
|
9 |
<link href="jsps/style.css" rel="stylesheet" type="text/css" media="screen" /> |
|
10 |
</head> |
|
11 |
<body class="left"> |
|
12 |
|
|
13 |
|
|
14 |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> |
|
15 |
<script type="text/javascript" src="jsps/js/repoInterfaces.js"></script> |
|
16 |
|
|
17 |
<div id="wrapper"> |
|
18 |
<jsp:include page="menu.jsp"/> |
|
19 |
<div id="page"> |
|
20 |
<div id="page-bgtop"> |
|
21 |
<div id="middle"> |
|
22 |
<div class="middle-b"> |
|
23 |
<div class="background"> |
|
24 |
<div id="left"> |
|
25 |
<div id="left_container" > |
|
26 |
<h2 class="helpHdr">Info</h2> |
|
27 |
<s:text name="help.registerRepo"/> |
|
28 |
</div> |
|
29 |
</div> |
|
30 |
<div id="main"> |
|
31 |
<div id="main_container" class="clearfix"> |
|
32 |
<div id="mainmiddle" class="floatbox"> |
|
33 |
<h1><s:text name="registerRepo.dnet.title"/></h1> |
|
34 |
<div class="info"> |
|
35 |
<s:text name="registerRepoDnet.descriptionGen"/> |
|
36 |
</div> |
|
37 |
<s:actionerror/> |
|
38 |
<div class="entry"> |
|
39 |
<s:form action="registerRepo"> |
|
40 |
<s:hidden name="mode" value="%{mode}"/> |
|
41 |
<s:hidden name="usingOpenDoar" value="%{readonlyFields}"/> |
|
42 |
<s:hidden name="readonlyFields" value="%{readonlyFields}"/> |
|
43 |
<s:hidden name="id" value="%{id}"/> |
|
44 |
<s:hidden name="officialName" value="%{officialName}"/> |
|
45 |
<tr> <td colspan="2" class="section"><s:text name="registerRepoDnet.title0"/></td></tr> |
|
46 |
<s:if test="%{mode=='opendoar'}"> |
|
47 |
<tr> <td colspan="2"> <s:text name="registerRepoDnet.descriptionGen0"/></td></tr> |
|
48 |
<tr> <td colspan="2" class="field"><a href="<s:url value="%{idDoar}"/> " target="_blank">OpenDOAR link</a> </td></tr> |
|
49 |
</s:if> |
|
50 |
<s:if test="%{mode=='re3data'}"> |
|
51 |
<tr> <td colspan="2"> <s:text name="registerRepoDnet.descriptionGen0_data"/></td></tr> |
|
52 |
<tr> <td colspan="2" class="field"><a href="<s:url value="%{idDoar}"/> " target="_blank">Re3data link</a> </td></tr> |
|
53 |
</s:if> |
|
54 |
<s:if test="%{mode=='opendoar'}"> |
|
55 |
<s:textfield name="repo.typology" value="%{repo.typology}" title="%{getText(\'repoRegistration.tooltip.typology\')}" label="%{getText(\"registerRepoDnet.typology\")}" required="true" readonly="%{readonlyFields}" /> |
|
56 |
</s:if> |
|
57 |
<s:else> |
|
58 |
<s:select name="repo.typology" list="typologies" title="%{getText(\'repoRegistration.tooltip.typology\')}" label="%{getText(\"registerRepoDnet.typology\")}" required="true" readonly="%{readonlyFields}" /> |
|
59 |
<tr><td colspan="2"><s:fielderror fieldName="customTypology"/></td></tr> |
|
60 |
<s:textfield name="customTypology" title="%{getText(\'repoRegistration.tooltip.typology\')}" label="%{getText(\"registerRepo.dnet.customTypology\")}" size="65" readonly="%{readonlyFields}" /> |
|
61 |
</s:else> |
|
62 |
|
|
63 |
<div class="field"> |
|
64 |
</div> |
|
65 |
<tr><td colspan="2"><s:fielderror fieldName="officialName"/></td></tr> |
|
66 |
<s:textfield name="repo.officialName" size="65" title="%{getText(\'repoRegistration.tooltip.officialName\')}" label="%{getText(\"registerRepoDnet.officialName\")}" required="true" readonly="%{repoMode.trim().toLowerCase().equals(\"dnet\") && readonlyFields}"/> |
|
67 |
|
|
68 |
<s:if test="%{mode=='journal'}"> |
|
69 |
<tr><td colspan="2"><s:fielderror fieldName="issn"/></td></tr> |
|
70 |
<s:textfield name="repo.issn" size="65" title="%{getText(\'repoRegistration.tooltip.issn\')}" label="%{getText(\"registerRepoDnet.issn\")}" required="true"/> |
|
71 |
<tr><td colspan="2"><s:fielderror fieldName="eissn"/></td></tr> |
|
72 |
<s:textfield name="repo.eissn" size="65" title="%{getText(\'repoRegistration.tooltip.eissn\')}" label="%{getText(\"registerRepoDnet.eissn\")}"/> |
|
73 |
<tr><td colspan="2"><s:fielderror fieldName="lssn"/></td></tr> |
|
74 |
<s:textfield name="repo.lissn" size="65" title="%{getText(\'repoRegistration.tooltip.lissn\')}" label="%{getText(\"registerRepoDnet.lissn\")}"/> |
|
75 |
</s:if> |
|
76 |
<%-- <s:if test="%{readonlyFields}"> --%> |
|
77 |
<s:textarea name="repo.description" title="%{getText(\'repoRegistration.tooltip.description\')}" label="%{getText(\"registerRepoDnet.description\")}" cols="50" rows="10" readonly="%{readonlyFields}"/> |
|
78 |
<%-- </s:if> --%> |
|
79 |
<%-- <s:textfield name="iconUrl" size="65" title="%{getText(\'repoRegistration.tooltip.iconUrl\')}" label="%{getText(\"registerRepoDnet.iconUrl\")}" required="true" readonly="%{readonlyFields}" /> --%> |
|
80 |
<s:if test="%{readonlyFields}"> |
|
81 |
<tr><td colspan="2"><s:fielderror fieldName="countryName"/></td></tr> |
|
82 |
<s:textfield name="repo.countryName" value="%{repo.countryName}" title="%{getText(\'repoRegistration.tooltip.country\')}" label="%{getText(\"registerRepoDnet.country\")}" required="true" readonly="%{readonlyFields}"/> |
|
83 |
</s:if> |
|
84 |
<s:else> |
|
85 |
<tr><td colspan="2"><s:fielderror fieldName="countryName"/></td></tr> |
|
86 |
<s:select name="repo.countryName" list="countries" value="%{repo.countryName}" title="%{getText(\'repoRegistration.tooltip.country\')}" label="%{getText(\"registerRepoDnet.country\")}" required="true"/> |
|
87 |
</s:else> |
|
88 |
<tr><td colspan="2"><s:fielderror fieldName="longitude"/></td></tr> |
|
89 |
<s:textfield name="repo.longitude" size="10" title="%{getText(\'repoRegistration.tooltip.longtitude\')}" label="%{getText(\"registerRepoDnet.longtitude\")}" required="true" readonly="%{readonlyFields}"/> |
|
90 |
<tr><td colspan="2"><s:fielderror fieldName="latitude"/></td></tr> |
|
91 |
<s:textfield name="repo.latitude" size="10" title="%{getText(\'repoRegistration.tooltip.latitude\')}" label="%{getText(\"registerRepoDnet.latitude\")}" required="true" readonly="%{readonlyFields}"/> |
|
92 |
<%-- <s:if test="%{readonlyFields}"> --%> |
|
93 |
<%-- <s:textfield name="timezone" list="timezones" listKey="offset" listValue="name" title="%{getText(\'repoRegistration.tooltip.timezone\')}" label="%{getText(\"registerRepoDnet.timezone\")}" required="true" readonly="%{readonlyFields}" /> --%> |
|
94 |
<%-- </s:if> --%> |
|
95 |
<%-- <s:else> --%> |
|
96 |
<%-- <s:select name="timezone" list="timezones" listKey="offset" listValue="name" title="%{getText(\'repoRegistration.tooltip.timezone\')}" label="%{getText(\"registerRepoDnet.timezone\")}" required="true"/> --%> |
|
97 |
<%-- </s:else> --%> |
|
98 |
<tr><td colspan="2"><s:fielderror fieldName="websiteUrl"/></td></tr> |
|
99 |
<s:textfield name="repo.websiteUrl" size="65" title="%{getText(\'repoRegistration.tooltip.entryUrl\')}" label="%{getText(\"registerRepoDnet.entryUrl\")}" required="true" readonly="%{readonlyFields}" /> |
|
100 |
<tr><td colspan="2"><s:fielderror fieldName="organization"/></td></tr> |
|
101 |
<s:textfield name="repo.organization" size="65" title="%{getText(\'repoRegistration.tooltip.repoInst\')}" label="%{getText(\"registerRepoDnet.repoInst\")}" required="true" readonly="%{readonlyFields}" /> |
|
102 |
<tr> <td colspan="2" class="section"><s:text name="registerRepoDnet.title0b"/></td></tr> |
|
103 |
<tr><td colspan="2"><s:fielderror fieldName="englishName"/></td></tr> |
|
104 |
<s:textfield name="repo.englishName" size="65" title="%{getText(\'repoRegistration.tooltip.englishName\')}" label="%{getText(\"registerRepoDnet.englishName\")}" required="true"/> |
|
105 |
<s:textfield name="repo.logoUrl" size="65" title="%{getText(\'repoRegistration.tooltip.iconUrl\')}" label="%{getText(\"registerRepoDnet.iconUrl\")}"/> |
|
106 |
<tr> <td> </td><td class="comments smallfont">Please make sure that the maximum size of the uploaded image is width=360px, height=240px</td></tr> |
|
107 |
|
|
108 |
<s:select name="repo.timezone" list="timezones" listKey="offset" listValue="name" title="%{getText(\'repoRegistration.tooltip.timezone\')}" label="%{getText(\"registerRepoDnet.timezone\")}" required="true"/> |
|
109 |
|
|
110 |
<tr> <td colspan="2" class="section"><s:text name="registerRepoDnet.title1"/></td></tr> |
|
111 |
<tr><td colspan="2"><s:fielderror fieldName="contactEmail"/></td></tr> |
|
112 |
<s:textfield name="repo.contactEmail" size="65" title="%{getText(\'repoRegistration.tooltip.adminEmail\')}" label="%{getText(\"registerRepoDnet.adminEmail\")}" /> |
|
113 |
<tr> <td colspan="2" class="section"><s:text name="registerRepoDnet.title2"/></td></tr> |
|
114 |
|
|
115 |
<!-- <tr> --> |
|
116 |
<!-- <td colspan="2"> --> |
|
117 |
<!-- <div class="info"> --> |
|
118 |
<%-- <s:text name="registerRepoDnet.descriptionGen1"/> --%> |
|
119 |
<!-- </div> --> |
|
120 |
<!-- </td> --> |
|
121 |
<!-- </tr> --> |
|
122 |
<s:if test="hasFieldErrors()"> |
|
123 |
<tr><td colspan="2"><s:fielderror fieldName="baseUrl"/></td></tr> |
|
124 |
<tr><td colspan="2"><s:fielderror fieldName="validationSet"/></td></tr> |
|
125 |
</s:if> |
|
126 |
<table id="myTable" class="zebra" style="table-layout:fixed; width:100%"> |
|
127 |
<thead> |
|
128 |
<tr> |
|
129 |
<s:if test="%{dbMode.trim().toLowerCase().equals(\"dms\")}"> |
|
130 |
<th scope="col" style="width:20%"><s:text name="registerRepoDnet.baseUrl"/></th> |
|
131 |
<th scope="col" style="width:15%"><s:text name="registerRepoDnet.validationSet"/></th> |
|
132 |
<th scope="col" style="width:25%"><s:text name="registerRepoDnet.compliance"/></th> |
|
133 |
<th scope="col" style="width:25%"><s:text name="registerRepoDnet.compatibilityLevel"/></th> |
|
134 |
<th scope="col" style="width:10%"><s:text name="registerRepoDnet.deteleApi"/></th> |
|
135 |
</s:if> |
|
136 |
<s:else> |
|
137 |
<th scope="col" style="width:40%"><s:text name="registerRepoDnet.baseUrl"/></th> |
|
138 |
<th scope="col" style="width:30%"><s:text name="registerRepoDnet.validationSet"/></th> |
|
139 |
<th scope="col" style="width:30%"><s:text name="registerRepoDnet.compatibilityLevel"/></th> |
|
140 |
</s:else> |
|
141 |
</tr> |
|
142 |
</thead> |
|
143 |
<tbody> |
|
144 |
<s:iterator value="interfaces" var="opendoarrepositoryinterface" status="stat"> |
|
145 |
<tr> |
|
146 |
<s:if test="%{dbMode.trim().toLowerCase().equals(\"dms\")}"> |
|
147 |
<td><s:textfield theme="simple" size ="22%" name="interfaces[%{#stat.count-1}].baseUrl" value="%{#opendoarrepositoryinterface.baseUrl}" title="%{getText(\'repoRegistration.tooltip.baseUrl\')}" required="true"/></td> |
|
148 |
<td><s:textfield theme="simple" size ="14%" name="interfaces[%{#stat.count-1}].accessSet" value="%{#opendoarrepositoryinterface.accessSet}" title="%{getText(\'repoRegistration.tooltip.accessSet\')}" required="true"/></td> |
|
149 |
<td><s:textfield theme="simple" size ="30%" name="interfaces[%{#stat.count-1}].compliance" value="%{#opendoarrepositoryinterface.compliance}" title="%{getText(\'repoRegistration.tooltip.compliance\')}" readonly="true"/></td> |
|
150 |
</s:if> |
|
151 |
<s:else> |
|
152 |
<td><s:textfield theme="simple" size ="30%" name="interfaces[%{#stat.count-1}].baseUrl" value="%{#opendoarrepositoryinterface.baseUrl}" title="%{getText(\'repoRegistration.tooltip.baseUrl\')}" required="true"/></td> |
|
153 |
<td><s:textfield theme="simple" size ="20%" name="interfaces[%{#stat.count-1}].accessSet" value="%{#opendoarrepositoryinterface.accessSet}" title="%{getText(\'repoRegistration.tooltip.accessSet\')}" required="true"/></td> |
|
154 |
</s:else> |
|
155 |
<td> |
|
156 |
<s:if test="%{mode=='re3data'}"> |
|
157 |
<s:select theme="simple" name="interfaces[%{#stat.count-1}].desiredCompatibilityLevel" |
|
158 |
value="%{#opendoarrepositoryinterface.desiredCompatibilityLevel}" |
|
159 |
list="#{'openaire3.0_data':'OpenAIRE 3.0 (OA, funding)'}" |
|
160 |
required="true" |
|
161 |
/> |
|
162 |
</s:if> |
|
163 |
<s:else> |
|
164 |
<s:select theme="simple" name="interfaces[%{#stat.count-1}].desiredCompatibilityLevel" |
|
165 |
value="%{#opendoarrepositoryinterface.desiredCompatibilityLevel}" |
|
166 |
list="#{'openaire3.0':'OpenAIRE 3.0 (OA, funding)', 'openaire2.0':'OpenAIRE 2.0 (EC funding)', 'driver':'OpenAIRE Basic (DRIVER OA)'}" |
|
167 |
required="true" |
|
168 |
/> |
|
169 |
</s:else> |
|
170 |
</td> |
|
171 |
<s:if test="%{dbMode.trim().toLowerCase().equals(\"dms\") && #opendoarrepositoryinterface.removable}"> |
|
172 |
<td align="center"><s:checkbox theme="simple" align="center" name="interfaces[%{#stat.count-1}].deleteApi" value="%{#opendoarrepositoryinterface.deleteApi}"/></td> |
|
173 |
</s:if> |
|
174 |
<s:else> |
|
175 |
<td></td> |
|
176 |
</s:else> |
|
177 |
<s:hidden name="interfaces[%{#stat.count-1}].id" value="%{#opendoarrepositoryinterface.id}"/> |
|
178 |
<s:hidden name="interfaces[%{#stat.count-1}].removable" value="%{#opendoarrepositoryinterface.removable}"/> |
|
179 |
|
|
180 |
</tr> |
|
181 |
</s:iterator> |
|
182 |
</tbody> |
|
183 |
</table> |
|
184 |
<table class="zebra" style="table-layout:fixed; width:100%"> |
|
185 |
<tr><td colspan="4"> |
|
186 |
<s:if test="%{mode=='re3data'}"> |
|
187 |
<s:if test="%{dbMode.trim().toLowerCase().equals(\"dms\")}"> |
|
188 |
<a id="cloneButton1" onclick="addNew_data()">Add new Interface</a> |
|
189 |
</s:if> |
|
190 |
<s:else> |
|
191 |
<a id="cloneButton1" onclick="addNewDirect_data()">Add new Interface</a> |
|
192 |
</s:else> |
|
193 |
</s:if> |
|
194 |
<s:else> |
|
195 |
<s:if test="%{dbMode.trim().toLowerCase().equals(\"dms\")}"> |
|
196 |
<a id="cloneButton1" onclick="addNew()">Add new Interface</a> |
|
197 |
</s:if> |
|
198 |
<s:else> |
|
199 |
<a id="cloneButton1" onclick="addNewDirect()">Add new Interface</a> |
|
200 |
</s:else> |
|
201 |
</s:else> |
|
202 |
</td></tr> |
|
203 |
</table> |
|
204 |
|
|
205 |
<s:if test="%{dbMode.trim().toLowerCase().equals(\"direct\") && readonlyFields}"> |
|
206 |
<table><tr> <td colspan="2" class="section"><s:text name="registerRepoDnet.title3"/></td></tr></table> |
|
207 |
<table id="myTable1" class="zebra" style="table-layout:fixed; width:100%"> |
|
208 |
<thead> |
|
209 |
<tr> |
|
210 |
<th scope="col" style="width:40%">OpenAIRE Basic (ex DRIVER)</th> |
|
211 |
<th scope="col" style="width:30%">OpenAIRE 2.0</th> |
|
212 |
<th scope="col" style="width:30%">OpenAIRE 3.0</th> |
|
213 |
</tr> |
|
214 |
</thead> |
|
215 |
<tbody> |
|
216 |
<tr> |
|
217 |
<s:iterator value="openaireCompliant" var="compliant" status="stat"> |
|
218 |
<td><s:property value="%{#compliant}" /></td> |
|
219 |
</s:iterator> |
|
220 |
</tr> |
|
221 |
</tbody> |
|
222 |
</table> |
|
223 |
</s:if> |
|
224 |
<s:if test="%{dbMode.trim().toLowerCase().equals(\"dms\") && registrationFilesDownload}"> |
|
225 |
<table id="pdfTable" style="table-layout:fixed; width:100%"> |
|
226 |
<tr> <td colspan="5" class="section"><s:text name="registerRepoDnet.title4"/></td></tr> |
|
227 |
<tr> <td colspan="4"><s:text name="registerRepoDnet.files.allow"/></td><td><s:checkbox id ="allowPdf" theme="simple" name="pubFileIface.allow"/> </td></tr> |
|
228 |
<tr> |
|
229 |
<td colspan="5" > |
|
230 |
<div class="note"> |
|
231 |
<s:text name="registerRepoDnet.files.allow1"/> |
|
232 |
</div> |
|
233 |
</td> |
|
234 |
</tr> |
|
235 |
<tr class="addSource"> |
|
236 |
<td colspan="5" > |
|
237 |
<div class="info"> |
|
238 |
<s:text name="registerRepoDnet.files.info"/> |
|
239 |
</div> |
|
240 |
</td> |
|
241 |
</tr> |
|
242 |
<tr class="addSource"><td><s:text name="registerRepoDnet.files.methodology"/></td><td colspan="3"><s:radio cssClass="myRadio" theme ="simple" name="pubFileIface.methodology" list="#{'files_from_metadata':'from HTTP addresses in the metadata records (dc:identifier)','files_from_api':'from standard APIs'}"/></td></tr> |
|
243 |
<tr class="harvest"><td> </td><td><s:text name="registerRepoDnet.files.protocol"/></td><td><s:select theme="simple" name="pubFileIface.protocol" value="%{#pubFileIface.protocol}" list="#{'ftp':'FTP'}"/></td><td colspan="2"></td></tr> |
|
244 |
<tr class="harvest"><td> </td><td><s:text name="registerRepoDnet.files.url"/></td><td colspan="2"><s:textfield theme="simple" size ="30" name="pubFileIface.url"/></td><td></td></tr> |
|
245 |
<tr class="harvest"><td> </td><td><s:text name="registerRepoDnet.files.username"/></td ><td colspan="2"><s:textfield theme="simple" size ="30" name="pubFileIface.username"/></td><td></td></tr> |
|
246 |
<tr class="harvest"><td> </td><td><s:text name="registerRepoDnet.files.password"/></td ><td colspan="2"><s:textfield theme="simple" size ="30" name="pubFileIface.password"/></td><td></td></tr> |
|
247 |
<tr class="harvest"><td> </td><td><s:text name="registerRepoDnet.files.namingConvention"/></td><td colspan="2"><s:radio theme="simple" name="pubFileIface.convention" list="#{'oai_pmh_identifier':'OAI-PMH Identifier','doi':'DOI'}"/></td><td></td></tr> |
|
248 |
<tr class="metadata"><td> </td><td><s:text name="registerRepoDnet.files.xpath"/></td ><td colspan="2"><s:textfield theme="simple" size ="30" name="pubFileIface.xpath"/></td><td></td></tr> |
|
249 |
|
|
250 |
</table> |
|
251 |
</s:if> |
|
252 |
<tr><td colspan="2"><hr class="dotted"></td></tr> |
|
253 |
<table id="progressTable" style="table-layout:fixed; width:100%"> |
|
254 |
<tr class="progress"><td> |
|
255 |
<div class="info">Checking if interface's Url and Validation Set are valid... |
|
256 |
</div></td></tr> |
|
257 |
</table> |
|
258 |
<s:submit id="subm" value="Register" cssClass="button-default"/> |
|
259 |
</s:form> |
|
260 |
|
|
261 |
</div> |
|
262 |
</div> |
|
263 |
</div> |
|
264 |
</div> |
|
265 |
</div> |
|
266 |
</div> |
|
267 |
</div> |
|
268 |
<div style="clear: both;"> </div> |
|
269 |
</div> |
|
270 |
<!-- NMI This needs to be the same in all pages and the text is some properties file --> |
|
271 |
<div id="footer"> |
|
272 |
<jsp:include page="footer.jsp"/> |
|
273 |
</div> |
|
274 |
</div> |
|
275 |
</div> |
|
276 |
</body> |
|
277 |
</html> |
modules/uoa-madgik-validator/trunk/src/main/webapp/jsps/editRepositoryBak.jsp | ||
---|---|---|
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 |
<html> |
|
5 |
<head> |
|
6 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
|
7 |
<title><s:text name="registerRepo.dnet.title"/></title> |
|
8 |
<link href="jsps/favicon.ico" rel="shortcut icon" type="image/x-icon" /> |
|
9 |
<link href="jsps/style.css" rel="stylesheet" type="text/css" media="screen" /> |
|
10 |
</head> |
|
11 |
<body class="left"> |
|
12 |
|
|
13 |
|
|
14 |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> |
|
15 |
<script language="JavaScript" type="text/javascript" src="jsps/js/repoInterfaces.js"></script> |
|
16 |
|
|
17 |
<div id="wrapper"> |
|
18 |
<jsp:include page="menu.jsp"/> |
|
19 |
<div id="page"> |
|
20 |
<div id="page-bgtop"> |
|
21 |
<div id="middle"> |
|
22 |
<div class="middle-b"> |
|
23 |
<div class="background"> |
|
24 |
<div id="left"> |
|
25 |
<div id="left_container" > |
|
26 |
<h2 class="helpHdr">Info</h2> |
|
27 |
<s:text name="help.registerRepo"/> |
|
28 |
</div> |
|
29 |
</div> |
|
30 |
<div id="main"> |
|
31 |
<div id="main_container" class="clearfix"> |
|
32 |
<div id="mainmiddle" class="floatbox"> |
|
33 |
<h1><s:text name="registerRepo.dnet.title"/></h1> |
|
34 |
<div class="info"> |
|
35 |
<s:text name="registerRepoDnet.descriptionGen"/> |
|
36 |
</div> |
|
37 |
<s:actionerror/> |
|
38 |
<div class="entry"> |
|
39 |
<s:form action="editRepo"> |
|
40 |
<s:hidden name="mode" value="%{mode}"/> |
|
41 |
<s:hidden name="usingOpenDoar" value="%{readonlyFields}"/> |
|
42 |
<s:hidden name="readonlyFields" value="%{readonlyFields}"/> |
|
43 |
<s:hidden name="id" value="%{id}"/> |
|
44 |
<s:hidden name="officialName" value="%{officialName}"/> |
|
45 |
<tr> <td colspan="2" class="section"><s:text name="registerRepoDnet.title0"/></td></tr> |
|
46 |
<s:if test="%{mode=='opendoar'}"> |
|
47 |
<tr> <td colspan="2"> <s:text name="registerRepoDnet.descriptionGen0"/></td></tr> |
|
48 |
|
|
49 |
<tr> <td colspan="2" class="field"><a href="<s:url value="%{idDoar}"/> " target="_blank">OpenDOAR link</a> </td></tr> |
|
50 |
</s:if> |
|
51 |
<s:if test="%{mode=='re3data'}"> |
|
52 |
<tr> <td colspan="2"> <s:text name="registerRepoDnet.descriptionGen0_data"/></td></tr> |
|
53 |
|
|
54 |
<tr> <td colspan="2" class="field"><a href="<s:url value="%{idDoar}"/> " target="_blank">Re3data link</a> </td></tr> |
|
55 |
</s:if> |
|
56 |
<s:textfield name="repo.typology" value="%{repo.typology}" title="%{getText(\'repoRegistration.tooltip.typology\')}" label="%{getText(\"registerRepoDnet.typology\")}" required="true" readonly="%{readonlyFields}" /> |
|
57 |
|
|
58 |
<div class="field"> |
|
59 |
</div> |
|
60 |
<tr><td colspan="2"><s:fielderror fieldName="officialName"/></td></tr> |
|
61 |
<s:textfield name="repo.officialName" size="65" title="%{getText(\'repoRegistration.tooltip.officialName\')}" label="%{getText(\"registerRepoDnet.officialName\")}" required="true" readonly="%{repoMode.trim().toLowerCase().equals(\"dnet\") && readonlyFields}"/> |
|
62 |
|
|
63 |
<s:if test="%{mode=='journal'}"> |
|
64 |
<tr><td colspan="2"><s:fielderror fieldName="issn"/></td></tr> |
|
65 |
<s:textfield name="repo.issn" size="65" title="%{getText(\'repoRegistration.tooltip.issn\')}" label="%{getText(\"registerRepoDnet.issn\")}" required="true" readonly="%{readonlyFields}" /> |
|
66 |
<tr><td colspan="2"><s:fielderror fieldName="eissn"/></td></tr> |
|
67 |
<s:textfield name="repo.eissn" size="65" title="%{getText(\'repoRegistration.tooltip.eissn\')}" label="%{getText(\"registerRepoDnet.eissn\")}" readonly="%{readonlyFields}" /> |
|
68 |
<tr><td colspan="2"><s:fielderror fieldName="lissn"/></td></tr> |
|
69 |
<s:textfield name="repo.lissn" size="65" title="%{getText(\'repoRegistration.tooltip.lissn\')}" label="%{getText(\"registerRepoDnet.lissn\")}" readonly="%{readonlyFields}" /> |
|
70 |
</s:if> |
|
71 |
<%-- <s:if test="%{readonlyFields}"> --%> |
|
72 |
<s:textarea name="repo.description" title="%{getText(\'repoRegistration.tooltip.description\')}" label="%{getText(\"registerRepoDnet.description\")}" cols="50" rows="10" readonly="%{readonlyFields}"/> |
|
73 |
<%-- </s:if> --%> |
|
74 |
<%-- <s:textfield name="iconUrl" size="65" title="%{getText(\'repoRegistration.tooltip.iconUrl\')}" label="%{getText(\"registerRepoDnet.iconUrl\")}" required="true" readonly="%{readonlyFields}" /> --%> |
|
75 |
<s:if test="%{readonlyFields}"> |
|
76 |
<tr><td colspan="2"><s:fielderror fieldName="countryName"/></td></tr> |
|
77 |
<s:textfield name="repo.countryName" value="%{repo.countryName}" title="%{getText(\'repoRegistration.tooltip.country\')}" label="%{getText(\"registerRepoDnet.country\")}" required="true" readonly="%{readonlyFields}"/> |
|
78 |
</s:if> |
|
79 |
<s:else> |
|
80 |
<tr><td colspan="2"><s:fielderror fieldName="countryName"/></td></tr> |
|
81 |
<s:select name="repo.countryName" list="countries" value="%{repo.countryName}" title="%{getText(\'repoRegistration.tooltip.country\')}" label="%{getText(\"registerRepoDnet.country\")}" required="true"/> |
|
82 |
</s:else> |
|
83 |
<tr><td colspan="2"><s:fielderror fieldName="longitude"/></td></tr> |
|
84 |
<s:textfield name="repo.longitude" size="10" title="%{getText(\'repoRegistration.tooltip.longtitude\')}" label="%{getText(\"registerRepoDnet.longtitude\")}" required="true" readonly="%{readonlyFields}"/> |
|
85 |
<tr><td colspan="2"><s:fielderror fieldName="latitude"/></td></tr> |
|
86 |
<s:textfield name="repo.latitude" size="10" title="%{getText(\'repoRegistration.tooltip.latitude\')}" label="%{getText(\"registerRepoDnet.latitude\")}" required="true" readonly="%{readonlyFields}"/> |
|
87 |
<%-- <s:if test="%{readonlyFields}"> --%> |
|
88 |
<%-- <s:textfield name="timezone" list="timezones" listKey="offset" listValue="name" title="%{getText(\'repoRegistration.tooltip.timezone\')}" label="%{getText(\"registerRepoDnet.timezone\")}" required="true" readonly="%{readonlyFields}" /> --%> |
|
89 |
<%-- </s:if> --%> |
|
90 |
<%-- <s:else> --%> |
|
91 |
<%-- <s:select name="timezone" list="timezones" listKey="offset" listValue="name" title="%{getText(\'repoRegistration.tooltip.timezone\')}" label="%{getText(\"registerRepoDnet.timezone\")}" required="true"/> --%> |
|
92 |
<%-- </s:else> --%> |
|
93 |
<tr><td colspan="2"><s:fielderror fieldName="websiteUrl"/></td></tr> |
|
94 |
<s:textfield name="repo.websiteUrl" size="65" title="%{getText(\'repoRegistration.tooltip.entryUrl\')}" label="%{getText(\"registerRepoDnet.entryUrl\")}" required="true" readonly="%{readonlyFields}" /> |
|
95 |
<tr><td colspan="2"><s:fielderror fieldName="organization"/></td></tr> |
|
96 |
<s:textfield name="repo.organization" size="65" title="%{getText(\'repoRegistration.tooltip.repoInst\')}" label="%{getText(\"registerRepoDnet.repoInst\")}" required="true" readonly="%{readonlyFields}" /> |
|
97 |
<tr> <td colspan="2" class="section"><s:text name="registerRepoDnet.title0b"/></td></tr> |
|
98 |
<tr><td colspan="2"><s:fielderror fieldName="englishName"/></td></tr> |
|
99 |
<s:textfield name="repo.englishName" size="65" title="%{getText(\'repoRegistration.tooltip.englishName\')}" label="%{getText(\"registerRepoDnet.englishName\")}" required="true" readonly="%{readonlyFields}" /> |
|
100 |
<s:textfield name="repo.logoUrl" size="65" title="%{getText(\'repoRegistration.tooltip.iconUrl\')}" label="%{getText(\"registerRepoDnet.iconUrl\")}" readonly="%{readonlyFields}"/> |
|
101 |
<tr> <td> </td><td class="comments smallfont">Please make sure that the maximum size of the uploaded image is width=360px, height=240px</td></tr> |
|
102 |
|
|
103 |
<s:select name="repo.timezone" list="timezones" listKey="offset" listValue="name" title="%{getText(\'repoRegistration.tooltip.timezone\')}" label="%{getText(\"registerRepoDnet.timezone\")}" required="true" readonly="%{readonlyFields}" /> |
|
104 |
|
|
105 |
<tr> <td colspan="2" class="section"><s:text name="registerRepoDnet.title1"/></td></tr> |
|
106 |
<tr><td colspan="2"><s:fielderror fieldName="contactEmail"/></td></tr> |
|
107 |
<s:textfield name="repo.contactEmail" size="65" title="%{getText(\'repoRegistration.tooltip.adminEmail\')}" label="%{getText(\"registerRepoDnet.adminEmail\")}" required="true" readonly="%{mode=='opendoar'}" /> |
|
108 |
|
|
109 |
<tr> <td colspan="2" class="section"><s:text name="registerRepoDnet.title2"/></td></tr> |
|
110 |
|
|
111 |
<!-- <tr> --> |
|
112 |
<!-- <td colspan="2"> --> |
|
113 |
<!-- <div class="info"> --> |
|
114 |
<%-- <s:text name="registerRepoDnet.descriptionGen1"/> --%> |
|
115 |
<!-- </div> --> |
|
116 |
<!-- </td> --> |
|
117 |
<!-- </tr> --> |
|
118 |
<s:if test="hasFieldErrors()"> |
|
119 |
<tr><td colspan="2"><s:fielderror fieldName="baseUrl"/></td></tr> |
|
120 |
<tr><td colspan="2"><s:fielderror fieldName="validationSet"/></td></tr> |
|
121 |
</s:if> |
|
122 |
<table id="myTable" class="zebra" style="table-layout:fixed; width:100%"> |
|
123 |
<thead> |
|
124 |
<tr> |
|
125 |
<s:if test="%{dbMode.trim().toLowerCase().equals(\"dms\")}"> |
|
126 |
<th scope="col" style="width:20%"><s:text name="registerRepoDnet.baseUrl"/></th> |
|
127 |
<th scope="col" style="width:15%"><s:text name="registerRepoDnet.validationSet"/></th> |
|
128 |
<th scope="col" style="width:25%"><s:text name="registerRepoDnet.compliance"/></th> |
|
129 |
<th scope="col" style="width:25%"><s:text name="registerRepoDnet.compatibilityLevel"/></th> |
|
130 |
<th scope="col" style="width:10%"><s:text name="registerRepoDnet.deteleApi"/></th> |
|
131 |
</s:if> |
|
132 |
<s:else> |
|
133 |
<th scope="col" style="width:40%"><s:text name="registerRepoDnet.baseUrl"/></th> |
|
134 |
<th scope="col" style="width:30%"><s:text name="registerRepoDnet.validationSet"/></th> |
|
135 |
<th scope="col" style="width:30%"><s:text name="registerRepoDnet.compatibilityLevel"/></th> |
|
136 |
</s:else> |
|
137 |
</tr> |
|
138 |
</thead> |
|
139 |
<tbody> |
|
140 |
<s:iterator value="interfaces" var="opendoarrepositoryinterface" status="stat"> |
|
141 |
<tr> |
|
142 |
<s:if test="%{dbMode.trim().toLowerCase().equals(\"dms\")}"> |
|
143 |
<td><s:textfield theme="simple" size ="22%" name="interfaces[%{#stat.count-1}].baseUrl" value="%{#opendoarrepositoryinterface.baseUrl}" title="%{getText(\'repoRegistration.tooltip.baseUrl\')}" required="true"/></td> |
|
144 |
<td><s:textfield theme="simple" size ="14%" name="interfaces[%{#stat.count-1}].accessSet" value="%{#opendoarrepositoryinterface.accessSet}" title="%{getText(\'repoRegistration.tooltip.accessSet\')}" required="true"/></td> |
|
145 |
<td><s:textfield theme="simple" size ="30%" name="interfaces[%{#stat.count-1}].compliance" value="%{#opendoarrepositoryinterface.compliance}" title="%{getText(\'repoRegistration.tooltip.compliance\')}" readonly="true"/></td> |
|
146 |
</s:if> |
|
147 |
<s:else> |
|
148 |
<td><s:textfield theme="simple" size ="30%" name="interfaces[%{#stat.count-1}].baseUrl" value="%{#opendoarrepositoryinterface.baseUrl}" title="%{getText(\'repoRegistration.tooltip.baseUrl\')}" required="true"/></td> |
|
149 |
<td><s:textfield theme="simple" size ="20%" name="interfaces[%{#stat.count-1}].accessSet" value="%{#opendoarrepositoryinterface.accessSet}" title="%{getText(\'repoRegistration.tooltip.accessSet\')}" required="true"/></td> |
|
150 |
</s:else> |
|
151 |
<td> |
|
152 |
<s:if test="%{mode=='re3data'}"> |
|
153 |
<s:select theme="simple" name="interfaces[%{#stat.count-1}].desiredCompatibilityLevel" |
|
154 |
value="%{#opendoarrepositoryinterface.desiredCompatibilityLevel}" |
|
155 |
list="#{'openaire3.0_data':'OpenAIRE 3.0 (OA, funding)'}" |
|
156 |
required="true" |
|
157 |
/> |
|
158 |
</s:if> |
|
159 |
<s:else> |
|
160 |
<s:select theme="simple" name="interfaces[%{#stat.count-1}].desiredCompatibilityLevel" |
|
161 |
value="%{#opendoarrepositoryinterface.desiredCompatibilityLevel}" |
|
162 |
list="#{'openaire3.0':'OpenAIRE 3.0 (OA, funding)', 'openaire2.0':'OpenAIRE 2.0 (EC funding)', 'driver':'OpenAIRE Basic (DRIVER OA)'}" |
|
163 |
required="true" |
|
164 |
/> |
|
165 |
</s:else> |
|
166 |
</td> |
|
167 |
<s:if test="%{dbMode.trim().toLowerCase().equals(\"dms\") && #opendoarrepositoryinterface.removable}"> |
|
168 |
<td align="center"><s:checkbox theme="simple" align="center" name="interfaces[%{#stat.count-1}].deleteApi" value="%{#opendoarrepositoryinterface.deleteApi}"/></td> |
|
169 |
</s:if> |
|
170 |
<s:else> |
|
171 |
<td></td> |
|
172 |
</s:else> |
|
173 |
<s:hidden name="interfaces[%{#stat.count-1}].id" value="%{#opendoarrepositoryinterface.id}"/> |
|
174 |
<s:hidden name="interfaces[%{#stat.count-1}].removable" value="%{#opendoarrepositoryinterface.removable}"/> |
|
175 |
|
|
176 |
</tr> |
|
177 |
</s:iterator> |
|
178 |
</tbody> |
|
179 |
</table> |
|
180 |
<table class="zebra" style="table-layout:fixed; width:100%"> |
|
181 |
<tr><td colspan="4"> |
|
182 |
<s:if test="%{mode=='re3data'}"> |
|
183 |
<s:if test="%{dbMode.trim().toLowerCase().equals(\"dms\")}"> |
|
184 |
<a id="cloneButton1" onclick="addNew_data()">Add new Interface</a> |
|
185 |
</s:if> |
|
186 |
<s:else> |
|
187 |
<a id="cloneButton1" onclick="addNewDirect_data()">Add new Interface</a> |
|
188 |
</s:else> |
|
189 |
</s:if> |
|
190 |
<s:else> |
|
191 |
<s:if test="%{dbMode.trim().toLowerCase().equals(\"dms\")}"> |
|
192 |
<a id="cloneButton1" onclick="addNew()">Add new Interface</a> |
|
193 |
</s:if> |
|
194 |
<s:else> |
|
195 |
<a id="cloneButton1" onclick="addNewDirect()">Add new Interface</a> |
|
196 |
</s:else> |
|
197 |
</s:else> |
|
198 |
</td></tr> </table> |
|
199 |
<s:if test="%{dbMode.trim().toLowerCase().equals(\"direct\")}"> |
|
200 |
<table><tr> <td colspan="2" class="section"><s:text name="registerRepoDnet.title3"/></td></tr></table> |
|
201 |
<table id="myTable1" class="zebra" style="table-layout:fixed; width:100%"> |
|
202 |
<thead> |
|
203 |
<tr> |
|
204 |
<th scope="col" style="width:40%">OpenAIRE Basic (ex DRIVER)</th> |
|
205 |
<th scope="col" style="width:30%">OpenAIRE 2.0</th> |
|
206 |
<th scope="col" style="width:30%">OpenAIRE 3.0</th> |
|
207 |
</tr> |
|
208 |
</thead> |
|
209 |
<tbody> |
|
210 |
<tr> |
|
211 |
<s:iterator value="openaireCompliant" var="compliant" status="stat"> |
|
212 |
<td><s:property value="%{#compliant}" /></td> |
|
213 |
</s:iterator> |
|
214 |
</tr> |
|
215 |
</tbody> |
|
216 |
</table> |
|
217 |
</s:if> |
|
218 |
<s:if test="%{dbMode.trim().toLowerCase().equals(\"dms\") && registrationFilesDownload}"> |
|
219 |
<table id="pdfTable" style="table-layout:fixed; width:100%"> |
|
220 |
<tr> <td colspan="5" class="section"><s:text name="registerRepoDnet.title4"/></td></tr> |
|
221 |
<tr> <td colspan="4"><s:text name="registerRepoDnet.files.allow"/></td><td><s:checkbox id ="allowPdf" theme="simple" name="pubFileIface.allow"/> </td></tr> |
|
222 |
<tr> |
|
223 |
<td colspan="5" > |
|
224 |
<div class="note"> |
|
225 |
<s:text name="registerRepoDnet.files.allow1"/> |
|
226 |
</div> |
|
227 |
</td> |
|
228 |
</tr> |
|
229 |
<tr class="addSource"> |
|
230 |
<td colspan="5" > |
|
231 |
<div class="info"> |
|
232 |
<s:text name="registerRepoDnet.files.info"/> |
|
233 |
</div> |
|
234 |
</td> |
|
235 |
</tr> |
|
236 |
<tr class="addSource"><td><s:text name="registerRepoDnet.files.methodology"/></td><td colspan="3"><s:radio cssClass="myRadio" theme ="simple" name="pubFileIface.methodology" list="#{'files_from_metadata':'from HTTP addresses in the metadata records (dc:identifier)','files_from_api':'from standard APIs'}"/></td></tr> |
|
237 |
<tr class="harvest"><td> </td><td><s:text name="registerRepoDnet.files.protocol"/></td><td><s:select theme="simple" name="pubFileIface.protocol" value="%{#pubFileIface.protocol}" list="#{'ftp':'FTP'}"/></td><td colspan="2"></td></tr> |
|
238 |
<tr class="harvest"><td> </td><td><s:text name="registerRepoDnet.files.url"/></td><td colspan="2"><s:textfield theme="simple" size ="30" name="pubFileIface.url"/></td><td></td></tr> |
|
239 |
<tr class="harvest"><td> </td><td><s:text name="registerRepoDnet.files.username"/></td ><td colspan="2"><s:textfield theme="simple" size ="30" name="pubFileIface.username"/></td><td></td></tr> |
|
240 |
<tr class="harvest"><td> </td><td><s:text name="registerRepoDnet.files.password"/></td ><td colspan="2"><s:textfield theme="simple" size ="30" name="pubFileIface.password"/></td><td></td></tr> |
|
241 |
<tr class="harvest"><td> </td><td><s:text name="registerRepoDnet.files.namingConvention"/></td><td colspan="2"><s:radio theme="simple" name="pubFileIface.convention" list="#{'oai_pmh_identifier':'OAI-PMH Identifier','doi':'DOI'}"/></td><td></td></tr> |
|
242 |
<tr class="metadata"><td> </td><td><s:text name="registerRepoDnet.files.xpath"/></td ><td colspan="2"><s:textfield theme="simple" size ="30" name="pubFileIface.xpath"/></td><td></td></tr> |
|
243 |
|
|
244 |
</table> |
|
245 |
</s:if> |
|
246 |
<tr><td colspan="2"><hr class="dotted"></td></tr> |
|
247 |
<table id="progressTable" style="table-layout:fixed; width:100%"> |
|
248 |
<tr class="progress"><td> |
|
249 |
<div class="info">Checking if interface's Url and Validation Set are valid... |
|
250 |
</div></td></tr> |
|
251 |
</table> |
|
252 |
<s:submit id="subm" value="Register" cssClass="button-default"/> |
|
253 |
</s:form> |
|
254 |
|
|
255 |
</div> |
|
256 |
</div> |
|
257 |
</div> |
|
258 |
</div> |
|
259 |
</div> |
|
260 |
</div> |
|
261 |
</div> |
|
262 |
<div style="clear: both;"> </div> |
|
263 |
</div> |
|
264 |
<!-- NMI This needs to be the same in all pages and the text is some properties file --> |
|
265 |
<div id="footer"> |
|
266 |
<jsp:include page="footer.jsp"/> |
|
267 |
</div> |
|
268 |
</div> |
|
269 |
</div> |
|
270 |
</body> |
|
271 |
</html> |
modules/uoa-madgik-validator/trunk/src/main/webapp/jsps/js/repoInterfacesBak.js | ||
---|---|---|
1 |
$(document).ready(function(){ |
|
2 |
var checked1; |
|
3 |
$('.progress').hide(); |
|
4 |
if($('#allowPdf').is(':checked')) { |
|
5 |
$('.addSource').show(); |
|
6 |
checked1 = ($('#registerRepo_pubFileIface_methodologyfiles_from_api').is(':checked')); |
|
7 |
checked2 = ($('#registerRepo_pubFileIface_methodologyfiles_from_metadata').is(':checked')); |
|
8 |
if($('#registerRepo_pubFileIface_methodologyfiles_from_api').is(':checked')) { |
|
9 |
$('.harvest').show(); |
|
10 |
$('.metadata').hide(); |
|
11 |
} |
|
12 |
else { |
|
13 |
$('.metadata').show(); |
|
14 |
$('.harvest').hide(); |
|
15 |
} |
|
16 |
} else { |
|
17 |
$('.addSource').hide(); |
|
18 |
$('.harvest').hide(); |
|
19 |
$('.metadata').hide(); |
|
20 |
} |
|
21 |
$('#allowPdf').change(function(){ |
|
22 |
var checked = $(this).is(":checked"); |
|
23 |
if(!checked) { |
|
24 |
$('.addSource').hide(); |
|
25 |
$('.harvest').hide(); |
|
26 |
} else { |
|
27 |
$('.addSource').show(); |
|
28 |
if(checked1) { |
|
29 |
$('.harvest').show(); |
|
30 |
} |
|
31 |
if(checked2) { |
|
32 |
$('.metadata').show(); |
|
33 |
} |
|
34 |
} |
|
35 |
}); |
|
36 |
|
|
37 |
$('#subm').click(function() { |
|
38 |
$('.progress').show(); |
|
39 |
}); |
|
40 |
|
|
41 |
$('.myRadio').click(function() { |
|
42 |
if($(this).val() == 'files_from_api') { |
|
43 |
$('.harvest').show(); |
|
44 |
$('.metadata').hide(); |
|
45 |
} |
|
46 |
else if($(this).val() == 'files_from_metadata') { |
|
47 |
$('.harvest').hide(); |
|
48 |
$('.metadata').show(); |
|
49 |
} |
|
50 |
}); |
|
51 |
}); |
|
52 |
|
|
53 |
function addNew(){ |
|
54 |
var rowCount = $('#myTable tr').length - 1; |
|
55 |
$('#myTable').append('<tr>'+ |
|
56 |
'<td><input type="text" name="interfaces['+ rowCount + '].baseUrl" size="22%" required="true"></td>'+ |
|
57 |
'<td><input type="text" name="interfaces['+ rowCount + '].accessSet" size="14%" required="true"></td>'+ |
|
58 |
'<td><input type="text" name="interfaces['+ rowCount + '].compliance" value="not available" size="30%" required="true"></td>'+ |
|
59 |
'<td><select name="interfaces['+ rowCount + '].desiredCompatibilityLevel"> <option value="openaire3.0">OpenAIRE 3.0 (OA, funding)</option> <option value="openaire2.0">OpenAIRE 2.0 (EC funding)</option> <option value="driver">OpenAIRE Basic (DRIVER OA)</option></select></td>'+ |
|
60 |
'<td></td>'+ |
|
61 |
'</tr>'); |
|
62 |
} |
|
63 |
|
|
64 |
function addNewDirect(){ |
|
65 |
var rowCount = $('#myTable tr').length - 1; |
|
66 |
$('#myTable').append('<tr>'+ |
|
67 |
'<td><input type="text" name="interfaces['+ rowCount + '].baseUrl" size="30%" required="true"></td>'+ |
|
68 |
'<td><input type="text" name="interfaces['+ rowCount + '].accessSet" size="20%" required="true"></td>'+ |
|
69 |
'<td><select name="interfaces['+ rowCount + '].desiredCompatibilityLevel"> <option value="openaire3.0">OpenAIRE 3.0 (OA, funding)</option> <option value="openaire2.0">OpenAIRE 2.0 (EC funding)</option> <option value="driver">OpenAIRE Basic (DRIVER OA)</option></select></td>'+ |
|
70 |
'</tr>'); |
|
71 |
} |
|
72 |
|
|
73 |
function addNew_data(){ |
|
74 |
var rowCount = $('#myTable tr').length - 1; |
|
75 |
$('#myTable').append('<tr>'+ |
|
76 |
'<td><input type="text" name="interfaces['+ rowCount + '].baseUrl" size="22%" required="true"></td>'+ |
|
77 |
'<td><input type="text" name="interfaces['+ rowCount + '].accessSet" size="14%" required="true"></td>'+ |
|
78 |
'<td><input type="text" name="interfaces['+ rowCount + '].compliance" value="not available" size="30%" required="true"></td>'+ |
|
79 |
'<td><select name="interfaces['+ rowCount + '].desiredCompatibilityLevel"><option value="openaire3.0_data">OpenAIRE 3.0 (OA, funding)</option></select></td>'+ |
|
80 |
'<td></td>'+ |
|
81 |
'</tr>'); |
|
82 |
} |
|
83 |
|
|
84 |
function addNewDirect_data(){ |
|
85 |
var rowCount = $('#myTable tr').length - 1; |
|
86 |
$('#myTable').append('<tr>'+ |
|
87 |
'<td><input type="text" name="interfaces['+ rowCount + '].baseUrl" size="30%" required="true"></td>'+ |
|
88 |
'<td><input type="text" name="interfaces['+ rowCount + '].accessSet" size="20%" required="true"></td>'+ |
|
89 |
'<td><select name="interfaces['+ rowCount + '].desiredCompatibilityLevel"><option value="openaire3.0_data">OpenAIRE 3.0</option></select></td>'+ |
|
90 |
'</tr>'); |
|
91 |
} |
modules/uoa-madgik-validator/trunk/src/main/webapp/jsps/js/repoInterfaces.js | ||
---|---|---|
1 | 1 |
$(document).ready(function(){ |
2 | 2 |
var checked1; |
3 |
$('#submWait').hide(); |
|
3 | 4 |
$('.progress').hide(); |
4 | 5 |
if($('#allowPdf').is(':checked')) { |
5 | 6 |
$('.addSource').show(); |
... | ... | |
36 | 37 |
|
37 | 38 |
$('#subm').click(function() { |
38 | 39 |
$('.progress').show(); |
40 |
$(this).hide(); |
|
41 |
$('#submWait').show(); |
|
42 |
// $(this).attr("disabled","disabled"); |
|
39 | 43 |
}); |
40 | 44 |
|
41 | 45 |
$('.myRadio').click(function() { |
... | ... | |
51 | 55 |
}); |
52 | 56 |
|
53 | 57 |
function addNew(){ |
54 |
var rowCount = $('#myTable tr').length - 1; |
|
55 |
$('#myTable').append('<tr>'+ |
|
56 |
'<td><input type="text" name="interfaces['+ rowCount + '].baseUrl" size="22%" required="true"></td>'+ |
|
57 |
'<td><input type="text" name="interfaces['+ rowCount + '].accessSet" size="14%" required="true"></td>'+ |
|
58 |
'<td><input type="text" name="interfaces['+ rowCount + '].compliance" value="not available" size="30%" required="true"></td>'+ |
|
59 |
'<td><select name="interfaces['+ rowCount + '].desiredCompatibilityLevel"> <option value="openaire3.0">OpenAIRE 3.0 (OA, funding)</option> <option value="openaire2.0">OpenAIRE 2.0 (EC funding)</option> <option value="driver">OpenAIRE Basic (DRIVER OA)</option></select></td>'+ |
|
60 |
'<td></td>'+ |
|
61 |
'</tr>'); |
|
58 |
var iFaceCount = $('#myTable tr').length / 6; |
|
59 |
var tempIfaceCount = iFaceCount + 1; |
|
60 |
$('#myTable').append( |
|
61 |
'<tr><th scope="col" class="numb">Interface Number</th><td class="numb">' + tempIfaceCount + '</td></tr>'+ |
|
62 |
'<tr><th scope="col">Base OAI-PMH Url</th><td><input type="text" name="interfaces['+ iFaceCount + '].baseUrl" size="50" required="true"></td></tr>'+ |
|
63 |
'<tr><th scope="col">Validation Set</th><td><input type="text" name="interfaces['+ iFaceCount + '].accessSet" size="50" required="true"></td></tr>'+ |
|
64 |
'<tr><th scope="col">Current Compatibility Level</th><td><input type="text" name="interfaces['+ iFaceCount + '].compliance" value="not available" size="50" required="true" readonly="true"></td></tr>'+ |
|
65 |
'<tr><th scope="col">Desired Compatibility Level</th><td><select name="interfaces['+ iFaceCount + '].desiredCompatibilityLevel"> <option value="openaire3.0">OpenAIRE 3.0 (OA, funding)</option> <option value="openaire2.0">OpenAIRE 2.0 (EC funding)</option> <option value="driver">OpenAIRE Basic (DRIVER OA)</option></select></td></tr>'+ |
|
66 |
'<tr><th scope="col">Remove</th><td></td></tr>'); |
|
62 | 67 |
} |
63 | 68 |
|
64 | 69 |
function addNewDirect(){ |
65 |
var rowCount = $('#myTable tr').length - 1; |
|
66 |
$('#myTable').append('<tr>'+ |
|
67 |
'<td><input type="text" name="interfaces['+ rowCount + '].baseUrl" size="30%" required="true"></td>'+ |
|
68 |
'<td><input type="text" name="interfaces['+ rowCount + '].accessSet" size="20%" required="true"></td>'+ |
|
69 |
'<td><select name="interfaces['+ rowCount + '].desiredCompatibilityLevel"> <option value="openaire3.0">OpenAIRE 3.0 (OA, funding)</option> <option value="openaire2.0">OpenAIRE 2.0 (EC funding)</option> <option value="driver">OpenAIRE Basic (DRIVER OA)</option></select></td>'+ |
|
70 |
'</tr>'); |
|
70 |
var iFaceCount = $('#myTable tr').length / 4; |
|
71 |
var tempIfaceCount = iFaceCount + 1; |
|
72 |
$('#myTable').append( |
|
73 |
'<tr><th scope="col" class="numb">Interface Number</th><td class="numb">' + tempIfaceCount + '</td></tr>'+ |
|
74 |
'<tr><th scope="col">Base OAI-PMH Url</th><td><input type="text" name="interfaces['+ iFaceCount + '].baseUrl" size="50" required="true"></td>'+ |
|
75 |
'<tr><th scope="col">Validation Set</th><td><input type="text" name="interfaces['+ iFaceCount + '].accessSet" size="50" required="true"></td>'+ |
|
76 |
'<tr><th scope="col">Desired Compatibility Level</th><td><select name="interfaces['+ iFaceCount + '].desiredCompatibilityLevel"> <option value="openaire3.0">OpenAIRE 3.0 (OA, funding)</option> <option value="openaire2.0">OpenAIRE 2.0 (EC funding)</option> <option value="driver">OpenAIRE Basic (DRIVER OA)</option></select></td>'); |
|
71 | 77 |
} |
72 | 78 |
|
73 | 79 |
function addNew_data(){ |
74 |
var rowCount = $('#myTable tr').length - 1; |
|
75 |
$('#myTable').append('<tr>'+ |
|
76 |
'<td><input type="text" name="interfaces['+ rowCount + '].baseUrl" size="22%" required="true"></td>'+ |
|
77 |
'<td><input type="text" name="interfaces['+ rowCount + '].accessSet" size="14%" required="true"></td>'+ |
|
78 |
'<td><input type="text" name="interfaces['+ rowCount + '].compliance" value="not available" size="30%" required="true"></td>'+ |
|
79 |
'<td><select name="interfaces['+ rowCount + '].desiredCompatibilityLevel"><option value="openaire3.0_data">OpenAIRE 3.0 (OA, funding)</option></select></td>'+ |
|
80 |
'<td></td>'+ |
|
81 |
'</tr>'); |
|
80 |
var iFaceCount = $('#myTable tr').length / 6; |
|
81 |
var tempIfaceCount = iFaceCount + 1; |
|
82 |
$('#myTable').append( |
|
83 |
'<tr><th scope="col" class="numb">Interface Number</th><td class="numb">' + tempIfaceCount + '</td></tr>'+ |
|
84 |
'<tr><th scope="col">Base OAI-PMH Url</th><td><input type="text" name="interfaces['+ iFaceCount + '].baseUrl" size="50" required="true"></td></tr>'+ |
|
85 |
'<tr><th scope="col">Validation Set</th><td><input type="text" name="interfaces['+ iFaceCount + '].accessSet" size="50" required="true"></td></tr>'+ |
|
86 |
'<tr><th scope="col">Current Compatibility Level</th><td><input type="text" name="interfaces['+ iFaceCount + '].compliance" value="not available" size="50" required="true" readonly="true"></td></tr>'+ |
|
87 |
'<tr><th scope="col">Desired Compatibility Level</th><td><select name="interfaces['+ iFaceCount + '].desiredCompatibilityLevel"><option value="openaire3.0_data">OpenAIRE 3.0 (OA, funding)</option></select></td></tr>'+ |
|
88 |
'<tr><th scope="col">Remove<s:text name="registerRepoDnet.deteleApi"/></th><td></td></tr>'); |
|
82 | 89 |
} |
83 | 90 |
|
84 | 91 |
function addNewDirect_data(){ |
85 |
var rowCount = $('#myTable tr').length - 1; |
|
86 |
$('#myTable').append('<tr>'+ |
|
87 |
'<td><input type="text" name="interfaces['+ rowCount + '].baseUrl" size="30%" required="true"></td>'+ |
|
88 |
'<td><input type="text" name="interfaces['+ rowCount + '].accessSet" size="20%" required="true"></td>'+ |
|
89 |
'<td><select name="interfaces['+ rowCount + '].desiredCompatibilityLevel"><option value="openaire3.0_data">OpenAIRE 3.0</option></select></td>'+ |
|
90 |
'</tr>'); |
|
92 |
var iFaceCount = $('#myTable tr').length / 4; |
|
93 |
var tempIfaceCount = iFaceCount + 1; |
|
94 |
$('#myTable').append( |
|
95 |
'<tr><th scope="col" class="numb">Interface Number</th><td class="numb">' + tempIfaceCount + '</td></tr>'+ |
|
96 |
'<tr><th scope="col">Base OAI-PMH Url</th><td><input type="text" name="interfaces['+ iFaceCount + '].baseUrl" size="50" required="true"></td></tr>'+ |
|
97 |
'<tr><th scope="col">Validation Set</th><td><input type="text" name="interfaces['+ iFaceCount + '].accessSet" size="50" required="true"></td></tr>'+ |
|
98 |
'<tr><th scope="col">Desired Compatibility Level</th><td><select name="interfaces['+ iFaceCount + '].desiredCompatibilityLevel"><option value="openaire3.0_data">OpenAIRE 3.0</option></select></td></tr>'); |
|
91 | 99 |
} |
modules/uoa-madgik-validator/trunk/src/main/webapp/jsps/editRepository.jsp | ||
---|---|---|
119 | 119 |
<tr><td colspan="2"><s:fielderror fieldName="baseUrl"/></td></tr> |
120 | 120 |
<tr><td colspan="2"><s:fielderror fieldName="validationSet"/></td></tr> |
121 | 121 |
</s:if> |
122 |
<table id="myTable" class="zebra" style="table-layout:fixed; width:100%"> |
|
123 |
<thead> |
|
124 |
<tr> |
|
125 |
<s:if test="%{dbMode.trim().toLowerCase().equals(\"dms\")}"> |
|
126 |
<th scope="col" style="width:20%"><s:text name="registerRepoDnet.baseUrl"/></th> |
|
127 |
<th scope="col" style="width:15%"><s:text name="registerRepoDnet.validationSet"/></th> |
|
128 |
<th scope="col" style="width:25%"><s:text name="registerRepoDnet.compliance"/></th> |
|
129 |
<th scope="col" style="width:25%"><s:text name="registerRepoDnet.compatibilityLevel"/></th> |
|
130 |
<th scope="col" style="width:10%"><s:text name="registerRepoDnet.deteleApi"/></th> |
|
131 |
</s:if> |
|
132 |
<s:else> |
|
133 |
<th scope="col" style="width:40%"><s:text name="registerRepoDnet.baseUrl"/></th> |
|
134 |
<th scope="col" style="width:30%"><s:text name="registerRepoDnet.validationSet"/></th> |
|
135 |
<th scope="col" style="width:30%"><s:text name="registerRepoDnet.compatibilityLevel"/></th> |
|
136 |
</s:else> |
|
137 |
</tr> |
|
138 |
</thead> |
|
122 |
<table id="myTable" class="zebra1" style="table-layout:fixed; width:100%"> |
|
139 | 123 |
<tbody> |
140 | 124 |
<s:iterator value="interfaces" var="opendoarrepositoryinterface" status="stat"> |
141 |
<tr> |
|
125 |
<tr><th scope="col" class="numb">Interface Number</th><td class="numb"><s:text name="%{#stat.count}"/></td></tr> |
|
126 |
|
|
142 | 127 |
<s:if test="%{dbMode.trim().toLowerCase().equals(\"dms\")}"> |
143 |
<td><s:textfield theme="simple" size ="22%" name="interfaces[%{#stat.count-1}].baseUrl" value="%{#opendoarrepositoryinterface.baseUrl}" title="%{getText(\'repoRegistration.tooltip.baseUrl\')}" required="true"/></td>
|
|
144 |
<td><s:textfield theme="simple" size ="14%" name="interfaces[%{#stat.count-1}].accessSet" value="%{#opendoarrepositoryinterface.accessSet}" title="%{getText(\'repoRegistration.tooltip.accessSet\')}" required="true"/></td>
|
|
145 |
<td><s:textfield theme="simple" size ="30%" name="interfaces[%{#stat.count-1}].compliance" value="%{#opendoarrepositoryinterface.compliance}" title="%{getText(\'repoRegistration.tooltip.compliance\')}" readonly="true"/></td>
|
|
128 |
<tr><th scope="col"><s:text name="registerRepoDnet.baseUrl"/></th><td><s:textfield theme="simple" size ="50" name="interfaces[%{#stat.count-1}].baseUrl" value="%{#opendoarrepositoryinterface.baseUrl}" title="%{getText(\'repoRegistration.tooltip.baseUrl\')}" required="true"/></td></tr>
|
|
129 |
<tr><th scope="col"><s:text name="registerRepoDnet.validationSet"/></th><td><s:textfield theme="simple" size ="50" name="interfaces[%{#stat.count-1}].accessSet" value="%{#opendoarrepositoryinterface.accessSet}" title="%{getText(\'repoRegistration.tooltip.accessSet\')}" required="true"/></td></tr>
|
|
130 |
<tr><th scope="col"><s:text name="registerRepoDnet.compliance"/></th><td><s:textfield theme="simple" size ="50" name="interfaces[%{#stat.count-1}].compliance" value="%{#opendoarrepositoryinterface.compliance}" title="%{getText(\'repoRegistration.tooltip.compliance\')}" readonly="true"/></td></tr>
|
|
146 | 131 |
</s:if> |
147 | 132 |
<s:else> |
148 |
<td><s:textfield theme="simple" size ="30%" name="interfaces[%{#stat.count-1}].baseUrl" value="%{#opendoarrepositoryinterface.baseUrl}" title="%{getText(\'repoRegistration.tooltip.baseUrl\')}" required="true"/></td>
|
|
149 |
<td><s:textfield theme="simple" size ="20%" name="interfaces[%{#stat.count-1}].accessSet" value="%{#opendoarrepositoryinterface.accessSet}" title="%{getText(\'repoRegistration.tooltip.accessSet\')}" required="true"/></td>
|
|
133 |
<tr><th scope="col"><s:text name="registerRepoDnet.baseUrl"/></th><td><s:textfield theme="simple" size ="50" name="interfaces[%{#stat.count-1}].baseUrl" value="%{#opendoarrepositoryinterface.baseUrl}" title="%{getText(\'repoRegistration.tooltip.baseUrl\')}" required="true"/></td></tr>
|
|
134 |
<tr><th scope="col"><s:text name="registerRepoDnet.validationSet"/></th><td><s:textfield theme="simple" size ="50" name="interfaces[%{#stat.count-1}].accessSet" value="%{#opendoarrepositoryinterface.accessSet}" title="%{getText(\'repoRegistration.tooltip.accessSet\')}" required="true"/></td></tr>
|
|
150 | 135 |
</s:else> |
136 |
<tr><th scope="col"><s:text name="registerRepoDnet.compatibilityLevel"/></th> |
|
151 | 137 |
<td> |
152 | 138 |
<s:if test="%{mode=='re3data'}"> |
153 | 139 |
<s:select theme="simple" name="interfaces[%{#stat.count-1}].desiredCompatibilityLevel" |
... | ... | |
164 | 150 |
/> |
165 | 151 |
</s:else> |
166 | 152 |
</td> |
153 |
</tr> |
|
154 |
<tr><th scope="col"><s:text name="registerRepoDnet.deteleApi"/></th> |
|
167 | 155 |
<s:if test="%{dbMode.trim().toLowerCase().equals(\"dms\") && #opendoarrepositoryinterface.removable}"> |
168 |
<td align="center"><s:checkbox theme="simple" align="center" name="interfaces[%{#stat.count-1}].deleteApi" value="%{#opendoarrepositoryinterface.deleteApi}"/></td>
|
|
156 |
<td><s:checkbox theme="simple" align="center" name="interfaces[%{#stat.count-1}].deleteApi" value="%{#opendoarrepositoryinterface.deleteApi}"/></td> |
|
169 | 157 |
</s:if> |
170 | 158 |
<s:else> |
171 |
<td></td> |
|
159 |
<td></td>
|
|
172 | 160 |
</s:else> |
161 |
</tr> |
|
173 | 162 |
<s:hidden name="interfaces[%{#stat.count-1}].id" value="%{#opendoarrepositoryinterface.id}"/> |
174 | 163 |
<s:hidden name="interfaces[%{#stat.count-1}].removable" value="%{#opendoarrepositoryinterface.removable}"/> |
175 |
|
|
176 |
</tr> |
|
177 | 164 |
</s:iterator> |
178 | 165 |
</tbody> |
179 | 166 |
</table> |
... | ... | |
250 | 237 |
</div></td></tr> |
251 | 238 |
</table> |
252 | 239 |
<s:submit id="subm" value="Register" cssClass="button-default"/> |
240 |
<s:submit id="submWait" value="Please Wait" disabled="true" cssClass="button-default"/> |
|
253 | 241 |
</s:form> |
254 | 242 |
|
255 | 243 |
</div> |
Also available in: Unified diff
*updated interface on Repo Registration page.(regarding adding multiple APIs)
*button 'Register' on Repo Registration page is now disabled after pressing it so that avoid duplicate registrations
*css fixes
*Registration emails contain more info about registered repo