1 | package collector
|
---|
2 |
|
---|
3 | _imagethispage_ {<a href="_httppagecollector_">_iconhcolect_</a>}
|
---|
4 |
|
---|
5 | # _pagescriptextra_ will be set to the appropriate _***scriptextra_
|
---|
6 | # macro from within the server
|
---|
7 | _pagescriptextra_ {}
|
---|
8 |
|
---|
9 | # this is just like the _gsimage_ macro but it calls the check_submit() javascript
|
---|
10 | # function instead of linking directly to the page (_1_ argument isn't used)
|
---|
11 | _gsjimage_ {<a href="javascript:check\_submit('_4_');" onMouseover="roll('_4_',1);" onMouseOut="roll('_4_',0);"><img
|
---|
12 | name="_4_" src="_2_" onLoad="gbutton(this,'_3_');" border=0 alt="_5_"></a>}
|
---|
13 | _gsjimage_ [v=1] {<a href="javascript:check\_submit('_4_');">_5_</a><br>}
|
---|
14 |
|
---|
15 | # _gstimage_ is also similar to _gsimage_ but is used where buttons occur in a sub-frame and
|
---|
16 | # require target=_top
|
---|
17 | _gstimage_ {<a href="_1_" onMouseover="roll('_4_',1);" onMouseOut="roll('_4_',0);" target="\_top"><img
|
---|
18 | name="_4_" src="_2_" onLoad="gbutton(this,'_3_');" border=0 alt="_5_"></a>}
|
---|
19 | _gstimage_ [v=1] {<a href="_1_" target="\_top">_5_</a><br>}
|
---|
20 |
|
---|
21 |
|
---|
22 |
|
---|
23 | # a plain header for those pages that need it (the _pagebanner_ macro
|
---|
24 | # will be set to this by the server for those pages.
|
---|
25 | _plainbanner_ {}
|
---|
26 |
|
---|
27 | #######################################################################
|
---|
28 | # icons
|
---|
29 |
|
---|
30 | _iconhcolect_ {<img src="_httpimg_/h_colect.gif" alt="the collector" border=0>}
|
---|
31 | _icongreyarrow_ {<img src="_httpimg_/grarrow.gif">}
|
---|
32 | _icongreyuparrow_ {<img src="_httpimg_/guarrow.gif">}
|
---|
33 | _iconstop_ {<img src="_httpimg_/stop.gif" border=0>}
|
---|
34 |
|
---|
35 | _icongcinfoof_ {<img src="_httpicongcinfoof_" alt="_textinfo_">}
|
---|
36 | _icongcinfoon_ {<img src="_httpicongcinfoon_" alt="_textinfo_">}
|
---|
37 | _iconycinfoof_ {<img src="_httpiconycinfoof_" alt="_textinfo_">}
|
---|
38 | _iconycinfoon_ {<img src="_httpiconycinfoon_" alt="_textinfo_">}
|
---|
39 | _iconncinfoof_ {<img src="_httpiconncinfoof_" alt="_textinfo_">}
|
---|
40 | _textinfo_ {collection information}
|
---|
41 |
|
---|
42 | _icongcsrceof_ {<img src="_httpicongcsrceof_" alt="_textsrce_">}
|
---|
43 | _icongcsrceon_ {<img src="_httpicongcsrceon_" alt="_textsrce_">}
|
---|
44 | _iconycsrceof_ {<img src="_httpiconycsrceof_" alt="_textsrce_">}
|
---|
45 | _iconycsrceon_ {<img src="_httpiconycsrceon_" alt="_textsrce_">}
|
---|
46 | _iconncsrceof_ {<img src="_httpiconncsrceof_" alt="_textsrce_">}
|
---|
47 | _textsrce_ {source data}
|
---|
48 |
|
---|
49 | _icongcconfof_ {<img src="_httpicongcconfof_" alt="_textconf_">}
|
---|
50 | _icongcconfon_ {<img src="_httpicongcconfon_" alt="_textconf_">}
|
---|
51 | _iconycconfof_ {<img src="_httpiconycconfof_" alt="_textconf_">}
|
---|
52 | _iconycconfon_ {<img src="_httpiconycconfon_" alt="_textconf_">}
|
---|
53 | _iconncconfof_ {<img src="_httpiconncconfof_" alt="_textconf_">}
|
---|
54 | _textconf_ {configure collection}
|
---|
55 |
|
---|
56 | _icongcbildof_ {<img src="_httpicongcbildof_" alt="_textbild_">}
|
---|
57 | _icongcbildon_ {<img src="_httpicongcbildon_" alt="_textbild_">}
|
---|
58 | _iconycbildof_ {<img src="_httpiconycbildof_" alt="_textbild_">}
|
---|
59 | _iconycbildon_ {<img src="_httpiconycbildon_" alt="_textbild_">}
|
---|
60 | _iconncbildof_ {<img src="_httpiconncbildof_" alt="_textbild_">}
|
---|
61 | _textbild_ {build}
|
---|
62 |
|
---|
63 | _icongcviewof_ {<img src="_httpicongcviewof_" alt="_textview_">}
|
---|
64 | _icongcviewon_ {<img src="_httpicongcviewon_" alt="_textview_">}
|
---|
65 | _iconycviewof_ {<img src="_httpiconycviewof_" alt="_textview_">}
|
---|
66 | _iconycviewon_ {<img src="_httpiconycviewon_" alt="_textview_">}
|
---|
67 | _iconncviewof_ {<img src="_httpiconncviewof_" alt="_textview_">}
|
---|
68 | _textview_ {view}
|
---|
69 |
|
---|
70 | _icongcdelof_ {<img src="_httpicongcdelof_" alt="_textdel_">}
|
---|
71 | _icongcdelon_ {<img src="_httpicongcdelon_" alt="_textdel_">}
|
---|
72 | _textdel_ {delete collection}
|
---|
73 |
|
---|
74 | #######################################################################
|
---|
75 | # http macros
|
---|
76 |
|
---|
77 | _httpinfo_ {_gwcgi_?e=_compressedoptions_&cp=info}
|
---|
78 | _httpsrce_ {_gwcgi_?e=_compressedoptions_&cp=srce}
|
---|
79 | _httpconf_ {_gwcgi_?e=_compressedoptions_&cp=conf}
|
---|
80 | _httpbild_ {_gwcgi_?e=_compressedoptions_&cp=bild}
|
---|
81 | _httpview_ {_gwcgi_?e=_compressedoptions_&a=p&p=about&c=_cgiargbc1dirname_}
|
---|
82 | _httpdel_ {javascript:do_delete();}
|
---|
83 |
|
---|
84 | _httpicongcinfoof_ {_httpimg_/gcinfoof.gif}
|
---|
85 | _httpicongcinfoon_ {_httpimg_/gcinfoon.gif}
|
---|
86 | _httpiconycinfoof_ {_httpimg_/ycinfoof.gif}
|
---|
87 | _httpiconycinfoon_ {_httpimg_/ycinfoon.gif}
|
---|
88 | _httpiconncinfoof_ {_httpimg_/ncinfoof.gif}
|
---|
89 |
|
---|
90 | _httpicongcsrceof_ {_httpimg_/gcsrceof.gif}
|
---|
91 | _httpicongcsrceon_ {_httpimg_/gcsrceon.gif}
|
---|
92 | _httpiconycsrceof_ {_httpimg_/ycsrceof.gif}
|
---|
93 | _httpiconycsrceon_ {_httpimg_/ycsrceon.gif}
|
---|
94 | _httpiconncsrceof_ {_httpimg_/ncsrceof.gif}
|
---|
95 |
|
---|
96 | _httpicongcconfof_ {_httpimg_/gcconfof.gif}
|
---|
97 | _httpicongcconfon_ {_httpimg_/gcconfon.gif}
|
---|
98 | _httpiconycconfof_ {_httpimg_/ycconfof.gif}
|
---|
99 | _httpiconycconfon_ {_httpimg_/ycconfon.gif}
|
---|
100 | _httpiconncconfof_ {_httpimg_/ncconfof.gif}
|
---|
101 |
|
---|
102 | _httpicongcbildof_ {_httpimg_/gcbildof.gif}
|
---|
103 | _httpicongcbildon_ {_httpimg_/gcbildon.gif}
|
---|
104 | _httpiconycbildof_ {_httpimg_/ycbildof.gif}
|
---|
105 | _httpiconycbildon_ {_httpimg_/ycbildon.gif}
|
---|
106 | _httpiconncbildof_ {_httpimg_/ncbildof.gif}
|
---|
107 |
|
---|
108 | _httpicongcviewof_ {_httpimg_/gcviewof.gif}
|
---|
109 | _httpicongcviewon_ {_httpimg_/gcviewon.gif}
|
---|
110 | _httpiconycviewof_ {_httpimg_/ycviewof.gif}
|
---|
111 | _httpiconycviewon_ {_httpimg_/ycviewon.gif}
|
---|
112 | _httpiconncviewof_ {_httpimg_/ncviewof.gif}
|
---|
113 |
|
---|
114 | _httpicongcdelof_ {_httpimg_/gcdelof.gif}
|
---|
115 | _httpicongcdelon_ {_httpimg_/gcdelon.gif}
|
---|
116 |
|
---|
117 |
|
---|
118 | #######################################################################
|
---|
119 | # intro
|
---|
120 | #######################################################################
|
---|
121 |
|
---|
122 | _introscriptextra_ {}
|
---|
123 |
|
---|
124 | _introcontent_ {
|
---|
125 | <form name="collectorform" method=post action="_gwcgi_">
|
---|
126 | <input type=hidden name="e" value="_decodedcompressedoptions_">
|
---|
127 |
|
---|
128 | <center>
|
---|
129 | <table width=_pagewidth_>
|
---|
130 | <tr><td>
|
---|
131 | _iconblankbar_
|
---|
132 | <center>
|
---|
133 | <h2>The Collector</h2>
|
---|
134 | <p><i>The pen is mightier than the sword!
|
---|
135 | <br>Building and distributing information collections carries responsibilities
|
---|
136 | that you may want to reflect on before you begin.
|
---|
137 | There are legal issues of copyright: being able to access documents doesn't
|
---|
138 | mean you can necessarily give them to others.
|
---|
139 | There are social issues: collections should respect the customs of the
|
---|
140 | community out of which the documents arise.
|
---|
141 | And there are ethical issues: some things simply should not be made
|
---|
142 | available to others.
|
---|
143 | <br>Be sensitive to the power of information and use it wisely.
|
---|
144 | </i>
|
---|
145 | </center>
|
---|
146 | <p>_iconblankbar_
|
---|
147 |
|
---|
148 | <p>The Collector helps you to create new collections, modify or add to
|
---|
149 | existing ones, or delete collections. To do this you will be guided through a
|
---|
150 | sequence of Web pages which request the information that is needed.
|
---|
151 |
|
---|
152 | <p>First, you must decide whether to
|
---|
153 | <ul>
|
---|
154 | <input type=radio name=cp value=new checked>
|
---|
155 | create an entirely new collection
|
---|
156 | <br>
|
---|
157 | <input type=radio name=cp value=existing>
|
---|
158 | work with an existing one, adding data to it or deleting it.
|
---|
159 | </ul>
|
---|
160 | <p>_iconblankbar_
|
---|
161 |
|
---|
162 | <p>In order to build or modify digital library collections you must sign in.
|
---|
163 | This is to protect you from others logging in to your computer and altering the
|
---|
164 | information on it. Note: for security reasons you will be automatically logged
|
---|
165 | out once a 30 minute period has elapsed since you logged in. If this happens,
|
---|
166 | don't worry! -- you will be invited to log in again and can continue from where
|
---|
167 | you left off.
|
---|
168 |
|
---|
169 | <p>Please enter your username and password, and click the button to sign in.
|
---|
170 |
|
---|
171 | <table><tr><td width=80>Name:</td>
|
---|
172 | <td><input type="text" name="un" value="" size=10></td>
|
---|
173 | <td></td></tr>
|
---|
174 | <tr><td>Password:</td>
|
---|
175 | <td><input type="password" name="pw" size=10></td>
|
---|
176 | <td><input type="submit" value="sign in"></td>
|
---|
177 | </tr>
|
---|
178 | </table>
|
---|
179 | <p>_iconblankbar_
|
---|
180 | </td></tr>
|
---|
181 | </table></center>
|
---|
182 |
|
---|
183 | </form>
|
---|
184 | }
|
---|
185 |
|
---|
186 |
|
---|
187 | #######################################################################
|
---|
188 | # existing (Changing an existing collection page)
|
---|
189 | #######################################################################
|
---|
190 |
|
---|
191 | _existingscriptextra_ {
|
---|
192 | function check\_submit (gotopage) \{
|
---|
193 | var form = document.collectorform;
|
---|
194 | if (gotopage == "srce") \{
|
---|
195 | form.bc1esrce.value = "1";
|
---|
196 | \}
|
---|
197 | if (gotopage == "conf") \{
|
---|
198 | form.bc1econf.value = "1";
|
---|
199 | \}
|
---|
200 | form.cp.value = gotopage;
|
---|
201 | form.submit();
|
---|
202 | \}
|
---|
203 |
|
---|
204 | function do_delete () \{
|
---|
205 | var form = document.collectorform;
|
---|
206 | var i = form.bc1dirname.selectedIndex;
|
---|
207 | var del = confirm ("Confirm deletion of " + form.bc1dirname.options[i].value + " collection?");
|
---|
208 | if (del) \{
|
---|
209 | form.bc1dodelete.value = "1";
|
---|
210 | form.submit();
|
---|
211 | \}
|
---|
212 | \}
|
---|
213 | }
|
---|
214 |
|
---|
215 | _changeexisting_ {
|
---|
216 | <p>First select the collection that you want to work with (write protected
|
---|
217 | collections won't appear in this list).
|
---|
218 | <br>_fullnamemenu_<br>
|
---|
219 | <p>With the collection you have selected, you can
|
---|
220 |
|
---|
221 | <table cellspacing=6>
|
---|
222 | <tr><td width=20 align=right valign=bottom>1.</td>
|
---|
223 | <td valign=bottom>_gsjimage_( ,_collector:httpicongcsrceof_,_collector:httpicongcsrceon_,srce,_collector:textsrce_)</td>
|
---|
224 | <td valign=bottom>Add more data and rebuild the collection</td></tr>
|
---|
225 | <tr><td align=right valign=bottom>2.</td>
|
---|
226 | <td valign=bottom>_gsjimage_(_,_collector:httpicongcconfof_,_collector:httpicongcconfon_,conf,_collector:textconf_)</td>
|
---|
227 | <td valign=bottom>Edit the collection configuration file</td></tr>
|
---|
228 | <tr><td align=right valign=bottom>3.</td>
|
---|
229 | <td valign=bottom>_gsimage_(_collector:httpdel_,_collector:httpicongcdelof_,_collector:httpicongcdelon_,del,_collector:textdel_)</td>
|
---|
230 | <td valign=bottom>Delete the collection entirely</td></tr>
|
---|
231 | </table>
|
---|
232 | }
|
---|
233 |
|
---|
234 | _existingcontent_ {
|
---|
235 | <form name="collectorform" method=post action="_gwcgi_">
|
---|
236 | <input type=hidden name="e" value="_decodedcompressedoptions_">
|
---|
237 | <input type=hidden name="cp" value="_cgiargcp_">
|
---|
238 | <input type=hidden name="bc1dodelete" value="0">
|
---|
239 | <input type=hidden name="bc1esrce" value="0">
|
---|
240 | <input type=hidden name="bc1econf" value="0">
|
---|
241 | <center>
|
---|
242 | <table width=_pagewidth_>
|
---|
243 | <tr><td>
|
---|
244 | _iconblankbar_
|
---|
245 | <center><h2>Changing an existing collection</h2></center>
|
---|
246 | _iconblankbar_
|
---|
247 | _If_("_fullnamemenu_" eq "",<p>No write-enabled collections are available for modifying,_changeexisting_)
|
---|
248 | <p>_iconblankbar_
|
---|
249 | </td></tr>
|
---|
250 | </table></center>
|
---|
251 | </form>
|
---|
252 | }
|
---|
253 |
|
---|
254 |
|
---|
255 | #######################################################################
|
---|
256 | # new (Create a new collection page)
|
---|
257 | #######################################################################
|
---|
258 |
|
---|
259 | _newscriptextra_ {}
|
---|
260 |
|
---|
261 | _newcontent_ {
|
---|
262 | <center>
|
---|
263 | <table width=_pagewidth_>
|
---|
264 | <tr><td>
|
---|
265 | _iconblankbar_
|
---|
266 | <center><h2>Creating a new collection</h2></center>
|
---|
267 | _iconblankbar_
|
---|
268 |
|
---|
269 | <p>The sequence of steps needed to create a new digital library collection is:
|
---|
270 | <table cellspacing=6>
|
---|
271 | <tr><td width=20 align=right valign=bottom>1.</td>
|
---|
272 | <td valign=bottom>_iconncinfoof_</td>
|
---|
273 | <td valign=bottom>Specify its name (and associated information)</td></tr>
|
---|
274 | <tr><td align=right valign=bottom>2.</td>
|
---|
275 | <td valign=bottom>_iconncsrceof_</td>
|
---|
276 | <td valign=bottom>Specify where the source data comes from</td></tr>
|
---|
277 | <tr><td align=right valign=bottom>3.</td>
|
---|
278 | <td valign=bottom>_iconncconfof_</td>
|
---|
279 | <td valign=bottom>Adjust the configuration options (advanced users only)</td></tr>
|
---|
280 | <tr><td align=right valign=bottom>4.</td>
|
---|
281 | <td valign=bottom>_iconncbildof_</td>
|
---|
282 | <td valign=bottom>"Build" the collection (see below)</td></tr>
|
---|
283 | <tr><td align=right valign=bottom>5.</td>
|
---|
284 | <td valign=bottom>_iconncviewof_</td>
|
---|
285 | <td valign=bottom>Proudly view your handiwork.</td></tr>
|
---|
286 | </table>
|
---|
287 |
|
---|
288 | <p>The fourth step is where the computer does all the work. In the "building"
|
---|
289 | process the computer makes all the indexes and gathers together any other
|
---|
290 | information that is required to make things work. But first you have to
|
---|
291 | specify the information.
|
---|
292 |
|
---|
293 | <p>_iconblankbar_
|
---|
294 |
|
---|
295 | <p>A diagram appears below that will help you keep track of where you are. The
|
---|
296 | green button is the one that you click to carry on in the sequence. As you go
|
---|
297 | through the sequence, the buttons will change to yellow. You can return to a
|
---|
298 | previous page by clicking on the corresponding yellow button in the diagram.
|
---|
299 |
|
---|
300 | <p>When you are ready, click the green "collection information" button to
|
---|
301 | begin creating your new digital library collection!
|
---|
302 |
|
---|
303 | <p><center>
|
---|
304 | _collectorbar_
|
---|
305 | </center>
|
---|
306 |
|
---|
307 | </td></tr>
|
---|
308 | </table></center>
|
---|
309 | }
|
---|
310 |
|
---|
311 |
|
---|
312 | #######################################################################
|
---|
313 | # info (Collection information page)
|
---|
314 | #######################################################################
|
---|
315 |
|
---|
316 | _infoscriptextra_ {
|
---|
317 | function check\_submit (gotopage) \{
|
---|
318 | var form = document.collectorform;
|
---|
319 | if (form.bc1fullname.value.match(/^\\s*$/))
|
---|
320 | \{
|
---|
321 | alert("Collection name must be specified");
|
---|
322 | form.bc1fullname.focus();
|
---|
323 | return;
|
---|
324 | \}
|
---|
325 | else if (form.bc1contactemail.value.match(/^\\s*$/))
|
---|
326 | \{
|
---|
327 | alert("Email address must be specified");
|
---|
328 | form.bc1contactemail.focus();
|
---|
329 | return;
|
---|
330 | \}
|
---|
331 | else if (!form.bc1contactemail.value.match(/^([^@]+)@(.+)$/))
|
---|
332 | \{
|
---|
333 | alert("Please specify email address in the form: usename@domain");
|
---|
334 | form.bc1contactemail.focus();
|
---|
335 | return;
|
---|
336 | \}
|
---|
337 | else if (form.bc1aboutdesc.value.match(/^\\s*$/))
|
---|
338 | \{
|
---|
339 | alert("Description of collection must be specified");
|
---|
340 | form.bc1aboutdesc.focus();
|
---|
341 | return;
|
---|
342 | \}
|
---|
343 | form.cp.value = gotopage;
|
---|
344 | form.submit();
|
---|
345 | \}
|
---|
346 | }
|
---|
347 |
|
---|
348 | _infocontent_ {
|
---|
349 | <form name="collectorform" method=post action="_gwcgi_">
|
---|
350 | <input type=hidden name="e" value="_decodedcompressedoptions_">
|
---|
351 | <input type=hidden name="cp" value="_cgiargcp_">
|
---|
352 | <input type=hidden name="bc1infochanged" value="0">
|
---|
353 |
|
---|
354 | <center>
|
---|
355 | <table width=_pagewidth_>
|
---|
356 | <tr><td>
|
---|
357 | _iconblankbar_
|
---|
358 | <center>
|
---|
359 | <h2>Collection information</h2>
|
---|
360 | </center>
|
---|
361 | <p>_iconblankbar_
|
---|
362 |
|
---|
363 | <p>When creating a new collection you need to enter some preliminary
|
---|
364 | information about the source data. This process is structured as a series
|
---|
365 | of Web pages, overseen by The Collector. The bar at the bottom of the page
|
---|
366 | shows you the sequence of pages to be completed.
|
---|
367 |
|
---|
368 | <h4>Title for collection:</h4>
|
---|
369 | <input type="text" name="bc1fullname" value="_cgiargbc1fullname_"
|
---|
370 | onChange="document.collectorform.bc1infochanged.value=1;") size=72>
|
---|
371 | <br>
|
---|
372 | <font color="#909090">
|
---|
373 | The collection title is a short phrase used throughout the digital library to
|
---|
374 | identify the content of the collection. Example titles
|
---|
375 | include "Computer Science Technical Reports" and "Humanity
|
---|
376 | Development Library."
|
---|
377 | </font>
|
---|
378 |
|
---|
379 | <h4>Contact email address:</h4>
|
---|
380 | <input type="text" name="bc1contactemail" value="_cgiargbc1contactemail_"
|
---|
381 | onChange="document.collectorform.bc1infochanged.value=1;" size=72>
|
---|
382 | <br>
|
---|
383 | <font color="#909090">
|
---|
384 | This email address specifies the first point of contact for the collection.
|
---|
385 | If the Greenstone software detects a problem, a diagnostic report is
|
---|
386 | sent to this address. Enter an email address in its full form:
|
---|
387 | <tt>name@domain</tt>.
|
---|
388 | </font>
|
---|
389 |
|
---|
390 | <h4>About this collection:</h4>
|
---|
391 | <textarea name="bc1aboutdesc" cols=72 rows=6 wrap=physical
|
---|
392 | onChange="document.collectorform.bc1infochanged.value=1;">
|
---|
393 | _cgiargbc1aboutdesc_
|
---|
394 | </textarea>
|
---|
395 | <br>
|
---|
396 | <font color="#909090">
|
---|
397 | This is statement describing the principles governing what is included in the
|
---|
398 | collection. It appears on the first page when the collection is presented.
|
---|
399 | </font>
|
---|
400 |
|
---|
401 | <p>_iconblankbar_
|
---|
402 |
|
---|
403 | <p>Your position in the sequence is indicated by an arrow underneath--in this
|
---|
404 | case, the "collection information" stage. To proceed, click the green "source
|
---|
405 | data" button.
|
---|
406 |
|
---|
407 | <p><center>
|
---|
408 | _collectorbar_
|
---|
409 | </center>
|
---|
410 |
|
---|
411 | </td></tr>
|
---|
412 | </table></center>
|
---|
413 |
|
---|
414 | </form>
|
---|
415 | }
|
---|
416 |
|
---|
417 |
|
---|
418 | #######################################################################
|
---|
419 | # srce (Source data page)
|
---|
420 | #######################################################################
|
---|
421 |
|
---|
422 | # _fullnamemenu is set from within the server. If it's empty there are
|
---|
423 | # no valid collections
|
---|
424 | _fullnamemenu_ {}
|
---|
425 |
|
---|
426 | _srcescriptextra_ {
|
---|
427 | var cloneval = _cgiargbc1clone_;
|
---|
428 |
|
---|
429 | function check\_submit (gotopage) \{
|
---|
430 | var form = document.collectorform;
|
---|
431 | if (form.bc1inputdir1.value.match(/^\\s*$/) &&
|
---|
432 | form.bc1inputdir2.value.match(/^\\s*$/) &&
|
---|
433 | form.bc1inputdir3.value.match(/^\\s*$/) &&
|
---|
434 | form.bc1inputdir4.value.match(/^\\s*$/))
|
---|
435 | \{
|
---|
436 | alert("At least one input source must be specified");
|
---|
437 | form.bc1inputdir1.focus();
|
---|
438 | return;
|
---|
439 | \}
|
---|
440 |
|
---|
441 | form.cp.value = gotopage;
|
---|
442 | form.submit();
|
---|
443 | \}
|
---|
444 |
|
---|
445 | function clone\_changed (changedto) \{
|
---|
446 | var form = document.collectorform;
|
---|
447 | if (changedto != cloneval) \{
|
---|
448 | form.bc1clonechanged.value = 1;
|
---|
449 | \} else \{
|
---|
450 | form.bc1clonechanged.value = 0;
|
---|
451 | \}
|
---|
452 | \}
|
---|
453 | }
|
---|
454 |
|
---|
455 | _srcenew_ {
|
---|
456 | <center>
|
---|
457 | <h2>Source data</h2>
|
---|
458 | </center>
|
---|
459 | <p>_iconblankbar_
|
---|
460 |
|
---|
461 | <p>You can either create a completely new collection, or "clone" an existing one
|
---|
462 | -- that is, base the structure of your new collection on one that exists already.
|
---|
463 | <ul>
|
---|
464 | <input type=radio onClick="clone_changed(0);" name=bc1clone value=0
|
---|
465 | _If_("_cgiargbc1clone_" eq "0",checked)><b>Create new collection</b>
|
---|
466 | <br><font color="#909090">
|
---|
467 | Create a completely new collection. The collection may contain html documents (.htm, .html), plain text
|
---|
468 | documents (.txt, .text), or email documents (.email).
|
---|
469 | </font>
|
---|
470 | </ul>
|
---|
471 | <ul>_If_("_fullnamemenu_" eq "",
|
---|
472 | No collections available for cloning.,_srcemenu_)
|
---|
473 | </ul>
|
---|
474 | }
|
---|
475 |
|
---|
476 | _srceappend_ {
|
---|
477 | <center>
|
---|
478 | <h2>Add new data</h2>
|
---|
479 | </center>
|
---|
480 | <p>_iconblankbar_
|
---|
481 | <h4>Adding data:</h4>
|
---|
482 | The files that you specify below will be added to the collection. Make sure
|
---|
483 | that you do not re-specify files that are already in the collection:
|
---|
484 | otherwise two copies will be included. Files are identified by their full
|
---|
485 | pathname, Web pages by their absolute Web address.
|
---|
486 | }
|
---|
487 |
|
---|
488 | _srcecontent_ {
|
---|
489 | <form name="collectorform" method=post action="_gwcgi_">
|
---|
490 | <input type=hidden name="e" value="_decodedcompressedoptions_">
|
---|
491 | <input type=hidden name="cp" value="_cgiargcp_">
|
---|
492 | <input type=hidden name="bc1clonechanged" value="0">
|
---|
493 |
|
---|
494 | <center>
|
---|
495 | <table width=_pagewidth_>
|
---|
496 | <tr><td>
|
---|
497 | _iconblankbar_
|
---|
498 | _If_("_cgiargbc1esrce_" eq "1",_srceappend_,_srcenew_)
|
---|
499 |
|
---|
500 | <h4>Input source:</h4>
|
---|
501 | <input type=text name="bc1inputdir1" value="_cgiargbc1inputdir1_" size=72>
|
---|
502 | <br>
|
---|
503 | <input type=text name="bc1inputdir2" value="_cgiargbc1inputdir2_" size=72>
|
---|
504 | <br>
|
---|
505 | <input type=text name="bc1inputdir3" value="_cgiargbc1inputdir3_" size=72>
|
---|
506 | <br>
|
---|
507 | <input type=text name="bc1inputdir4" value="_cgiargbc1inputdir4_" size=72>
|
---|
508 | <br>
|
---|
509 | <font color="#909090">
|
---|
510 | These specify where the source data is located. There are three kinds of
|
---|
511 | location:
|
---|
512 | <ul>
|
---|
513 | <li> a directory name on your computer system (beginning with "file://"),
|
---|
514 | <li> an address beginning with "http://" for files to be downloaded from the
|
---|
515 | Web,
|
---|
516 | <li> an address beginning with "ftp://" for files to be downloaded using FTP
|
---|
517 | (file transfer protocol).
|
---|
518 | </ul>
|
---|
519 | In each case, the collection will include all files of the appropriate type in
|
---|
520 | the specified directory, in any directories it contains, in any directories
|
---|
521 | they contain, and so on.
|
---|
522 | <p>You can specify up to four different input sources. If you specify a
|
---|
523 | filename, just that file will be included.
|
---|
524 | </font>
|
---|
525 |
|
---|
526 | <p>_iconblankbar_
|
---|
527 | <p>Remember, you can always revisit a previous stage by clicking its yellow
|
---|
528 | button.
|
---|
529 |
|
---|
530 | <p><center>
|
---|
531 | _collectorbar_
|
---|
532 | </center>
|
---|
533 |
|
---|
534 | </td></tr>
|
---|
535 | </table></center>
|
---|
536 |
|
---|
537 | </form>
|
---|
538 | }
|
---|
539 |
|
---|
540 | _srcemenu_ {<input type=radio name=bc1clone onClick="clone_changed(1);" value=1
|
---|
541 | _If_("_cgiargbc1clone_" eq "1",checked)><b>Clone existing collection</b>
|
---|
542 | <br>_fullnamemenu_<br>
|
---|
543 | <font color=#909090>
|
---|
544 | This pull-down menu specifies which collection you want to clone. The files in
|
---|
545 | your new collection must be exactly the same type as those used to build
|
---|
546 | the existing one.
|
---|
547 | </font>
|
---|
548 | }
|
---|
549 |
|
---|
550 |
|
---|
551 | #######################################################################
|
---|
552 | # conf (Configure collection page)
|
---|
553 | #######################################################################
|
---|
554 |
|
---|
555 | _confscriptextra_ {
|
---|
556 | var changed = 0;
|
---|
557 |
|
---|
558 | function check\_submit (gotopage) \{
|
---|
559 | var form = document.collectorform;
|
---|
560 | form.bc1cfgchanged.value = changed;
|
---|
561 | form.cp.value = gotopage;
|
---|
562 | form.submit();
|
---|
563 | \}
|
---|
564 |
|
---|
565 | function reset\_button () \{
|
---|
566 | document.collectorform.reset();
|
---|
567 | changed = 0;
|
---|
568 | \}
|
---|
569 | }
|
---|
570 |
|
---|
571 | _confcontent_ {
|
---|
572 | <form name="collectorform" method=post action="_gwcgi_">
|
---|
573 | <input type=hidden name="e" value="_decodedcompressedoptions_">
|
---|
574 | <input type=hidden name="cp" value="_cgiargcp_">
|
---|
575 | <input type=hidden name="bc1cfgchanged" value="_cgiargbc1cfgchanged_">
|
---|
576 |
|
---|
577 | <center>
|
---|
578 | <table width=_pagewidth_>
|
---|
579 | <tr><td>
|
---|
580 | _iconblankbar_
|
---|
581 | <center>
|
---|
582 | <h2>Configure collection</h2>
|
---|
583 | </center>
|
---|
584 | <p>_iconblankbar_
|
---|
585 |
|
---|
586 | <p>The building and presentation of your collection are controlled by
|
---|
587 | specifications in a special "configuration file". Advanced users may want
|
---|
588 | to alter the configuration settings.
|
---|
589 |
|
---|
590 | <center><p><b>If you are not an advanced user, just go to the bottom of the
|
---|
591 | page.</b></center>
|
---|
592 |
|
---|
593 | <p>To alter the configuration settings, edit the data that appears below.
|
---|
594 | If you make a mistake, click on "Reset" to reinstate the
|
---|
595 | original configuration settings.
|
---|
596 |
|
---|
597 | <p><textarea name="bc1cfgfile" cols=72 rows=18 wrap=off onChange="changed=1;">
|
---|
598 | _cfgfile_
|
---|
599 | </textarea>
|
---|
600 | <table><tr valign=top>
|
---|
601 | <td><a href="javascript:reset\_button();">_iconstop_</a></td>
|
---|
602 | <td><a href="javascript:reset\_button();">Reset</a></td>
|
---|
603 | </tr></table>
|
---|
604 |
|
---|
605 | <p><center>
|
---|
606 | _collectorbar_
|
---|
607 | </center>
|
---|
608 |
|
---|
609 | </td></tr>
|
---|
610 | </table></center>
|
---|
611 |
|
---|
612 | </form>
|
---|
613 | }
|
---|
614 |
|
---|
615 |
|
---|
616 | #######################################################################
|
---|
617 | # bild (main frameset for build page)
|
---|
618 | #######################################################################
|
---|
619 |
|
---|
620 | _bildcontent_ {
|
---|
621 | <html>
|
---|
622 | <frameset rows="*,150" border=0>
|
---|
623 | <noframes><body bgcolor="#ffffff">
|
---|
624 | <p>You must have a frame enabled browser to view this.</p>
|
---|
625 | </body>
|
---|
626 | </noframes>
|
---|
627 | <frame src="_gwcgi_?e=_compressedoptions_&cp=bildframe1">
|
---|
628 | <frame src="_gwcgi_?e=_compressedoptions_&cp=bildstatus">
|
---|
629 | </frameset>
|
---|
630 | </html>
|
---|
631 | }
|
---|
632 |
|
---|
633 | #######################################################################
|
---|
634 | # bildframe1
|
---|
635 | #######################################################################
|
---|
636 |
|
---|
637 | # header overridden to allow base target to be set
|
---|
638 | _bildframe1header_ {_cgihead_
|
---|
639 | <html>
|
---|
640 | <head>
|
---|
641 | <base target=_top>
|
---|
642 | <title>_pagetitle_</title>
|
---|
643 | _globalscripts_
|
---|
644 | </head>
|
---|
645 | <body bgcolor="\#ffffff" text="\#000000" link="\#006666"
|
---|
646 | alink="\#cc9900" vlink="\#666633" background="_httpiconchalk_">
|
---|
647 | _startspacer__pagebanner_
|
---|
648 | }
|
---|
649 | _bildframe1header_[v=1] {_cgihead_
|
---|
650 | <html>
|
---|
651 | <head>
|
---|
652 | <base target=_top>
|
---|
653 | <title>_pagetitle_</title>
|
---|
654 | _globalscripts_
|
---|
655 | </head>
|
---|
656 | <body bgcolor="\#ffffff" text="\#000000" link="\#006666"
|
---|
657 | alink="\#cc9900" vlink="\#666633" background="_httpiconchalk_">
|
---|
658 | _pagebanner_
|
---|
659 | }
|
---|
660 | _bildframe1scriptextra_ {
|
---|
661 | function check\_submit (gotopage) \{
|
---|
662 | var form = document.collectorform;
|
---|
663 | form.cp.value = gotopage;
|
---|
664 | form.submit();
|
---|
665 | \}
|
---|
666 | }
|
---|
667 | _bildframe1content_ {
|
---|
668 | <form name="collectorform" method=post action="_gwcgi_">
|
---|
669 | <input type=hidden name="e" value="_decodedcompressedoptions_">
|
---|
670 | <input type=hidden name="cp" value="bildcancel">
|
---|
671 | <center>
|
---|
672 | <table width=_pagewidth_>
|
---|
673 | <tr><td>
|
---|
674 | _iconblankbar_
|
---|
675 | <center>
|
---|
676 | <h2>Build</h2>
|
---|
677 | </center>
|
---|
678 | <p>_iconblankbar_
|
---|
679 | <p>
|
---|
680 | The collection is now being built: this might take some time. The building
|
---|
681 | status line below gives feedback on how the operation is progressing.
|
---|
682 | <p>
|
---|
683 | To stop the building process at any time, click here:
|
---|
684 | <input type="submit" value="stop building">
|
---|
685 | <br>The collection you are working on will remain intact.
|
---|
686 | <p>
|
---|
687 | If you leave this page (and have not cancelled the building process with
|
---|
688 | the "stop building" button) the collection will continue to build and will
|
---|
689 | be installed upon successful completion.
|
---|
690 | </td></tr>
|
---|
691 | </table></center>
|
---|
692 | </form>
|
---|
693 | }
|
---|
694 |
|
---|
695 |
|
---|
696 | #######################################################################
|
---|
697 | # bildcancel
|
---|
698 | #######################################################################
|
---|
699 |
|
---|
700 | _bildcancelscriptextra_ {
|
---|
701 | function check\_submit (gotopage) \{
|
---|
702 | var form = document.collectorform;
|
---|
703 | form.cp.value = gotopage;
|
---|
704 | form.submit();
|
---|
705 | \}
|
---|
706 | }
|
---|
707 | _bildcancelcontent_ {
|
---|
708 | <form name="collectorform" method=post action="_gwcgi_">
|
---|
709 | <input type=hidden name="e" value="_decodedcompressedoptions_">
|
---|
710 | <input type=hidden name="cp" value="_cgiargcp_">
|
---|
711 | <center>
|
---|
712 | <table width=_pagewidth_>
|
---|
713 | <tr><td>
|
---|
714 | _iconblankbar_
|
---|
715 | <center>
|
---|
716 | <h2>Build cancelled</h2>
|
---|
717 | </center>
|
---|
718 | <p>_iconblankbar_
|
---|
719 | <p>
|
---|
720 | The collection building process was cancelled. Use the yellow buttons below
|
---|
721 | to make changes to your collection or restart the building process.
|
---|
722 | <p><center>
|
---|
723 | _collectorbar_
|
---|
724 | </center>
|
---|
725 |
|
---|
726 | </td></tr>
|
---|
727 | </table></center>
|
---|
728 | </form>
|
---|
729 | }
|
---|
730 |
|
---|
731 |
|
---|
732 | #######################################################################
|
---|
733 | # bildstatus
|
---|
734 | #######################################################################
|
---|
735 |
|
---|
736 | # special header for status page
|
---|
737 | _bildstatusheader_ {_cgihead_
|
---|
738 | _htmlhead_(background="_httpiconchalk_" onLoad="initialize();")_startspacer_
|
---|
739 | }
|
---|
740 | _bildstatusheader_[v=1] {_cgihead_
|
---|
741 | _htmlhead_(onLoad="initialize();")
|
---|
742 | }
|
---|
743 |
|
---|
744 | _bildstatusscriptextra_ {
|
---|
745 | var timer = 5;
|
---|
746 | function initialize() \{
|
---|
747 | setTimeout("count_down()",1000);
|
---|
748 | \}
|
---|
749 |
|
---|
750 | function count_down() \{
|
---|
751 | if (timer==0) \{
|
---|
752 | document.collectorform.submit();
|
---|
753 | \} else \{
|
---|
754 | window.status = "Building status update in "+timer+" seconds";
|
---|
755 | timer--;
|
---|
756 | setTimeout("count_down()",1000);
|
---|
757 | \}
|
---|
758 | \}
|
---|
759 | }
|
---|
760 |
|
---|
761 | _bildstatuscontent_ {
|
---|
762 | <form name="collectorform" method=post action="_gwcgi_">
|
---|
763 | <input type=hidden name="e" value="_decodedcompressedoptions_">
|
---|
764 | <center>
|
---|
765 | <table width=_pagewidth_>
|
---|
766 | <tr><td>
|
---|
767 | _statusline_
|
---|
768 | </td></tr>
|
---|
769 | </table></center>
|
---|
770 | </form>
|
---|
771 | }
|
---|
772 |
|
---|
773 |
|
---|
774 | #######################################################################
|
---|
775 | # bilddone
|
---|
776 | #######################################################################
|
---|
777 |
|
---|
778 | _bilddoneheader_ {_cgihead_
|
---|
779 | _htmlhead_(background="_httpiconchalk_")_startspacer_
|
---|
780 | }
|
---|
781 | _bilddonescriptextra_ {}
|
---|
782 | _bilddonecontent_ {
|
---|
783 | <form name="collectorform" method=post action="_gwcgi_">
|
---|
784 | <input type=hidden name="e" value="_decodedcompressedoptions_">
|
---|
785 | <center>
|
---|
786 | <table width=_pagewidth_>
|
---|
787 | <tr><td>
|
---|
788 | <p>Collection built successfully.
|
---|
789 |
|
---|
790 | <p><center>
|
---|
791 | _collectorbar_
|
---|
792 | </center>
|
---|
793 |
|
---|
794 | </td></tr>
|
---|
795 | </table></center>
|
---|
796 | </form>
|
---|
797 | }
|
---|
798 |
|
---|
799 |
|
---|
800 | #######################################################################
|
---|
801 | # bildfail
|
---|
802 | #######################################################################
|
---|
803 |
|
---|
804 | _bildfailheader_ {_cgihead_
|
---|
805 | _htmlhead_(background="_httpiconchalk_")_startspacer_
|
---|
806 | }
|
---|
807 | _bildfailscriptextra_ {}
|
---|
808 | _bildfailcontent_ {
|
---|
809 | <form name="collectorform" method=post action="_gwcgi_">
|
---|
810 | <input type=hidden name="e" value="_decodedcompressedoptions_">
|
---|
811 | <center>
|
---|
812 | <table width=_pagewidth_>
|
---|
813 | <tr><td>
|
---|
814 | <p>An error has occurred while attempting to build your collection.
|
---|
815 | </td></tr>
|
---|
816 | </table></center>
|
---|
817 | </form>
|
---|
818 | }
|
---|
819 |
|
---|
820 |
|
---|
821 | #######################################################################
|
---|
822 | # Error and message pages
|
---|
823 | #######################################################################
|
---|
824 |
|
---|
825 | _messagehead_ {
|
---|
826 | <form name="collectorform" method=post action="_gwcgi_">
|
---|
827 | <input type=hidden name="e" value="_decodedcompressedoptions_">
|
---|
828 |
|
---|
829 | <center>
|
---|
830 | <table width=_pagewidth_>
|
---|
831 | <tr><td>
|
---|
832 | _iconblankbar_
|
---|
833 | }
|
---|
834 |
|
---|
835 | _messagefoot_ {
|
---|
836 | <p>
|
---|
837 | <a href="javascript:document.collectorform.submit();">Return to the collector</a>
|
---|
838 | <p>_iconblankbar_
|
---|
839 | </td></tr>
|
---|
840 | </table></center>
|
---|
841 | </form>
|
---|
842 | }
|
---|
843 |
|
---|
844 | _messagefootnolink_ {
|
---|
845 | <p>_iconblankbar_
|
---|
846 | </td></tr>
|
---|
847 | </table></center>
|
---|
848 | </form>
|
---|
849 | }
|
---|
850 |
|
---|
851 | _delpermissioncontent_ {
|
---|
852 | _messagehead_
|
---|
853 | <p>
|
---|
854 | Some or all of the _cgiargbc1dirname_ collection could not be
|
---|
855 | deleted. Possible causes are:
|
---|
856 | <ul>
|
---|
857 | <li> Greenstone does not have permission to delete the gsdl/collect/_cgibc1dirname_
|
---|
858 | directory.
|
---|
859 | </ul>
|
---|
860 | _messagefoot_
|
---|
861 | }
|
---|
862 |
|
---|
863 | _delinvalidcontent_ {
|
---|
864 | _messagehead_
|
---|
865 | <p>
|
---|
866 | The _cgiargbc1dirname_ collection is protected or invalid. Deletion was cancelled.
|
---|
867 | _messagefoot_
|
---|
868 | }
|
---|
869 |
|
---|
870 | _delsuccesscontent_ {
|
---|
871 | _messagehead_
|
---|
872 | <p>
|
---|
873 | The _cgiargbc1dirname_ collection was successfully deleted.
|
---|
874 | _messagefoot_
|
---|
875 | }
|
---|
876 |
|
---|
877 | _clonefailcontent_ {
|
---|
878 | _messagehead_
|
---|
879 | <input type=hidden name="bc1clone" value="0">
|
---|
880 | <p>
|
---|
881 | The _cgiargclonecol_ collection cound not be cloned. Possible causes are:
|
---|
882 | <ul>
|
---|
883 | <li> The _cgiargclonecol_ collection doesn't exist
|
---|
884 | <li> The _cgiargclonecol_ collection has no collect.cfg configuration file
|
---|
885 | <li> Greenstone does not have permission to read the collect.cfg configuration file
|
---|
886 | _messagefoot_
|
---|
887 | }
|
---|
888 |
|
---|
889 | _genericcontent_ {
|
---|
890 | _messagehead_
|
---|
891 | <p>
|
---|
892 | Collector error.
|
---|
893 | _messagefoot_
|
---|
894 | }
|
---|
895 |
|
---|
896 | _tmpfailcontent_ {
|
---|
897 | _messagehead_
|
---|
898 | <p>
|
---|
899 | The collector failed to read from or write to a temporary file or
|
---|
900 | directory. Possible causes are:
|
---|
901 | <ul>
|
---|
902 | <li> Greenstone does not have read/write access to the gsdl/tmp
|
---|
903 | directory.
|
---|
904 | </ul>
|
---|
905 | _messagefoot_
|
---|
906 | }
|
---|
907 |
|
---|
908 | _mkcolfailcontent_ {
|
---|
909 | _messagehead_
|
---|
910 | <p>
|
---|
911 |
|
---|
912 | The collector failed to create the directory structure required by the new
|
---|
913 | collection (mkcol.pl failed). Possible causes are:
|
---|
914 | <ul>
|
---|
915 | <li> Greenstone does not have permission to write to the gsdl/tmp
|
---|
916 | directory.
|
---|
917 | <li> mkcol.pl perl script errors.
|
---|
918 | </ul>
|
---|
919 | _messagefoot_
|
---|
920 | }
|
---|
921 |
|
---|
922 | _nocollectioncontent_ {
|
---|
923 | _messagehead_
|
---|
924 | <p>
|
---|
925 | Collector error: no collection name was provided for the new collection. Try
|
---|
926 | restarting the Collector from the beginning.
|
---|
927 | <br><a href="_httppagecollector_">Restart the Collector</a>
|
---|
928 | <p>
|
---|
929 | _messagefootnolink_
|
---|
930 | }
|
---|
931 |
|
---|
932 | _reloaderrorcontent_ {
|
---|
933 | _messagehead_
|
---|
934 | <p>
|
---|
935 | An error occurred while creating the new collection. This may have been due
|
---|
936 | to Greenstone getting confused by the use of your browser's "reload" or
|
---|
937 | "back" buttons (please try to avoid using these buttons while creating a
|
---|
938 | collection with the Collector). It is recommended that you restart the
|
---|
939 | Collector from the beginning.
|
---|
940 | <br><a href="_httppagecollector_">Restart the Collector</a>
|
---|
941 | <p>
|
---|
942 | _messagefootnolink_
|
---|
943 | }
|
---|
944 |
|
---|
945 | _installfailcontent_ {
|
---|
946 | _messagehead_
|
---|
947 | <p>
|
---|
948 |
|
---|
949 | The collector failed to install your new collection correctly.
|
---|
950 | Possible causes are:
|
---|
951 | <ul>
|
---|
952 | <li> Greenstone does not have permission to write to the gsdl/collect
|
---|
953 | directory.
|
---|
954 | <li> A _cgiargsbc1dirname_ collection already exists in the gsdl/collect
|
---|
955 | directory.
|
---|
956 | </ul>
|
---|
957 | _messagefoot_
|
---|
958 | }
|
---|