source: trunk/gsdl/macros/collect.dm@ 1485

Last change on this file since 1485 was 1485, checked in by sjboddie, 24 years ago

More improvements to collector

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