Revision 5566
Added by ben leinfelder over 14 years ago
lib/style/skins/semtools/session_vars.jsp | ||
---|---|---|
1 |
<%@ page import="edu.ucsb.nceas.metacat.client.*" %> |
|
2 |
<% |
|
3 |
/** |
|
4 |
* '$RCSfile$' |
|
5 |
* Authors: Matt Jones, CHad Berkley |
|
6 |
* Copyright: 2000 Regents of the University of California and the |
|
7 |
* National Center for Ecological Analysis and Synthesis |
|
8 |
* For Details: http://www.nceas.ucsb.edu/ |
|
9 |
* |
|
10 |
* '$Author$' |
|
11 |
* '$Date$' |
|
12 |
* '$Revision$' |
|
13 |
* |
|
14 |
* This program is free software; you can redistribute it and/or modify |
|
15 |
* it under the terms of the GNU General Public License as published by |
|
16 |
* the Free Software Foundation; either version 2 of the License, or |
|
17 |
* (at your option) any later version. |
|
18 |
* |
|
19 |
* This program is distributed in the hope that it will be useful, |
|
20 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
21 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
22 |
* GNU General Public License for more details. |
|
23 |
* |
|
24 |
* You should have received a copy of the GNU General Public License |
|
25 |
* along with this program; if not, write to the Free Software |
|
26 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
27 |
* |
|
28 |
* This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to |
|
29 |
* convert an XML file showing the resultset of a query |
|
30 |
* into an HTML format suitable for rendering with modern web browsers. |
|
31 |
*/ |
|
32 |
|
|
33 |
////////////////////////////////////////////////////////////////////////////// |
|
34 |
// |
|
35 |
// NOTE: |
|
36 |
// |
|
37 |
// GLOBAL CONSTANTS (SETTINGS SUCH AS METACAT URL, LDAP DOMAIN AND DEBUG |
|
38 |
// SWITCH) ARE ALL IN THE INCLUDE FILE "PORTAL_SETTINGS.jsp" |
|
39 |
// |
|
40 |
////////////////////////////////////////////////////////////////////////////// |
|
41 |
|
|
42 |
// GLOBAL VARIABLES ////////////////////////////////////////////////////////// |
|
43 |
String loginStatus = null; |
|
44 |
String sess_sessionId = null; |
|
45 |
String sessionidField = null; |
|
46 |
String metacatResponse = null; |
|
47 |
String posted_ldapUserName = null; |
|
48 |
String typedUserName = null; |
|
49 |
String posted_organization = null; |
|
50 |
String posted_password = null; |
|
51 |
String loginAction = null; |
|
52 |
String loginButtonLabel = null; |
|
53 |
String loginEnabledDisabled = null; |
|
54 |
Metacat metacat = null; |
|
55 |
HttpSession rfSession = null; |
|
56 |
boolean isLoggedIn = false; |
|
57 |
String relativeRoot = "."; |
|
58 |
|
|
59 |
////////////////////////////////////////////////////////////////////////////// |
|
60 |
|
|
61 |
try { |
|
62 |
rfSession = request.getSession(true); |
|
63 |
|
|
64 |
} catch(Exception e) { |
|
65 |
|
|
66 |
throw new ServletException("trying to get session: "+e); |
|
67 |
} |
|
68 |
|
|
69 |
Object sess_sessionIdObj = rfSession.getAttribute("sess_sessionIdObj"); |
|
70 |
|
|
71 |
if (sess_sessionIdObj!=null) { |
|
72 |
sess_sessionId = (String)sess_sessionIdObj; |
|
73 |
|
|
74 |
// if sess_sessionIdObj is empty string, that means user has logged out |
|
75 |
// (had problems if I set it to null, so used empty string instead) |
|
76 |
if (sess_sessionId.length() < 1) sess_sessionId = null; |
|
77 |
else isLoggedIn = true; |
|
78 |
|
|
79 |
} else { |
|
80 |
|
|
81 |
sess_sessionId = null; |
|
82 |
} |
|
83 |
|
|
84 |
typedUserName = request.getParameter("username"); |
|
85 |
typedUserName = (typedUserName!=null)? typedUserName.trim() : ""; |
|
86 |
|
|
87 |
posted_organization = request.getParameter("organization"); |
|
88 |
posted_organization = (posted_organization!=null)? posted_organization.trim() : ""; |
|
89 |
|
|
90 |
posted_ldapUserName = "uid=" + typedUserName |
|
91 |
+ ",o=" + posted_organization + LDAP_DOMAIN; |
|
92 |
|
|
93 |
posted_password = request.getParameter("password"); |
|
94 |
posted_password = (posted_password!=null)? posted_password.trim() : ""; |
|
95 |
|
|
96 |
loginAction = request.getParameter("loginAction"); |
|
97 |
loginAction = (loginAction!=null)? loginAction.trim() : ""; |
|
98 |
|
|
99 |
////////////////////////////////////////////////////////////////////////////// |
|
100 |
|
|
101 |
if (loginAction.equals(LOGOUT_LABEL)) { |
|
102 |
// DO LOGOUT ////////////////////////////////////////////////////////////// |
|
103 |
|
|
104 |
if (sess_sessionId!=null && rfSession.getAttribute("sess_metacatObj")!=null) { |
|
105 |
metacat = (Metacat)(rfSession.getAttribute("sess_metacatObj")); |
|
106 |
metacat.logout(); |
|
107 |
} |
|
108 |
sess_sessionId = null; |
|
109 |
rfSession.setAttribute("sess_sessionIdObj", ""); |
|
110 |
isLoggedIn = false; |
|
111 |
|
|
112 |
} else if (loginAction.equals(LOGIN_LABEL)) { |
|
113 |
// DO LOGIN //////////////////////////////////////////////////////////////// |
|
114 |
|
|
115 |
if (sess_sessionId!=null) isLoggedIn = true; |
|
116 |
else { |
|
117 |
|
|
118 |
// get metacat object - either cached from session... |
|
119 |
if (rfSession.getAttribute("sess_metacatObj")!=null) { |
|
120 |
|
|
121 |
metacat = (Metacat)(rfSession.getAttribute("sess_metacatObj")); |
|
122 |
|
|
123 |
} else { // ...or create it if it doesn't already exist |
|
124 |
try { |
|
125 |
metacat = MetacatFactory.createMetacatConnection(SERVLET_URL); |
|
126 |
} catch (MetacatInaccessibleException mie) { |
|
127 |
throw new ServletException("Metacat connection to "+SERVLET_URL |
|
128 |
+" failed." + mie.getMessage()); |
|
129 |
} |
|
130 |
if (metacat==null) { |
|
131 |
throw new ServletException("Metacat connection to "+SERVLET_URL |
|
132 |
+" failed - Metacat object is NULL!"); |
|
133 |
} |
|
134 |
rfSession.setAttribute("sess_metacatObj", metacat); |
|
135 |
} |
|
136 |
// now do login... |
|
137 |
try { |
|
138 |
metacatResponse = metacat.login(posted_ldapUserName, posted_password); |
|
139 |
|
|
140 |
if (metacatResponse!=null && metacatResponse.indexOf("<login>") >= 0) { |
|
141 |
sess_sessionId = metacat.getSessionId(); |
|
142 |
rfSession.setAttribute("sess_sessionIdObj", |
|
143 |
((sess_sessionId!=null)? sess_sessionId: "") ); |
|
144 |
isLoggedIn = true; |
|
145 |
} else { |
|
146 |
loginStatus = "<em class=\"loginStatus\">Incorrect username or password - please try again</em>"; |
|
147 |
isLoggedIn = false; |
|
148 |
} |
|
149 |
} catch (MetacatAuthException mae) { |
|
150 |
loginStatus = "<em class=\"loginStatus\">Incorrect username or password! - please try again</em>"; |
|
151 |
isLoggedIn = false; |
|
152 |
} catch (MetacatInaccessibleException mie) { |
|
153 |
isLoggedIn = false; |
|
154 |
loginStatus = "<em class=\"loginStatus\">ERROR logging in - problems connecting - please try later</em>"; |
|
155 |
} |
|
156 |
} |
|
157 |
} |
|
158 |
|
|
159 |
////////////////////////////////////////////////////////////////////////////// |
|
160 |
|
|
161 |
if (isLoggedIn) { |
|
162 |
loginButtonLabel = LOGOUT_LABEL; |
|
163 |
loginEnabledDisabled = "disabled"; |
|
164 |
if (sess_sessionId!=null && sess_sessionId.length()>0) { |
|
165 |
sessionidField = "<input type=\"hidden\" name=\"sessionid\" value=\"" |
|
166 |
+sess_sessionId+"\">"; |
|
167 |
} else { |
|
168 |
sessionidField = ""; |
|
169 |
} |
|
170 |
// if loginStatus has already been set above, don't overwrite it... |
|
171 |
if (loginStatus==null) loginStatus |
|
172 |
= "<em class=\"loginStatus\">You ARE logged in</em>"; |
|
173 |
} else { |
|
174 |
loginButtonLabel = LOGIN_LABEL; |
|
175 |
loginEnabledDisabled = ""; |
|
176 |
sessionidField = ""; |
|
177 |
// if loginStatus has already been set above, don't overwrite it... |
|
178 |
if (loginStatus==null) loginStatus |
|
179 |
= "<em class=\"loginStatus\">You are NOT logged in</em>"; |
|
180 |
} |
|
181 |
|
|
182 |
if (DEBUG_TO_BROWSER) { |
|
183 |
%> |
|
184 |
<table> |
|
185 |
<tr> |
|
186 |
<td colspan="4" align="left" valign="top" class="text_plain" bgcolor="#ffff00"> |
|
187 |
<ul> |
|
188 |
<li>SERVLET_URL: <%=SERVLET_URL%></li> |
|
189 |
<li>rfSession: <%=rfSession%></li> |
|
190 |
<li>metacatResponse: <%=metacatResponse%></li> |
|
191 |
<li>posted_ldapUserName: <%=posted_ldapUserName%></li> |
|
192 |
<li>posted_password: <%=posted_password%></li> |
|
193 |
<li>isLoggedIn: <%=isLoggedIn%></li> |
|
194 |
<li>sess_sessionId LOCAL: <%=sess_sessionId%></li> |
|
195 |
<li>sess_sessionIdObj FROM SESSION: <%=rfSession.getAttribute("sess_sessionIdObj")%></li> |
|
196 |
</ul></td> |
|
197 |
</tr> |
|
198 |
</table> |
|
199 |
<% |
|
200 |
} |
|
201 |
%> |
|
202 | 0 |
lib/style/skins/semtools/settings.jsp | ||
---|---|---|
1 |
<%@ page errorPage="jsperrorpage.html" import="javax.servlet.http.*" %> |
|
2 |
<% |
|
3 |
/* |
|
4 |
* '$RCSfile$' |
|
5 |
* Authors: Matthew Brooke |
|
6 |
* Copyright: 2000 Regents of the University of California and the |
|
7 |
* National Center for Ecological Analysis and Synthesis |
|
8 |
* For Details: http://www.nceas.ucsb.edu/ |
|
9 |
* |
|
10 |
* '$Author$' |
|
11 |
* '$Date$' |
|
12 |
* '$Revision$' |
|
13 |
* |
|
14 |
* Settings file for the default metacat skin |
|
15 |
* |
|
16 |
* This program is free software; you can redistribute it and/or modify |
|
17 |
* it under the terms of the GNU General Public License as published by |
|
18 |
* the Free Software Foundation; either version 2 of the License, or |
|
19 |
* (at your option) any later version. |
|
20 |
* |
|
21 |
* This program is distributed in the hope that it will be useful, |
|
22 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
23 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
24 |
* GNU General Public License for more details. |
|
25 |
* |
|
26 |
* You should have received a copy of the GNU General Public License |
|
27 |
* along with this program; if not, write to the Free Software |
|
28 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
29 |
*/ |
|
30 |
%> |
|
31 |
|
|
32 |
<%@ include file="../../common/common-settings.jsp"%> |
|
33 |
<%@ include file="../../common/configure-check.jsp"%> |
|
34 |
|
|
35 |
<% |
|
36 |
|
|
37 |
// GLOBAL CONSTANTS FOR KNB PORTAL PAGE ///////////////////////////////////// |
|
38 |
|
|
39 |
// if true, POST variables echoed at bottom of client's browser window in a big yellow box |
|
40 |
// Set this value to override the global value |
|
41 |
// boolean DEBUG_TO_BROWSER = false; |
|
42 |
|
|
43 |
// Add any local post fields to COMMON_SEARCH_METACAT_POST_FIELDS, |
|
44 |
// SIMPLE_SEARCH_METACAT_POST_FIELDS, and ADVANCED_SEARCH_METACAT_POST_FIELD here |
|
45 |
COMMON_SEARCH_METACAT_POST_FIELDS += |
|
46 |
"<input type=\"hidden\" name=\"qformat\" value=\"semtools\"\\>\n"; |
|
47 |
|
|
48 |
SIMPLE_SEARCH_METACAT_POST_FIELDS += |
|
49 |
"<input type=\"hidden\" name=\"qformat\" value=\"semtools\"\\>\n"; |
|
50 |
|
|
51 |
ADVANCED_SEARCH_METACAT_POST_FIELDS += |
|
52 |
"<input type=\"hidden\" name=\"qformat\" value=\"semtools\"\\>\n"; |
|
53 |
|
|
54 |
%> |
|
55 | 0 |
lib/style/skins/semtools/include_login.jsp | ||
---|---|---|
1 |
<%@ page language="java" import="java.util.Vector,edu.ucsb.nceas.metacat.util.OrganizationUtil"%> |
|
2 |
<!-- |
|
3 |
/** |
|
4 |
* '$RCSfile$' |
|
5 |
* Authors: Matt Jones, CHad Berkley |
|
6 |
* Copyright: 2000 Regents of the University of California and the |
|
7 |
* National Center for Ecological Analysis and Synthesis |
|
8 |
* For Details: http://www.nceas.ucsb.edu/ |
|
9 |
* |
|
10 |
* '$Author$' |
|
11 |
* '$Date$' |
|
12 |
* '$Revision$' |
|
13 |
* |
|
14 |
* This program is free software; you can redistribute it and/or modify |
|
15 |
* it under the terms of the GNU General Public License as published by |
|
16 |
* the Free Software Foundation; either version 2 of the License, or |
|
17 |
* (at your option) any later version. |
|
18 |
* |
|
19 |
* This program is distributed in the hope that it will be useful, |
|
20 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
21 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
22 |
* GNU General Public License for more details. |
|
23 |
* |
|
24 |
* You should have received a copy of the GNU General Public License |
|
25 |
* along with this program; if not, write to the Free Software |
|
26 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
27 |
* |
|
28 |
*/ |
|
29 |
--> |
|
30 |
|
|
31 |
<%@ include file="settings.jsp"%> |
|
32 |
<%@ include file="session_vars.jsp"%> |
|
33 |
|
|
34 |
<% |
|
35 |
Vector<String> organizationList = OrganizationUtil.getOrganizations(); |
|
36 |
%> |
|
37 |
|
|
38 |
<!-- *********************** START LOGIN TABLE ************************* --> |
|
39 |
<html> |
|
40 |
<head> |
|
41 |
</title> |
|
42 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
|
43 |
<link href="<%=STYLE_SKINS_URL%>/semtools/semtools.css" rel="stylesheet" type="text/css"> |
|
44 |
<script language="javascript" |
|
45 |
type="text/javascript" src="<%=STYLE_SKINS_URL%>/semtools/semtools.js"> |
|
46 |
</script> |
|
47 |
<script language="javascript" type="text/javascript"> |
|
48 |
var popupMsg = "If you need to create a new account, \n" |
|
49 |
+"click the \"create new account\" link"; |
|
50 |
function trim(stringToTrim) { |
|
51 |
return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,''); |
|
52 |
} |
|
53 |
function allowSubmit(formObj) { |
|
54 |
if (trim(formObj.elements["loginAction"].value)!="Login") return true; |
|
55 |
//trim username & passwd: |
|
56 |
var username = trim(formObj.elements["username"].value); |
|
57 |
var organization = trim(formObj.elements["organization"].value); |
|
58 |
var password = trim(formObj.elements["password"].value); |
|
59 |
if (username=="") { |
|
60 |
alert("You must type a username. \n"+popupMsg); |
|
61 |
formObj.elements["username"].focus(); |
|
62 |
return false; |
|
63 |
} |
|
64 |
if (organization=="") { |
|
65 |
alert("You must select an organization.\n"+popupMsg); |
|
66 |
formObj.elements["organization"].focus(); |
|
67 |
return false; |
|
68 |
} |
|
69 |
if (password=="") { |
|
70 |
alert("You must type a password. \n"+popupMsg); |
|
71 |
formObj.elements["password"].focus(); |
|
72 |
return false; |
|
73 |
} |
|
74 |
return true; |
|
75 |
} |
|
76 |
<%=(isLoggedIn)? |
|
77 |
" document.cookie = \"JSESSIONID=" + sess_sessionId + ";" |
|
78 |
+" path=" + CONTEXT_NAME + "\";\n" |
|
79 |
:" document.cookie = \"JSESSIONID=" + sess_sessionId + ";" |
|
80 |
+" path=" + CONTEXT_NAME + ";" |
|
81 |
+" expires=Thu, 01-Jan-70 00:00:01 GMT\";\n" |
|
82 |
%> |
|
83 |
</script> |
|
84 |
</head> |
|
85 |
|
|
86 |
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> |
|
87 |
<table width="750px" align="center" border="0" cellspacing="0" cellpadding="0"> |
|
88 |
<tr> |
|
89 |
<td class="sectionheader">login & registration</td> |
|
90 |
</td> |
|
91 |
</tr> |
|
92 |
<tr> |
|
93 |
<td colspan="3"> |
|
94 |
<table width="100%" class="subpanel" border="0" cellpadding="0" |
|
95 |
cellspacing="0"> |
|
96 |
<tr> |
|
97 |
<td width="10"> |
|
98 |
<img src="<%=STYLE_SKINS_URL%>/semtools/images/transparent1x1.gif" width="10" height="10"> |
|
99 |
</td> |
|
100 |
<td class="text_example"> |
|
101 |
<a name="loginanchor"></a> |
|
102 |
<p> |
|
103 |
Logging into your account enables you to search any |
|
104 |
additional, non-public data for which you may have access |
|
105 |
privileges: |
|
106 |
</p> |
|
107 |
<%= loginStatus %> |
|
108 |
</td> |
|
109 |
<td width="10"> |
|
110 |
<img src="<%=STYLE_SKINS_URL%>/semtools/images/transparent1x1.gif" width="10" height="10"> |
|
111 |
</td> |
|
112 |
</tr> |
|
113 |
<tr> |
|
114 |
<td width="10"> |
|
115 |
<img src="<%=STYLE_SKINS_URL%>/semtools/images/transparent1x1.gif" width="10" height="10"> |
|
116 |
</td> |
|
117 |
<td> |
|
118 |
<form name="loginform" method="post" action="index.jsp" |
|
119 |
target="_top" onSubmit="return allowSubmit(this);"> |
|
120 |
<input type="hidden" name="action" value="login"> |
|
121 |
<input type="hidden" name="ldapusername" value=""> |
|
122 |
<input type="hidden" name="qformat" value="semtools"> |
|
123 |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
124 |
<tr valign="middle"> |
|
125 |
<td align="left" valign="middle" class="text_plain_smaller"> |
|
126 |
username: |
|
127 |
</td> |
|
128 |
<td align="left" |
|
129 |
style="padding-top: 2px; padding-bottom: 2px;"> |
|
130 |
<input name="username" type="text" style="width: 140px;" |
|
131 |
value="<%=typedUserName%>" <%=loginEnabledDisabled%>> |
|
132 |
</td> |
|
133 |
<td width="10px"> |
|
134 |
<img src="<%=STYLE_SKINS_URL%>/semtools/images/transparent1x1.gif" width="10"> |
|
135 |
</td> |
|
136 |
<td align="left" class="text_plain"> |
|
137 |
<a href="<%=CGI_URL%>/ldapweb.cgi?cfg=semtools" target="_top"> |
|
138 |
create a new account</a> |
|
139 |
</td> |
|
140 |
</tr> |
|
141 |
<tr valign="middle"> |
|
142 |
<td height="28" align="left" |
|
143 |
valign="middle" class="text_plain_smaller"> |
|
144 |
organization: |
|
145 |
</td> |
|
146 |
<td align="left" |
|
147 |
style="padding-top: 2px; padding-bottom: 2px;"> |
|
148 |
<select name="organization" style="width:140px;" |
|
149 |
<%=loginEnabledDisabled%> > |
|
150 |
<option value="" <%=((posted_organization.length()<1)? "selected":"")%>>— choose one —</option> |
|
151 |
<% |
|
152 |
for (String orgName : organizationList) { |
|
153 |
%> |
|
154 |
<option value="<%= orgName %>" <%=((posted_organization.equalsIgnoreCase(orgName))? "selected":"")%>><%= orgName %></option> |
|
155 |
<% |
|
156 |
} |
|
157 |
%> |
|
158 |
</select> |
|
159 |
</td> |
|
160 |
<td width="10px"> |
|
161 |
<img src="<%=STYLE_SKINS_URL%>/semtools/images/transparent1x1.gif" width="10" > |
|
162 |
</td> |
|
163 |
<td align="left" class="text_plain"> |
|
164 |
<a href="<%=CGI_URL%>/ldapweb.cgi?stage=resetpass&cfg=semtools" target="_top">forgot your password?</a> |
|
165 |
</td> |
|
166 |
</tr> |
|
167 |
<tr valign="middle"> |
|
168 |
<td width="85" align="left" valign="middle" |
|
169 |
class="text_plain_smaller"> |
|
170 |
password: |
|
171 |
</td> |
|
172 |
<td> |
|
173 |
<input name="password" type="password" maxlength="50" |
|
174 |
style="width:140px;" value="<%=posted_password%>" |
|
175 |
<%=loginEnabledDisabled%>> |
|
176 |
</td> |
|
177 |
<td width="10px"> |
|
178 |
<img src="<%=STYLE_SKINS_URL%>/semtools/images/transparent1x1.gif" width="10"> |
|
179 |
</td> |
|
180 |
<td align="left" class="text_plain"> |
|
181 |
<a href="<%=CGI_URL%>/ldapweb.cgi?stage=changepass&cfg=semtools" target="_top">change your password</a> |
|
182 |
</td> |
|
183 |
</tr> |
|
184 |
<tr> |
|
185 |
<td align="center" colspan="2" class="<%= ((isLoggedIn)? "buttonBG_logout": "buttonBG_login") %>"> |
|
186 |
<input type="submit" name="loginAction" |
|
187 |
value="<%=loginButtonLabel%>" class="button_login" /> |
|
188 |
</td> |
|
189 |
</td> |
|
190 |
<td width="10"> |
|
191 |
<img src="<%=STYLE_SKINS_URL%>/semtools/images/transparent1x1.gif" width="10"> |
|
192 |
</td> |
|
193 |
<td> |
|
194 |
<img src="<%=STYLE_SKINS_URL%>/semtools/images/transparent1x1.gif" width="10"> |
|
195 |
</td> |
|
196 |
</tr> |
|
197 |
<tr> |
|
198 |
<td colspan="4"> |
|
199 |
</br> |
|
200 |
</td> |
|
201 |
</tr> |
|
202 |
</table> |
|
203 |
</form> |
|
204 |
</td> |
|
205 |
</tr> |
|
206 |
</table> |
|
207 |
</td> |
|
208 |
</tr> |
|
209 |
</table> |
|
210 |
</body> |
|
211 | 0 |
lib/style/skins/semtools/include_header.jsp | ||
---|---|---|
25 | 25 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
26 | 26 |
* |
27 | 27 |
--> |
28 |
<%@ include file="settings.jsp"%> |
|
29 |
<%@ include file="session_vars.jsp"%>
|
|
28 |
<%@ include file="../../common/common-settings.jsp"%>
|
|
29 |
<%@ include file="../../common/configure-check.jsp"%>
|
|
30 | 30 |
<head> |
31 | 31 |
<title>Metacat Data Catalog - Semtools</title> |
32 | 32 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
... | ... | |
36 | 36 |
src="<%=STYLE_SKINS_URL%>/semtools/semtools.js"></script> |
37 | 37 |
</head> |
38 | 38 |
|
39 |
<body leftmargin="0" topmargin="0" marginwidth="O" marginheight="0"> |
|
39 |
<body> |
|
40 |
<table width="100%"> |
|
41 |
<tr> |
|
42 |
<td colspan="3">Semtools with BioPortal</td> |
|
43 |
</tr> |
|
44 |
<tr> |
|
45 |
<td align="left" valign="middle" class="sectionheader"> |
|
46 |
<a target="_top" href="<%=STYLE_SKINS_URL%>/semtools/index.jsp">Home</a></td> |
|
47 |
<td align="left" valign="middle" class="sectionheader"> |
|
48 |
<a target="_top" href="<%=STYLE_SKINS_URL%>/semtools/ontologies.jsp">Ontologies</a></td> |
|
49 |
<td align="left" valign="middle" class="sectionheader"> |
|
50 |
<a target="_new" href="http://bioportal.bioontology.org/">BioPortal</a></td> |
|
51 |
</tr> |
|
52 |
</table> |
|
40 | 53 |
|
41 |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
42 |
<tr> |
|
43 |
<td class="title" colspan="3"> |
|
44 |
Semtools with BioPortal |
|
45 |
</td> |
|
46 |
</tr> |
|
47 |
<tr> |
|
48 |
<td align="left" valign="middle" class="sectionheader"> |
|
49 |
<a target="_top" href="<%=STYLE_SKINS_URL%>/semtools/index.jsp" class="toollink">Home</a></td> |
|
50 |
<td align="left" valign="middle" class="sectionheader"> |
|
51 |
<a target="_top" href="<%=STYLE_SKINS_URL%>/semtools/ontologies.jsp" class="toollink">Ontologies</a></td> |
|
52 |
<td align="left" valign="middle" class="sectionheader"> |
|
53 |
<a target="_new" href="http://bioportal.bioontology.org/" class="toollink">BioPortal</a></td> |
|
54 |
</tr> |
|
55 |
</table> |
|
56 | 54 |
</body> |
57 | 55 |
</html> |
lib/style/skins/semtools/semtools.css | ||
---|---|---|
1067 | 1067 |
|
1068 | 1068 |
} |
1069 | 1069 |
|
1070 |
/*** |
|
1071 |
iframe classes |
|
1072 |
****/ |
|
1073 |
.iframeheaderclass { |
|
1074 |
height: 80px; |
|
1075 |
width: 100%; |
|
1076 |
border: 0px; |
|
1077 |
margih: 0px; |
|
1078 |
} |
|
1079 |
|
|
1080 |
.iframesearchboxclass { |
|
1081 |
height: 340px; |
|
1082 |
width: 100%; |
|
1083 |
border: 0px; |
|
1084 |
margin: 0px; |
|
1085 |
} |
|
1086 |
|
|
1087 |
.iframeadvancedsearchboxclass { |
|
1088 |
height: 1250px; |
|
1089 |
width: 100%; |
|
1090 |
border: 0px; |
|
1091 |
margin: 0px; |
|
1092 |
} |
|
1093 |
|
|
1094 |
.iframemapclass { |
|
1095 |
height: 570px; |
|
1096 |
width: 100%; |
|
1097 |
border: 0px; |
|
1098 |
margin: 0px; |
|
1099 |
} |
|
1100 |
|
|
1101 |
.iframeloginboxclass { |
|
1102 |
height: 250px; |
|
1103 |
width: 100%; |
|
1104 |
border: 0px; |
|
1105 |
margin: 0px; |
|
1106 |
} |
|
1107 |
|
|
1108 |
.iframeleftcolclass { /* not used */ } |
|
1109 |
.iframerightcolclass { /* not used */ } |
|
1110 |
.iframefooterclass { /* not used */ } |
|
1111 |
|
|
1112 |
/** |
|
1113 |
* set the size and alignment etc of the top-level layout table |
|
1114 |
*/ |
|
1115 |
.templatetableclass { |
|
1116 |
width: 100%; |
|
1117 |
border: 0px; |
|
1118 |
padding: 0px; |
|
1119 |
margin: 0px; |
|
1120 |
} |
|
1121 |
|
|
1122 |
/** |
|
1123 |
* set the style of the main content area and its contents |
|
1124 |
*/ |
|
1125 |
.templatecontentareaclass { |
|
1126 |
border: 0px; |
|
1127 |
padding: 0px; |
|
1128 |
margin: 0px; |
|
1129 |
} |
|
1130 |
|
|
1131 |
/** |
|
1132 |
* set the correct <td> sizes to accomodate the |
|
1133 |
* header, footer, left and right iframes. |
|
1134 |
* NOTE: these styles apply only to each |
|
1135 |
* container frame, *NOT* to the document in |
|
1136 |
* the iframe within it! |
|
1137 |
*/ |
|
1138 |
.templateheaderrowclass { |
|
1139 |
height: 80px; |
|
1140 |
/* |
|
1141 |
no width allowed - uses same width as table class |
|
1142 |
*/ |
|
1143 |
border: 0px; |
|
1144 |
padding: 0px; |
|
1145 |
margin: 0px; |
|
1146 |
} |
|
1147 |
|
|
1148 |
.templateleftcolclass { |
|
1149 |
height: 100%; |
|
1150 |
width: 0px; |
|
1151 |
border: 0px; |
|
1152 |
padding: 0px; |
|
1153 |
margin: 0px; |
|
1154 |
} |
|
1155 |
|
|
1156 |
.templaterightcolclass { |
|
1157 |
height: 100%; |
|
1158 |
width: 0px; |
|
1159 |
border: 0px; |
|
1160 |
padding: 0px; |
|
1161 |
margin: 0px; |
|
1162 |
} |
|
1163 |
|
|
1164 |
.templatefooterrowclass { |
|
1165 |
height: 0px; |
|
1166 |
/* |
|
1167 |
no width allowed - uses same width as |
|
1168 |
table class |
|
1169 |
*/ |
|
1170 |
border: 0px; |
|
1171 |
padding: 0px; |
|
1172 |
margin: 0px; |
|
1173 |
} |
lib/style/skins/semtools/semtools.xsl | ||
---|---|---|
119 | 119 |
|
120 | 120 |
<xsl:template name="bodyheader"> |
121 | 121 |
<!-- header here --> |
122 |
<script language="JavaScript"> |
|
123 |
insertTemplateOpening('<xsl:value-of select="$contextURL" />'); |
|
124 |
</script> |
|
122 | 125 |
</xsl:template> |
123 | 126 |
|
124 | 127 |
<xsl:template name="bodyfooter"> |
125 | 128 |
<!-- footer here --> |
129 |
<script language="JavaScript"> |
|
130 |
insertTemplateClosing('<xsl:value-of select="$contextURL" />'); |
|
131 |
</script> |
|
126 | 132 |
</xsl:template> |
127 | 133 |
|
128 | 134 |
</xsl:stylesheet> |
Also available in: Unified diff
include header/footer like in the old JS-based template