1 |
2131
|
costa
|
<!--
|
2 |
|
|
* harvester.html
|
3 |
|
|
*
|
4 |
|
|
* Authors: Duane Costa
|
5 |
|
|
* Copyright: 2004 Regents of the University of California and the
|
6 |
|
|
* National Center for Ecological Analysis and Synthesis,
|
7 |
|
|
* and the University of New Mexico.
|
8 |
|
|
* For Details: http://www.nceas.ucsb.edu/
|
9 |
|
|
* Created: 2004 April 9
|
10 |
|
|
* Version:
|
11 |
|
|
* File Info: '$ '
|
12 |
|
|
*
|
13 |
|
|
*
|
14 |
|
|
-->
|
15 |
|
|
<HTML>
|
16 |
|
|
<HEAD>
|
17 |
|
|
<TITLE>Metacat Harvester</TITLE>
|
18 |
|
|
<link rel="stylesheet" type="text/css" href="@docrooturl@default.css">
|
19 |
|
|
</HEAD>
|
20 |
|
|
<BODY>
|
21 |
|
|
<table width="100%">
|
22 |
|
|
<tr>
|
23 |
|
|
<td class="tablehead" colspan="2">
|
24 |
|
|
<p class="label">Metacat Harvester</p>
|
25 |
|
|
</td>
|
26 |
|
|
<td class="tablehead" colspan="2" align="right">
|
27 |
|
|
<a href="./properties.html">Back</a> |
|
28 |
|
|
<a href="./metacattour.html">Home</a> |
|
29 |
|
|
<a href="./unimplem.html">Next</a>
|
30 |
|
|
</td>
|
31 |
|
|
</tr>
|
32 |
|
|
</table>
|
33 |
|
|
<h4>Introduction</h4>
|
34 |
|
|
The Metacat Harvester (henceforth referred to as "Harvester") is a
|
35 |
|
|
program that automates the retrieval of EML documents from one or more sites
|
36 |
|
|
and their subsequent upload (insert or update) to Metacat. Harvester uses pull
|
37 |
|
|
technology to retrieve and upload documents to Metacat on a regularly
|
38 |
|
|
scheduled basis.
|
39 |
|
|
<P>
|
40 |
|
|
Although Harvester is included with a Metacat installation (beginning with
|
41 |
|
|
Metacat version 1.4.0), it is an extention to Metacat's functionality
|
42 |
|
|
that may be used optionally.
|
43 |
|
|
</P>
|
44 |
|
|
<h4>Definitions</h4>
|
45 |
|
|
The following table defines a number of terms that are useful in discussing
|
46 |
|
|
Harvester and its features.
|
47 |
|
|
<br><br>
|
48 |
|
|
<table border="1">
|
49 |
|
|
<tr>
|
50 |
|
|
<td><b>Term</b></td>
|
51 |
|
|
<td><b>Definition</b></td>
|
52 |
|
|
</tr>
|
53 |
|
|
<tr>
|
54 |
|
|
<td>Harvester</td>
|
55 |
|
|
<td>The Harvester program, a Java application that is bundled with the
|
56 |
|
|
Metacat distribution. When a user installs Metacat on a system,
|
57 |
|
|
the Harvester program is automatically included in the
|
58 |
|
|
installation.
|
59 |
|
|
</td>
|
60 |
|
|
</tr>
|
61 |
|
|
<tr>
|
62 |
|
|
<td>Harvester Administrator</td>
|
63 |
|
|
<td>The individual who installs and manages Harvester. Typically, this
|
64 |
|
|
would be the same individual who installs and manages Metacat at a
|
65 |
|
|
given installation.
|
66 |
|
|
</td>
|
67 |
|
|
</tr>
|
68 |
|
|
<tr>
|
69 |
|
|
<td>Harvest Site</td>
|
70 |
|
|
<td>A location from which Harvester can retrieve EML documents. A given
|
71 |
|
|
Harvester can retrieve documents from any number of different
|
72 |
|
|
Harvest Sites.
|
73 |
|
|
</td>
|
74 |
|
|
</tr>
|
75 |
|
|
<tr>
|
76 |
|
|
<td>Harvest</td>
|
77 |
|
|
<td>The act (by Harvester) of visiting a Harvest Site, retrieving a
|
78 |
|
|
number of EML documents, and inserting or updating the documents to
|
79 |
|
|
Metacat.
|
80 |
|
|
</td>
|
81 |
|
|
</tr>
|
82 |
|
|
<tr>
|
83 |
2185
|
costa
|
<td><a name="HarvestList" >Harvest List</a></td>
|
84 |
2131
|
costa
|
<td>An XML document that lists a set of EML documents to be harvested. The
|
85 |
|
|
Harvest List must conform to an XML Schema,
|
86 |
|
|
<a href="../../lib/harvester/harvestList.xsd">harvestList.xsd</a>.
|
87 |
|
|
</td>
|
88 |
|
|
</tr>
|
89 |
|
|
<tr>
|
90 |
|
|
<td>Site Contact</td>
|
91 |
|
|
<td>The individual at a particular Harvest Site who registers with
|
92 |
|
|
Harvester, composes a Harvest List, and periodically prepares
|
93 |
|
|
the site's EML documents for retrieval and upload to Metacat.
|
94 |
|
|
</td>
|
95 |
|
|
</tr>
|
96 |
|
|
<tr>
|
97 |
|
|
<td>Harvest List URL</td>
|
98 |
|
|
<td>A URL to the Harvest List, as specified by the Site Contact.
|
99 |
|
|
Each Harvest Site corresponds to a Harvest List URL. Harvester
|
100 |
|
|
uses the URL to locate and read a site's Harvest List.
|
101 |
|
|
</td>
|
102 |
|
|
</tr>
|
103 |
|
|
<tr>
|
104 |
|
|
<td>Document URL</td>
|
105 |
|
|
<td>A URL to an EML document, as specified in the Harvest List.
|
106 |
|
|
The Harvest List may contain any number of Document URLs. Each
|
107 |
|
|
Document URL provides a locator to a document to be harvested.
|
108 |
|
|
</td>
|
109 |
|
|
</tr>
|
110 |
|
|
<tr>
|
111 |
|
|
<td>Harvester Registration Page</td>
|
112 |
|
|
<td>A web page that provides a means for a Site Contact
|
113 |
|
|
to register with Harvester to schedule regular harvests from the
|
114 |
|
|
site. Registration involves logging in and then specifying various
|
115 |
|
|
settings for the Harvest Site, such as the Harvest List URL, the
|
116 |
|
|
harvest frequency, and the email address of the Site Contact.
|
117 |
|
|
</td>
|
118 |
|
|
</tr>
|
119 |
|
|
</table>
|
120 |
|
|
<h4>Managing Harvester</h4>
|
121 |
|
|
Harvester is managed by the Harvester Administrator. Typically, the same
|
122 |
|
|
individual who manages a Metacat server would also act as the Harvester
|
123 |
|
|
Administrator. The responsibilities of the Harvester Administrator include:
|
124 |
|
|
<ul>
|
125 |
|
|
<li><a href="#Configuring Harvester">Configuring Harvester</a></li>
|
126 |
|
|
<li><a href="#Running Harvester">Running Harvester</a></li>
|
127 |
|
|
<li><a href="#Reviewing Harvester">Reviewing Harvester reports to
|
128 |
|
|
the Harvester Administrator</a></li>
|
129 |
|
|
</ul>
|
130 |
|
|
<h5><a name="Configuring Harvester">Configuring Harvester</a></h5>
|
131 |
|
|
<p>Harvester must be configured to interact with a working Metacat
|
132 |
|
|
installation. Thus, a Metacat installation that has been properly
|
133 |
|
|
configured and installed is a pre-requisite to running Harvester.
|
134 |
|
|
Additionally, Harvester has a number of settable properties that
|
135 |
|
|
control its behavior. All Harvester configuration information is managed
|
136 |
|
|
in a single file,
|
137 |
2157
|
costa
|
<a href=../../lib/metacat.properties>metacat.properties</a>,
|
138 |
2131
|
costa
|
located at:
|
139 |
2157
|
costa
|
<pre> METACAT_HOME/lib/metacat.properties</pre>
|
140 |
2131
|
costa
|
where METACAT_HOME is the top-level directory that Metacat is
|
141 |
2157
|
costa
|
installed in.
|
142 |
2131
|
costa
|
</p>
|
143 |
2157
|
costa
|
<p>Harvester properties are grouped together in
|
144 |
|
|
<a href=../../lib/metacat.properties>metacat.properties</a>, beginning
|
145 |
|
|
after the comment line:
|
146 |
|
|
<pre><code> # Harvester properties</code></pre>
|
147 |
|
|
</p>
|
148 |
2131
|
costa
|
<p>The Harvester Administrator should edit
|
149 |
2157
|
costa
|
<a href=../../lib/metacat.properties>metacat.properties</a>,
|
150 |
|
|
setting appropriate values for the <code><b>harvesterAdministrator</b></code>
|
151 |
|
|
property, the <code><b>smtpServer</b></code> property, and possibly other
|
152 |
|
|
properties. The following table is a summary of each property and its function.
|
153 |
2131
|
costa
|
</p>
|
154 |
|
|
<table border="1">
|
155 |
|
|
<tr>
|
156 |
|
|
<td><b>Property</b></td>
|
157 |
|
|
<td><b>Description</b></td>
|
158 |
|
|
<td><b>Possible or default value</b></td>
|
159 |
|
|
</tr>
|
160 |
|
|
<tr>
|
161 |
|
|
<td>connectToMetacat</td>
|
162 |
|
|
<td>This property determines whether Harvester should connect to
|
163 |
|
|
Metacat to upload documents. It should be set to <code>true</code>
|
164 |
|
|
under most circumstances. Setting this property to <code>false</code>
|
165 |
|
|
can be useful for testing whether Harvester is able to retrieve
|
166 |
|
|
documents from a site without actually connecting to Metacat to
|
167 |
|
|
upload the documents.</td>
|
168 |
|
|
<td><code>true</code> | <code>false</code><br>
|
169 |
|
|
Default: <code>true</code>
|
170 |
|
|
</tr>
|
171 |
|
|
<tr>
|
172 |
|
|
<td>delay</td>
|
173 |
|
|
<td>The number of hours that Harvester will wait before beginning its
|
174 |
|
|
first harvest. For example, if Harvester is run at 1:00 p.m., and
|
175 |
|
|
the delay is set to 12, Harvester will begin its first harvest at
|
176 |
|
|
1:00 a.m.</td>
|
177 |
|
|
<td>Default: 0</td>
|
178 |
|
|
</tr>
|
179 |
|
|
<tr>
|
180 |
|
|
<td>harvesterAdministrator</td>
|
181 |
|
|
<td>The email address of the Harvester Administrator. Harvester will
|
182 |
2330
|
costa
|
send email reports to this address after every harvest. You may
|
183 |
|
|
enter multiple email addresses by separating each address with
|
184 |
|
|
a comma or semicolon, for example, "name1@abc.edu,name2@abc.edu".
|
185 |
2131
|
costa
|
</td>
|
186 |
2330
|
costa
|
<td>An email address, or multiple email addresses separated by commas
|
187 |
|
|
or semi-colons</td>
|
188 |
2131
|
costa
|
</tr>
|
189 |
|
|
<tr>
|
190 |
|
|
<td>logPeriod</td>
|
191 |
|
|
<td>The number of days that Harvester should retain log entries of harvest
|
192 |
|
|
operations in the database. Harvester log entries record information
|
193 |
|
|
such as which documents were harvested, from which sites, and
|
194 |
|
|
whether any errors were encountered during the harvest. Log entries
|
195 |
|
|
older than <code>logPeriod</code> number of days are purged from the
|
196 |
|
|
database at the end of each harvest.</td>
|
197 |
|
|
<td>Default: 90</td>
|
198 |
|
|
</tr>
|
199 |
|
|
<tr>
|
200 |
|
|
<td>maxHarvests</td>
|
201 |
|
|
<td>The maximum number of harvests that Harvester should execute before
|
202 |
|
|
shutting down. When the Harvester program is executed, it will
|
203 |
|
|
continue running until it has executed <code>maxHarvests</code>
|
204 |
|
|
number of harvests and then the program will terminate.</td>
|
205 |
|
|
<td>Default: 30</td>
|
206 |
|
|
</tr>
|
207 |
|
|
<tr>
|
208 |
|
|
<td>period</td>
|
209 |
|
|
<td>The number of hours between harvests. Harvester will run a new
|
210 |
|
|
harvest every <code>period</code> number of hours, until the
|
211 |
|
|
<code>maxHarvests</code> number of harvests have been run.</td>
|
212 |
|
|
<td>Default: 24</td>
|
213 |
|
|
</tr>
|
214 |
|
|
<tr>
|
215 |
|
|
<td>smtpServer</td>
|
216 |
|
|
<td>The SMTP server that Harvester uses for sending email messages
|
217 |
|
|
to the Harvester Administrator and to Site Contacts.</td>
|
218 |
|
|
<td>A host name, for example: <code>somehost.institution.edu</code>
|
219 |
|
|
<br><br>
|
220 |
|
|
Default: <code>localhost</code>
|
221 |
|
|
<br><br>
|
222 |
|
|
Note that the default value will only work if the Harvester
|
223 |
|
|
host machine has been configured as a SMTP server.
|
224 |
|
|
</td>
|
225 |
|
|
</tr>
|
226 |
|
|
<tr>
|
227 |
|
|
<td>Harvester Operation Properties (GetDocError, GetDocSuccess, etc.)</td>
|
228 |
|
|
<td>This group of properties is used by Harvester to report information
|
229 |
|
|
about the operations it performs for inclusion in log
|
230 |
|
|
entries and email messages. Under most circumstances the values
|
231 |
|
|
of these properties should not be modified.</td>
|
232 |
|
|
<td> </td>
|
233 |
|
|
</tr>
|
234 |
|
|
</table>
|
235 |
|
|
<br>
|
236 |
|
|
<h5><a name="Running Harvester">Running Harvester</a></h5>
|
237 |
|
|
After Harvester has been appropriately
|
238 |
|
|
<a href="#Configuring Harvester">configured</a>,
|
239 |
|
|
it can be run as follows:
|
240 |
|
|
<ol>
|
241 |
|
|
<li>Open a system command window or terminal window.</li>
|
242 |
|
|
<li>Set the METACAT_HOME environment variable to the value of the Metacat
|
243 |
|
|
installation directory. Some examples follow:
|
244 |
|
|
<ul>
|
245 |
|
|
<li>On Windows:
|
246 |
|
|
<pre>set METACAT_HOME=C:\somePath\metacat</pre></li>
|
247 |
|
|
<li>On Linux/Unix (bash shell):
|
248 |
|
|
<pre>export METACAT_HOME=/home/somePath/metacat</pre></li>
|
249 |
|
|
</ul>
|
250 |
|
|
<li>cd to the following directory:
|
251 |
|
|
<ul>
|
252 |
|
|
<li>On Windows:
|
253 |
|
|
<pre>cd %METACAT_HOME%\lib\harvester</pre></li>
|
254 |
|
|
<li>On Linux/Unix:
|
255 |
|
|
<pre>cd $METACAT_HOME/lib/harvester</pre></li>
|
256 |
|
|
</ul>
|
257 |
|
|
<li>Run the appropriate Harvester shell script, as determined by the
|
258 |
|
|
operating system:
|
259 |
|
|
<ul>
|
260 |
|
|
<li>On Windows:
|
261 |
|
|
<pre>runHarvester.bat</pre></li>
|
262 |
|
|
<li>On Linux/Unix:
|
263 |
|
|
<pre>sh runHarvester.sh</pre></li>
|
264 |
|
|
</ul>
|
265 |
|
|
</li>
|
266 |
|
|
</ol>
|
267 |
|
|
<p>The Harvester application will start executing. It will begin its first
|
268 |
|
|
harvest after <code><b>delay</b></code> number of hours (as specified in the
|
269 |
2157
|
costa
|
<a href=../../lib/metacat.properties>metacat.properties</a>
|
270 |
2131
|
costa
|
file). The application will continue running a new harvest every
|
271 |
|
|
<code><b>period</b></code> number of hours until a <code><b>maxHarvests</b></code>
|
272 |
|
|
number of harvests have been completed.
|
273 |
|
|
</p>
|
274 |
|
|
<h5><a name="Reviewing Harvester">
|
275 |
|
|
Reviewing Harvester Reports to the Harvester Administrator</a></h5>
|
276 |
|
|
<P>
|
277 |
|
|
After every harvest, Harvester will send an email report to the Harvester
|
278 |
|
|
Administrator detailing the operations that were performed during the
|
279 |
|
|
harvest. The report will contain information about each of the Harvest Sites
|
280 |
|
|
that were harvested from, such as which EML documents were
|
281 |
|
|
harvested and whether any errors were encountered.
|
282 |
|
|
</P>
|
283 |
|
|
<p>
|
284 |
|
|
The harvest report will contain a list of log entries, where each log entry
|
285 |
|
|
describes an operation that was performed by Harvester. Log entries that
|
286 |
|
|
show a status value of 1 indicate that an error occurred during the
|
287 |
|
|
operation, while those that show a status value of 0 indicate that the
|
288 |
|
|
operation was completed successfully.
|
289 |
|
|
</p>
|
290 |
|
|
<P>The Harvester Administrator should review the report, paying particularly
|
291 |
|
|
close attention to any errors that are reported and to the accompanying error
|
292 |
|
|
messages that are displayed. When errors are reported at
|
293 |
|
|
a particular site, the Harvester Administrator should contact the Site
|
294 |
|
|
Contact to determine the source of the error and its resolution. See
|
295 |
|
|
<a href=#Reviewing>Reviewing Harvester Reports to the Site Contact</a> for a
|
296 |
|
|
description of common sources of errors at a Harvest Site.
|
297 |
|
|
</P>
|
298 |
|
|
<p>Errors that are independent of a particular site may indicate a problem
|
299 |
|
|
with Harvester itself, Metacat, or the database connection. Refer to the
|
300 |
|
|
error message to determine the source of the error and its resolution.
|
301 |
|
|
</p>
|
302 |
|
|
<h4>Managing a Harvest Site</h4>
|
303 |
|
|
A Harvest Site is managed by a Site Contact.
|
304 |
|
|
The responsibilities of a Site Contact fall into the following categories:
|
305 |
|
|
<ul>
|
306 |
|
|
<li><a href=#Registering>Registering with Harvester</a></li>
|
307 |
|
|
<li><a href=#Composing>Composing a Harvest List</a></li>
|
308 |
|
|
<li><a href=#Preparing>Preparing EML Documents for harvest</a></li>
|
309 |
|
|
<li><a href=#Reviewing>Reviewing Harvester reports to the Site Contact</a></li>
|
310 |
|
|
</ul>
|
311 |
|
|
<h5><a name="Registering">Registering with Harvester</a></h5>
|
312 |
|
|
<p>
|
313 |
|
|
A Site Contact registers a site with Harvester by logging in to the
|
314 |
|
|
Harvester Registration page and entering several items of information
|
315 |
|
|
that Harvester needs to know about the site.
|
316 |
|
|
</p>
|
317 |
|
|
<ol>
|
318 |
|
|
<li>Logging in to the Harvester Registration Page
|
319 |
|
|
<p>
|
320 |
|
|
The Harvester Registration page is accessed from Metacat. For example, if
|
321 |
|
|
the Metacat server that you wish to register with resides at the following
|
322 |
|
|
URL:
|
323 |
|
|
<pre> http://somehost.somelocation.edu:8080/knb/index.jsp</pre>
|
324 |
|
|
then the Harvester Registration page would be accessed at:
|
325 |
2157
|
costa
|
<pre> http://somehost.somelocation.edu:8080/knb/style/skins/knb/harvesterRegistrationLogin.html</pre>
|
326 |
2131
|
costa
|
</p>
|
327 |
|
|
<p>
|
328 |
|
|
After bringing up this page in your browser, login to your Metacat account
|
329 |
2166
|
costa
|
by entering your username, organization, and password. For example:
|
330 |
|
|
<table bgcolor="#ffffff" border="0" cellpadding="2" width='100%' >
|
331 |
|
|
<tr >
|
332 |
|
|
<td colspan=3 align=center > </td>
|
333 |
|
|
</tr>
|
334 |
|
|
<tr >
|
335 |
|
|
<td colspan=3 align=center >
|
336 |
|
|
<font face=verdana size=1%>
|
337 |
|
|
<b>Please Enter Username, Organization, and Password </b>
|
338 |
|
|
</font>
|
339 |
|
|
</td>
|
340 |
|
|
</tr>
|
341 |
|
|
<tr>
|
342 |
|
|
<td width='10%'> </td>
|
343 |
|
|
<td width="25%" bgcolor="#4682b4">
|
344 |
|
|
<p align="center">
|
345 |
|
|
<font color="white" face=verdana size=2%>
|
346 |
|
|
<b>Username</b>
|
347 |
|
|
</font>
|
348 |
|
|
</td>
|
349 |
|
|
<td><p><input type="text" name="uid" value="jdoe" maxlength="100" size="28"></td>
|
350 |
|
|
</tr>
|
351 |
|
|
<tr>
|
352 |
|
|
<td width='10%'> </td>
|
353 |
|
|
<td width="25%" bgcolor="#4682b4">
|
354 |
|
|
<p align="center">
|
355 |
|
|
<font color="white" face=verdana size=2%>
|
356 |
|
|
<b>Organization</b>
|
357 |
|
|
</font>
|
358 |
|
|
</td>
|
359 |
|
|
<td>
|
360 |
|
|
<input type="radio" name="o" value="NCEAS" checked>NCEAS
|
361 |
|
|
<input type="radio" name="o" value="LTER">LTER
|
362 |
|
|
<input type="radio" name="o" value="NRS">NRS
|
363 |
|
|
<br>
|
364 |
|
|
<input type="radio" name="o" value="PISCO">PISCO
|
365 |
|
|
<input type="radio" name="o" value="OBFS">OBFS
|
366 |
|
|
<input type="radio" name="o" value="Unaffiliated">Unaffiliated
|
367 |
|
|
</tr>
|
368 |
|
|
<tr>
|
369 |
|
|
<td width='10%'> </td>
|
370 |
|
|
<td bgcolor="#4682b4">
|
371 |
|
|
<p align="center">
|
372 |
|
|
<font color="white" face=verdana size=2%>
|
373 |
|
|
<b>Password</b>
|
374 |
|
|
</font>
|
375 |
|
|
</td>
|
376 |
|
|
<td><p><input type="password" name="passwd" value="*******" maxlength="60" size="28">
|
377 |
|
|
</td>
|
378 |
|
|
</tr>
|
379 |
|
|
<tr>
|
380 |
|
|
<td colspan=3 align=center > </td>
|
381 |
|
|
</tr>
|
382 |
|
|
</table>
|
383 |
2131
|
costa
|
In some cases, a Site Contact may need to login to an anonymous account
|
384 |
|
|
rather than his or her personal account. For example, a LTER Information
|
385 |
|
|
Manager may need to login to a dedicated account, named with a three-letter
|
386 |
2166
|
costa
|
acronym, that has been set up for the LTER site. The username
|
387 |
|
|
"GCE" would be used by the LTER Information Mangager at the GCE (Georgia
|
388 |
|
|
Coastal Ecosystems) site.
|
389 |
2131
|
costa
|
</p>
|
390 |
|
|
</li>
|
391 |
|
|
<li>Registering with Harvester
|
392 |
|
|
<p>
|
393 |
|
|
After logging in, you will be presented with a web form that prompts you
|
394 |
|
|
to enter information about your site and how often you want to schedule
|
395 |
|
|
harvests at your site. For example:
|
396 |
2185
|
costa
|
<table bgcolor="#ffffff" border="0" cellpadding="2" width='100%' >
|
397 |
|
|
<tr >
|
398 |
|
|
<td colspan=3 align=center > </td>
|
399 |
|
|
</tr>
|
400 |
|
|
<tr >
|
401 |
|
|
<td colspan=3 align=center >
|
402 |
|
|
<font face=verdana size=1%>
|
403 |
|
|
<b>Metacat Harvester Registration </b>
|
404 |
|
|
</font>
|
405 |
|
|
</td>
|
406 |
|
|
</tr>
|
407 |
|
|
<tr>
|
408 |
|
|
<td width='10%'> </td>
|
409 |
|
|
<td width="25%" bgcolor="#4682b4">
|
410 |
|
|
<p align="center">
|
411 |
|
|
<font color="white" face=verdana size=2%>
|
412 |
|
|
<b>Email address:</b>
|
413 |
|
|
</font>
|
414 |
|
|
</td>
|
415 |
|
|
<td><p><input type="text" size="55" name="uid" value="myname@institution.edu" maxlength="100" size="28"></td>
|
416 |
|
|
</tr>
|
417 |
|
|
<tr>
|
418 |
|
|
<td width='10%'> </td>
|
419 |
|
|
<td bgcolor="#4682b4">
|
420 |
|
|
<p align="center">
|
421 |
|
|
<font color="white" face=verdana size=2%>
|
422 |
|
|
<b>Harvest List URL:</b>
|
423 |
|
|
</font>
|
424 |
|
|
</td>
|
425 |
|
|
<td><p><input type="text" size="55" name="passwd" value="http://somehost.institution.edu/~myname/harvestList.xml" maxlength="60" size="28">
|
426 |
|
|
</td>
|
427 |
|
|
</tr>
|
428 |
|
|
<tr>
|
429 |
|
|
<td colspan=3 align=center > </td>
|
430 |
|
|
</tr>
|
431 |
|
|
<tr>
|
432 |
|
|
<td width='10%'> </td>
|
433 |
|
|
<td bgcolor="#4682b4">
|
434 |
|
|
<p align="center">
|
435 |
|
|
<font color="white" face=verdana size=2%>
|
436 |
|
|
<b>Harvest Frequency (1-99):</b>
|
437 |
|
|
</font>
|
438 |
|
|
</td>
|
439 |
|
|
<td><p><input type="text" size="3" name="passwd" value="2" maxlength="60" size="28">
|
440 |
|
|
</td>
|
441 |
|
|
</tr>
|
442 |
|
|
<tr>
|
443 |
|
|
<td colspan=3 align=center > </td>
|
444 |
|
|
</tr>
|
445 |
|
|
<tr>
|
446 |
|
|
<td width='10%'> </td>
|
447 |
|
|
<td width="25%" bgcolor="#4682b4">
|
448 |
|
|
<p align="center">
|
449 |
|
|
<font color="white" face=verdana size=2%>
|
450 |
|
|
<b>Unit:</b>
|
451 |
|
|
</font>
|
452 |
|
|
</td>
|
453 |
|
|
<td>
|
454 |
|
|
<input type="radio" name="o" value="days" >day(s)
|
455 |
|
|
<input type="radio" name="o" value="weeks" checked>week(s)
|
456 |
|
|
<input type="radio" name="o" value="months">month(s)
|
457 |
|
|
</tr>
|
458 |
|
|
</table>
|
459 |
|
|
<p>
|
460 |
2131
|
costa
|
After values have been entered for each of these fields, click the Register
|
461 |
|
|
button to register your site with Harvester.
|
462 |
|
|
</p>
|
463 |
|
|
<P>
|
464 |
|
|
In the example shown above, Harvester will attempt to harvest documents from
|
465 |
|
|
the site once every 2 weeks, it will access the site's Harvest List at URL
|
466 |
|
|
"http://somehost.institution.edu/~myname/harvestList.xml", and it will send
|
467 |
|
|
email reports to the Site Contact at email address "myname@institution.edu".
|
468 |
|
|
</P>
|
469 |
2330
|
costa
|
<P>
|
470 |
|
|
Note that you may enter multiple email addresses by separating each
|
471 |
|
|
address with a comma or a semi-colon. For example,
|
472 |
|
|
"myname@institution.edu,anothername@institution.edu".
|
473 |
|
|
</P>
|
474 |
2131
|
costa
|
</li>
|
475 |
|
|
<li>Unregistering with Harvester
|
476 |
|
|
<p>
|
477 |
|
|
At any time after you have registered with Harvester, you may discontinue
|
478 |
|
|
harvests at your site by unregistering. Simply login as described above and
|
479 |
|
|
then click the Unregister button. After doing so, Harvester will discontinue
|
480 |
|
|
harvests at the site.
|
481 |
|
|
</p>
|
482 |
|
|
</li>
|
483 |
|
|
</ol>
|
484 |
|
|
<h5><a name="Composing">Composing a Harvest List</a></h5>
|
485 |
|
|
<p>
|
486 |
|
|
A Harvest List is an XML file that holds a list of EML documents to be
|
487 |
|
|
harvested. For each EML document in the list, the following information
|
488 |
|
|
must be specified:
|
489 |
|
|
<ul>
|
490 |
|
|
<li><code>docid</code>, which consists of the:
|
491 |
|
|
<ul>
|
492 |
|
|
<li><code>scope</code>, e.g. "demoDocument". The scope is an identifier
|
493 |
|
|
that indicates which group of documents this document belongs to.
|
494 |
|
|
</li>
|
495 |
|
|
<li><code>identifier</code>, e.g. "1". The identifier is a number that
|
496 |
|
|
uniquely identifies this document within the scope.
|
497 |
|
|
</li>
|
498 |
|
|
<li><code>revision</code>, e.g. "5". The revision is a number that
|
499 |
|
|
indicates the current revision of this document.
|
500 |
|
|
</li>
|
501 |
|
|
</ul>
|
502 |
|
|
</li>
|
503 |
|
|
<li><code>documentType</code>, e.g. "eml://ecoinformatics.org/eml-2.0.0".
|
504 |
|
|
The documentType identifies the document as an EML document.</li>
|
505 |
|
|
<li><code>documentURL</code>, e.g. "http://www.lternet.edu/~dcosta/document1.xml".
|
506 |
|
|
The documentURL specifies a place where Harvester can locate
|
507 |
|
|
and retrieve the document via HTTP.</li>
|
508 |
|
|
</ul>
|
509 |
|
|
</p>
|
510 |
|
|
<p>
|
511 |
|
|
The contents of a Harvest List XML file must conform to a particular
|
512 |
|
|
XML Schema, as defined in file <a href="../../lib/harvester/harvestList.xsd">
|
513 |
|
|
harvestList.xsd</a>. The contents of a valid Harvest List
|
514 |
|
|
can best be illustrated by example. The sample Harvest List
|
515 |
|
|
below contains two <<code>document</code>> elements that specify the
|
516 |
|
|
information that Harvester needs to retrieve a pair of EML documents and
|
517 |
|
|
upload them to Metacat:
|
518 |
|
|
<pre>
|
519 |
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
520 |
|
|
<hrv:harvestList xmlns:hrv="eml://ecoinformatics.org/harvestList" >
|
521 |
|
|
<document>
|
522 |
|
|
<docid>
|
523 |
|
|
<scope>demoDocument</scope>
|
524 |
|
|
<identifier>1</identifier>
|
525 |
|
|
<revision>5</revision>
|
526 |
|
|
</docid>
|
527 |
|
|
<documentType>eml://ecoinformatics.org/eml-2.0.0</documentType>
|
528 |
|
|
<documentURL>http://www.lternet.edu/~dcosta/document1.xml</documentURL>
|
529 |
|
|
</document>
|
530 |
|
|
<document>
|
531 |
|
|
<docid>
|
532 |
|
|
<scope>demoDocument</scope>
|
533 |
|
|
<identifier>2</identifier>
|
534 |
|
|
<revision>1</revision>
|
535 |
|
|
</docid>
|
536 |
|
|
<documentType>eml://ecoinformatics.org/eml-2.0.0</documentType>
|
537 |
|
|
<documentURL>http://www.lternet.edu/~dcosta/document2.xml</documentURL>
|
538 |
|
|
</document>
|
539 |
|
|
</hrv:harvestList>
|
540 |
|
|
</pre>
|
541 |
|
|
<p>
|
542 |
|
|
After editing the Harvest List, ensure that the Harvest List XML file resides
|
543 |
|
|
at the appropriate location on disk as specified by the URL that was entered
|
544 |
|
|
during the <a href=#Registering>registration</a> process.
|
545 |
|
|
</p>
|
546 |
2185
|
costa
|
<p>
|
547 |
|
|
The <a href=./harvestListEditor.html>Harvest List Editor</a> is a tool that
|
548 |
|
|
assists in composing and editing a Harvest List. (Click
|
549 |
|
|
<a href=./harvestListEditor.html>here</a> for additional details.)
|
550 |
|
|
</p>
|
551 |
2131
|
costa
|
<h5><a name="Preparing">Preparing EML Documents for harvest</a></h5>
|
552 |
|
|
<p>
|
553 |
|
|
To prepare a set of EML documents for harvest, ensure that the following is
|
554 |
|
|
true for each document:
|
555 |
|
|
<ul>
|
556 |
|
|
<li>The document contains valid EML</li>
|
557 |
|
|
<li>The document is specified in a <document> element in the
|
558 |
|
|
site's Harvest List, as described above</li>
|
559 |
|
|
<li>The file resides at the appropriate location on disk as specified
|
560 |
|
|
by its URL in the Harvest List</li>
|
561 |
|
|
</ul>
|
562 |
|
|
</p>
|
563 |
|
|
<h5><a name="Reviewing" >Reviewing Harvester Reports to the Site Contact</a></h5>
|
564 |
|
|
<P>
|
565 |
|
|
After every scheduled harvest that takes place at a particular Harvest
|
566 |
|
|
Site, Harvester will send an email report to the Site Contact detailing the
|
567 |
|
|
operations that were performed during the harvest.
|
568 |
|
|
The report will contain information about the operations that were
|
569 |
|
|
performed by Harvester at that site, such as
|
570 |
|
|
which EML documents were harvested and whether any errors were encountered.
|
571 |
|
|
</P>
|
572 |
|
|
<P>
|
573 |
|
|
The Site Contact should review the report, paying particularly
|
574 |
|
|
close attention to any errors that are reported. Errors are indicated
|
575 |
|
|
by operations that display a status value of 1, while operations that
|
576 |
|
|
display a status value of 0 indicate that the operation completed
|
577 |
|
|
successfully.
|
578 |
|
|
</P>
|
579 |
|
|
<p>
|
580 |
|
|
When errors are reported,
|
581 |
|
|
the Site Contact should try to determine whether the source of the error
|
582 |
|
|
is something that can be corrected at the site. Common causes of errors
|
583 |
|
|
might be:
|
584 |
|
|
<ul>
|
585 |
|
|
<li>A document URL specified in the Harvest List does not match
|
586 |
|
|
the location of the actual EML file on the disk</li>
|
587 |
|
|
<li>The Harvest List does not contain valid XML as specified in
|
588 |
|
|
the <a href=../../lib/harvester/harvestList.xsd>harvestList.xsd</a> schema</li>
|
589 |
|
|
<li>The URL to the Harvest List that was specified during
|
590 |
|
|
registration with Harvester does not match the actual location of
|
591 |
|
|
the Harvest List on the disk</li>
|
592 |
|
|
<li>An EML document that Harvester attempted to upload to Metacat does
|
593 |
|
|
not contain valid EML</li>
|
594 |
|
|
</ul>
|
595 |
|
|
</P>
|
596 |
|
|
<p>
|
597 |
|
|
If the Site Contact is unable to determine the cause of the error and its
|
598 |
|
|
resolution, he or she should contact the Harvester Administrator for assistance.
|
599 |
|
|
</p>
|
600 |
|
|
<a href="./properties.html">Back</a> |
|
601 |
|
|
<a href="./metacattour.html">Home</a> |
|
602 |
|
|
<a href="./unimplem.html">Next</a>
|
603 |
|
|
</BODY>
|
604 |
|
|
</HTML>
|