Revision 8016
Added by ben leinfelder over 11 years ago
lib/style/skins/knb/harvesterRegistrationLogin.jsp | ||
---|---|---|
1 |
<%@ page language="java" import="java.util.Vector,edu.ucsb.nceas.metacat.util.OrganizationUtil"%> |
|
2 |
<% |
|
3 |
/** |
|
4 |
* '$RCSfile$' |
|
5 |
* Copyright: 2008 Regents of the University of California and the |
|
6 |
* National Center for Ecological Analysis and Synthesis |
|
7 |
* '$Author$' |
|
8 |
* '$Date$' |
|
9 |
* '$Revision$' |
|
10 |
|
|
11 |
* This program is free software; you can redistribute it and/or modify |
|
12 |
* it under the terms of the GNU General Public License as published by |
|
13 |
* the Free Software Foundation; either version 2 of the License, or |
|
14 |
* (at your option) any later version. |
|
15 |
|
|
16 |
* This program is distributed in the hope that it will be useful, |
|
17 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
18 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
19 |
* GNU General Public License for more details. |
|
20 |
* |
|
21 |
* You should have received a copy of the GNU General Public License |
|
22 |
* along with this program; if not, write to the Free Software |
|
23 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
24 |
*/ |
|
25 |
%> |
|
26 |
|
|
27 |
<%@ include file="../../common/common-settings.jsp"%> |
|
28 |
|
|
29 |
<% |
|
30 |
Vector<String> organizationList = OrganizationUtil.getOrganizations(); |
|
31 |
%> |
|
32 |
|
|
33 |
<html> |
|
34 |
<head> |
|
35 |
<title>Metacat Harvester Registration Login</title> |
|
36 |
</head> |
|
37 |
|
|
38 |
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red"> |
|
39 |
<br><center> |
|
40 |
<h3> |
|
41 |
<font color="#132B76" face=verdana size=2%> |
|
42 |
<b>Metacat Harvester Registration Login</b> |
|
43 |
</font> |
|
44 |
</h3> |
|
45 |
|
|
46 |
<form name="myform" |
|
47 |
method="POST" |
|
48 |
action="<%=CONTEXT_URL%>/harvesterRegistrationLogin"> |
|
49 |
|
|
50 |
<table width=400 align=center cellspacing=1 cellpadding=1 |
|
51 |
border=0 bgcolor="#333366"> |
|
52 |
<tr> |
|
53 |
<td> |
|
54 |
<table bgcolor="#ffffff" border="0" cellpadding="1" width='100%' > |
|
55 |
<tr > <td colspan=3 align=center > </td> </tr> |
|
56 |
<tr > |
|
57 |
<td colspan=3 align=center > |
|
58 |
<font face=verdana size=1%> |
|
59 |
<b>Please Enter Username, Organization, and Password</b> |
|
60 |
</font> |
|
61 |
</td> |
|
62 |
</tr> |
|
63 |
<tr> |
|
64 |
<td width='10%'> </td> |
|
65 |
<td width="25%" bgcolor="#4682b4"> |
|
66 |
<p align="center"> |
|
67 |
<font color="white" face=verdana size=2%> |
|
68 |
<b>Username</b> |
|
69 |
</font> |
|
70 |
</td> |
|
71 |
<td><p><input type="text" name="uid" maxlength="100" size="28"></td> |
|
72 |
</tr> |
|
73 |
<tr> |
|
74 |
<td width='10%'> </td> |
|
75 |
<td width="25%" bgcolor="#4682b4"> |
|
76 |
<p align="center"> |
|
77 |
<font color="white" face=verdana size=2%> |
|
78 |
<b>Organization</b> |
|
79 |
</font> |
|
80 |
</td> |
|
81 |
<td> |
|
82 |
<% |
|
83 |
for (String orgName : organizationList) { |
|
84 |
%> |
|
85 |
<input type="radio" name="o" value="<%= orgName %>"><%= orgName %> |
|
86 |
<% |
|
87 |
} |
|
88 |
%> |
|
89 |
</tr> |
|
90 |
<tr> |
|
91 |
<td width='10%'> </td> |
|
92 |
<td bgcolor="#4682b4"> |
|
93 |
<p align="center"> |
|
94 |
<font color="white" face=verdana size=2%> |
|
95 |
<b>Password</b> |
|
96 |
</font> |
|
97 |
</td> |
|
98 |
<td><p><input type="password" name="passwd" maxlength="60" size="28"> |
|
99 |
</td> |
|
100 |
</tr> |
|
101 |
<tr> <td colspan=3 align=center > </td></tr> |
|
102 |
</table> |
|
103 |
</td> |
|
104 |
</tr> |
|
105 |
</table> |
|
106 |
<br> |
|
107 |
<p> |
|
108 |
<input type="submit" value="Login"> |
|
109 |
<input type="reset" value="Reset"> |
|
110 |
</form> |
|
111 |
</body> |
|
112 | 0 |
lib/style/skins/default/harvesterRegistrationLogin.jsp | ||
---|---|---|
1 |
<%@ page language="java" |
|
2 |
import="java.util.Vector,edu.ucsb.nceas.metacat.util.OrganizationUtil"%> |
|
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 |
<%@ include file="settings.jsp"%> |
|
30 |
<%@ include file="session_vars.jsp"%> |
|
31 |
<% |
|
32 |
Vector<String> organizationList = OrganizationUtil.getOrganizations(); |
|
33 |
%> |
|
34 |
<head> |
|
35 |
<title>Metacat Harvester Registration Login</title> |
|
36 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
|
37 |
<link href="<%=STYLE_SKINS_URL%>/default/default.css" rel="stylesheet" |
|
38 |
type="text/css"> |
|
39 |
<script language="javascript" type="text/javascript" |
|
40 |
src="<%=STYLE_SKINS_URL%>/default/default.js"></script> |
|
41 |
</head> |
|
42 |
|
|
43 |
<body> |
|
44 |
|
|
45 |
<h3>Metacat Harvester Registration Login</h3> |
|
46 |
|
|
47 |
<form name="myform" method="POST" |
|
48 |
action="<%=CONTEXT_URL%>/harvesterRegistrationLogin"> |
|
49 |
|
|
50 |
<p>Please Enter Username, Organization, and Password</p> |
|
51 |
<table> |
|
52 |
<tr> |
|
53 |
<td>Username</td> |
|
54 |
<td> |
|
55 |
<input type="text" name="uid" maxlength="100" size="28"> |
|
56 |
</td> |
|
57 |
</tr> |
|
58 |
<tr> |
|
59 |
<td>Organization</td> |
|
60 |
<td> |
|
61 |
<select name="o"> |
|
62 |
<% |
|
63 |
for (String orgName : organizationList) { |
|
64 |
%> |
|
65 |
<option value="<%=orgName%>"><%=orgName%></option> |
|
66 |
<% |
|
67 |
} |
|
68 |
%> |
|
69 |
</select> |
|
70 |
</td> |
|
71 |
</tr> |
|
72 |
<tr> |
|
73 |
<td>Password</td> |
|
74 |
<td> |
|
75 |
<input type="password" name="passwd" maxlength="60" size="28"> |
|
76 |
</td> |
|
77 |
</tr> |
|
78 |
</table> |
|
79 |
|
|
80 |
<input type="submit" value="Login"> <input type="reset" |
|
81 |
value="Reset"> |
|
82 |
</form> |
|
83 |
</body> |
|
0 | 84 |
docs/user/metacat/source/harvester.rst | ||
---|---|---|
132 | 132 |
|
133 | 133 |
:: |
134 | 134 |
|
135 |
http://somehost.somelocation.edu:8080/knb/style/skins/knb/harvesterRegistrationLogin.jsp
|
|
135 |
http://somehost.somelocation.edu:8080/knb/style/skins/default/harvesterRegistrationLogin.jsp
|
|
136 | 136 |
|
137 | 137 |
.. figure:: images/screenshots/image065.jpg |
138 | 138 |
:align: center |
... | ... | |
500 | 500 |
|
501 | 501 |
:: |
502 | 502 |
|
503 |
http://somehost.somelocation.edu:8080/knb/style/skins/knb/harvesterRegistrationLogin.html
|
|
503 |
http://somehost.somelocation.edu:8080/knb/style/skins/default/harvesterRegistrationLogin.jsp
|
|
504 | 504 |
|
505 | 505 |
2. Enter and submit your Metacat account information. On the subsequent screen, |
506 | 506 |
click Unregister to remove your site and discontinue harvests. |
... | ... | |
515 | 515 |
|
516 | 516 |
Running Harvester as a Servlet |
517 | 517 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
518 |
To run Harvester as a servlet (from a source code installation):
|
|
518 |
To run Harvester as a servlet: |
|
519 | 519 |
|
520 |
1. Remove the comment symbols around the HarvesterServlet entry in the source |
|
521 |
code. The HarvesterServlet entry is located in the ``lib/web.xml.tomcatN`` |
|
522 |
file, where tomcatN corresponds to the version of Tomcat you are running. |
|
523 |
For example, if you are running Tomcat 6, edit file lib/web.xml.tomcat6. |
|
520 |
1. Remove the comment symbols around the HarvesterServlet entry in the |
|
521 |
deployed Metacat web.xml ($TOMCAT_HOME/webapps/<context>/WEB-INF). |
|
524 | 522 |
|
525 | 523 |
:: |
526 | 524 |
|
... | ... | |
563 | 561 |
Running Harvester in a Command Window |
564 | 562 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
565 | 563 |
|
566 |
To run Harvester in a Command Window: |
|
564 |
To run Harvester in a Command Window (requires source code distribution):
|
|
567 | 565 |
|
568 | 566 |
1. Open a system command window or terminal window. |
569 | 567 |
2. Set the ``METACAT_HOME`` environment variable to the value of the |
Also available in: Unified diff
move harvest registration page to the default skin, not the KNB skin. update docs to indicate such. (based on comments by D. Blankman)