Project

General

Profile

« Previous | Next » 

Revision 9498

Added by Jing Tao almost 9 years ago

Add a page for configuring the ezid.

View differences:

metacat-configuration.jsp
40 40
    Boolean replicationConfigured = (Boolean)request.getAttribute("replicationConfigured");
41 41
    String dataoneConfigured = (String)request.getAttribute("dataoneConfigured");
42 42
    String geoserverConfigured = (String)request.getAttribute("geoserverConfigured");
43
    String ezidConfigured = (String)request.getAttribute("ezidConfigured");
43 44
    Boolean metacatConfigured = (Boolean)request.getAttribute("metacatConfigured");
44 45
    Boolean metacatServletInitialized = (Boolean)request.getAttribute("metcatServletInitialized");
45 46
    String contextURL = (String)request.getAttribute("contextURL");
......
271 272
	%>     	
272 273
	   	</tr>
273 274
	
275
	<!-- ezid -->
276
     <%
277
    
278
        if (ezidConfigured != null && ezidConfigured.equals(PropertyService.CONFIGURED)) {
279
    %>
280
            <tr>
281
            <td class="configured-tag"><i class="icon-ok"></i> configured</td>
282
            <td class="property-title"> Dataone Configuration </td> 
283
            <td class="configure-link"><a href="<%= request.getContextPath() %>/admin?configureType=ezid"><i class="icon-cogs"></i>Reconfigure Now</a> </td>         
284
            </tr>
285
    <%
286
        } else if (ezidConfigured != null && ezidConfigured.equals(PropertyService.BYPASSED)){
287
    %>          
288
            <tr>
289
            <td class="configured-tag"><i class="icon-ok"></i> bypassed </td>  
290
            <td class="property-title">EZID Configuration for DOIs</td>  
291
    <%
292
            if (propsConfigured != null && propsConfigured) {
293
    %>
294
                
295
            <td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=ezid"><i class="icon-cogs"></i> Reconfigure Now</a> </td>                   
296
    <%
297
            } else {
298
    %> 
299
            <td class="configure-link inactive"> Configure Global Properties First </td>
300
    <%
301
            }
302
                %>      
303
            </tr>
304
    <%
305
        } else {
306
    %>          
307
            <tr>
308
            <td class="unconfigured-tag">unconfigured </td>  
309
            <td class="property-title"> EZID for Digital Object Identifiers (DOIs) Configuration </td>   
310
    <%
311
            if (propsConfigured != null && propsConfigured) {
312
    %>
313
                
314
            <td class="configure-link"><a href="<%= request.getContextPath() %>/admin?configureType=ezid"> <i class="icon-cogs"></i> Configure Now</a> </td>         
315
                
316
    <%
317
            } else {
318
    %> 
319
            <td class="configure-link inactive"> Configure Global Properties First </td>
320
    <%
321
            }
322
    %>      
323
            </tr>
324
    <%
325
        }
326
    %>
274 327
	
275
	
276 328
	<!--  -->
277 329
	</table>
278 330
	

Also available in: Unified diff