Revision 8222
Added by Lauren Walker about 11 years ago
database-configuration.jsp | ||
---|---|---|
47 | 47 |
<body> |
48 | 48 |
<%@ include file="./header-section.jsp"%> |
49 | 49 |
|
50 |
<img src="<%= request.getContextPath() %>/metacat-logo-darkgray.png" width="100px" align="right"/> |
|
51 |
<h2>Database Install/Upgrade Utility</h2> |
|
52 |
|
|
53 |
<%@ include file="page-message-section.jsp"%> |
|
54 |
|
|
55 |
<% |
|
56 |
if (databaseVersion != null && databaseVersion.getVersionString().equals("0.0.0")) { |
|
57 |
%> |
|
58 |
The system has detected that this is a new database. <br><br> |
|
59 |
Please hit the Continue button to upgrade your database to version: <%= metacatVersion.getVersionString() %>. <br><br> |
|
60 |
<div class=warning>Warning: this will reinitialize your database. If this is not a new database, hit the Cancel button and contact support at <%= supportEmail %>. </div><br><br> |
|
61 |
The following scripts will be run: |
|
62 |
|
|
63 |
<ul> |
|
64 |
<% |
|
65 |
for (int i = 0; i < updateScriptList.size(); i++) { |
|
66 |
%> |
|
67 |
<li> |
|
68 |
<%= updateScriptList.elementAt(i) %> |
|
69 |
</li> |
|
70 |
<% |
|
71 |
} |
|
72 |
%> |
|
73 |
</ul> |
|
74 |
<input class="left-button" type="button" value="Continue" onClick="forward('./admin?configureType=database&processForm=true')"> |
|
75 |
<input class="button" type="button" value="Cancel" onClick="forward('./admin?configureType=configure&processForm=false')"> |
|
76 |
<% |
|
77 |
} else if (databaseVersion != null) { |
|
78 |
%> |
|
79 |
The system has detected the following database version: <%= databaseVersion.getVersionString() %> <br><br> |
|
80 |
Please hit the Continue button to upgrade your database to version: <%= metacatVersion.getVersionString() %> <br> |
|
81 |
<div class=warning>Warning: this will update your database. If the detected versions do not seem correct, hit the Cancel button and contact support at <%= supportEmail %> </div><br><br> |
|
82 |
The following scripts will be run: <br> |
|
83 |
<ul> |
|
84 |
<% |
|
85 |
for (int i = 0; i < updateScriptList.size(); i++) { |
|
86 |
%> |
|
87 |
<li> |
|
88 |
<%= updateScriptList.elementAt(i) %> |
|
89 |
</li> |
|
90 |
<% |
|
91 |
} |
|
92 |
%> |
|
93 |
</ul> |
|
94 |
<div class="buttons-wrapper"> |
|
95 |
<input class="left-button" type="button" value="Continue" onClick="forward('./admin?configureType=database&processForm=true')"> |
|
50 |
<div class="document"> |
|
51 |
<h2>Database Install/Upgrade Utility</h2> |
|
52 |
|
|
53 |
<p><%@ include file="page-message-section.jsp"%></p> |
|
54 |
|
|
55 |
<% |
|
56 |
if (databaseVersion != null && databaseVersion.getVersionString().equals("0.0.0")) { |
|
57 |
%> |
|
58 |
The system has detected that this is a new database. <br><br> |
|
59 |
Please hit the Continue button to upgrade your database to version: <%= metacatVersion.getVersionString() %>. <br><br> |
|
60 |
<div class=warning>Warning: this will reinitialize your database. If this is not a new database, hit the Cancel button and contact support at <%= supportEmail %>. </div><br><br> |
|
61 |
The following scripts will be run: |
|
62 |
|
|
63 |
<ul> |
|
64 |
<% |
|
65 |
for (int i = 0; i < updateScriptList.size(); i++) { |
|
66 |
%> |
|
67 |
<li> |
|
68 |
<%= updateScriptList.elementAt(i) %> |
|
69 |
</li> |
|
70 |
<% |
|
71 |
} |
|
72 |
%> |
|
73 |
</ul> |
|
74 |
<input class="button" type="button" value="Continue" onClick="forward('./admin?configureType=database&processForm=true')"> |
|
96 | 75 |
<input class="button" type="button" value="Cancel" onClick="forward('./admin?configureType=configure&processForm=false')"> |
97 |
</div> |
|
98 |
<% |
|
99 |
} else { |
|
100 |
%> |
|
101 |
<div class="buttons-wrapper"> |
|
102 |
<input class="left-button" disabled type="button" value="Continue" onClick="forward('./admin?configureType=database&processForm=true')"> |
|
103 |
<input class="button" type="button" value="Cancel" onClick="forward('./admin?configureType=configure&processForm=false')"> |
|
104 |
</div> |
|
105 |
<% |
|
106 |
} |
|
107 |
%> |
|
108 |
|
|
76 |
<% |
|
77 |
} else if (databaseVersion != null) { |
|
78 |
%> |
|
79 |
The system has detected the following database version: <%= databaseVersion.getVersionString() %> <br><br> |
|
80 |
Please hit the Continue button to upgrade your database to version: <%= metacatVersion.getVersionString() %> <br> |
|
81 |
<div class=warning>Warning: this will update your database. If the detected versions do not seem correct, hit the Cancel button and contact support at <%= supportEmail %> </div><br><br> |
|
82 |
The following scripts will be run: <br> |
|
83 |
<ul> |
|
84 |
<% |
|
85 |
for (int i = 0; i < updateScriptList.size(); i++) { |
|
86 |
%> |
|
87 |
<li> |
|
88 |
<%= updateScriptList.elementAt(i) %> |
|
89 |
</li> |
|
90 |
<% |
|
91 |
} |
|
92 |
%> |
|
93 |
</ul> |
|
94 |
<div class="buttons-wrapper"> |
|
95 |
<input class="button" type="button" value="Continue" onClick="forward('./admin?configureType=database&processForm=true')"> |
|
96 |
<input class="button" type="button" value="Cancel" onClick="forward('./admin?configureType=configure&processForm=false')"> |
|
97 |
</div> |
|
98 |
<% |
|
99 |
} else { |
|
100 |
%> |
|
101 |
<div class="buttons-wrapper"> |
|
102 |
<input class="button" disabled type="button" value="Continue" onClick="forward('./admin?configureType=database&processForm=true')"> |
|
103 |
<input class="button" type="button" value="Cancel" onClick="forward('./admin?configureType=configure&processForm=false')"> |
|
104 |
</div> |
|
105 |
<% |
|
106 |
} |
|
107 |
%> |
|
108 |
</div> |
|
109 | 109 |
<%@ include file="./footer-section.jsp"%> |
110 | 110 |
|
111 | 111 |
</body> |
Also available in: Unified diff
Matched the admin config pages to the default metacatUI theme. Changed the background image of the docs and config pages to a big cat for some metacat branding.