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

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

More minor changes to the collector

  • Property svn:keywords set to Author Date Id Revision
File size: 30.8 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);" target=_top><img
12name="_4_" src="_2_" onLoad="gbutton(this,'_3_');" border=0 alt="_5_"></a>}
13_gsjimage_ [v=1] {<a href="javascript:check\_submit('_4_');" target=_top>_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<nobr>_typeselect_(1,file)<input type=text name="bc1inputdir1" value="_cgiargbc1inputdir1_" size=60></nobr>
549<br>
550<nobr>_typeselect_(2,http)<input type=text name="bc1inputdir2" value="_cgiargbc1inputdir2_" size=60></nobr>
551<br>
552<nobr>_typeselect_(3,ftp)<input type=text name="bc1inputdir3" value="_cgiargbc1inputdir3_" size=60></nobr>
553<br>
554<nobr>_typeselect_(4,file)<input type=text name="bc1inputdir4" value="_cgiargbc1inputdir4_" size=60></nobr>
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<head>
678<script>
679<!--
680function check\_submit (gotopage) \{
681 var form = document.collectorform;
682 form.cp.value = gotopage;
683 form.submit();
684\}
685// -->
686</script>
687<form name="collectorform" method=post action="_gwcgi_">
688<input type=hidden name="e" value="_decodedcompressedoptions_">
689<input type=hidden name="cp" value="_cgiargcp_">
690</head>
691
692<frameset rows="*,160" border=0>
693 <noframes><body bgcolor="#ffffff">
694 <p>You must have a frame enabled browser to obtain feedback
695 on how the building process is progressing. The collection <i>will</i>
696 continue to build as normal however.
697
698 <table>
699 <tr valign=center><td>
700 To stop the building process at any time, click here.
701 <br>The collection you are working on will remain intact.
702 </td>
703 <td><input type="submit" value="stop building"></td>
704 </table>
705
706 </body>
707 </noframes>
708 <frame src="_gwcgi_?e=_compressedoptions_&cp=bildframe1">
709 <frame src="_gwcgi_?e=_compressedoptions_&cp=bildstatus">
710</frameset>
711</html>
712}
713
714#######################################################################
715# bildframe1
716#######################################################################
717
718# header overridden to allow base target to be set
719# also no page banner to maximise what we can fit in the frame without scrolling
720_bildframe1header_ {_cgihead_
721<html>
722<head>
723<base target=_top>
724<title>_pagetitle_</title>
725_globalscripts_
726</head>
727<body bgcolor="\#ffffff" text="\#000000" link="\#006666"
728 alink="\#cc9900" vlink="\#666633" background="_httpiconchalk_">
729_startspacer_
730}
731_bildframe1header_[v=1] {_cgihead_
732<html>
733<head>
734<base target=_top>
735<title>_pagetitle_</title>
736_globalscripts_
737</head>
738<body bgcolor="\#ffffff" text="\#000000" link="\#006666"
739 alink="\#cc9900" vlink="\#666633" background="_httpiconchalk_">
740}
741_bildframe1scriptextra_ {}
742_bildframe1content_ {
743<form name="collectorform" method=post action="_gwcgi_">
744<input type=hidden name="e" value="_decodedcompressedoptions_">
745<input type=hidden name="cp" value="bildcancel">
746<center>
747<table width=_pagewidth_>
748<tr><td>
749_iconblankbar_
750<center>
751<h2>Build</h2>
752</center>
753<p>_iconblankbar_
754<p>
755The collection is now being built: this might take some time. The building
756status line below gives feedback on how the operation is progressing.
757<p>
758
759<table>
760<tr valign=center><td>
761To stop the building process at any time, click here.
762<br>The collection you are working on will remain intact.
763</td>
764<td><input type="submit" value="stop building"></td>
765</table>
766
767<p>
768If you leave this page (and have not cancelled the building process with
769the "stop building" button) the collection will continue to build and will
770be installed upon successful completion.
771</td></tr>
772</table></center>
773</form>
774}
775
776
777#######################################################################
778# bildcancel
779#######################################################################
780
781_bildcancelscriptextra_ {
782function check\_submit (gotopage) \{
783 var form = document.collectorform;
784 form.cp.value = gotopage;
785 form.submit();
786\}
787}
788_bildcancelcontent_ {
789<form name="collectorform" method=post action="_gwcgi_">
790<input type=hidden name="e" value="_decodedcompressedoptions_">
791<input type=hidden name="cp" value="_cgiargcp_">
792</form>
793<center>
794<table width=_pagewidth_>
795<tr><td>
796_iconblankbar_
797<center>
798<h2>Build cancelled</h2>
799</center>
800<p>_iconblankbar_
801<p>
802The collection building process was cancelled. Use the yellow buttons below
803to make changes to your collection or restart the building process.
804<p><center>
805_collectorbar_
806</center>
807
808</td></tr>
809</table></center>
810}
811
812
813#######################################################################
814# bildstatus
815#######################################################################
816
817# special header for status page
818_bildstatusheader_ {_cgihead_
819_htmlhead_(background="_httpiconchalk_" onLoad="initialize();")_startspacer_
820}
821_bildstatusheader_[v=1] {_cgihead_
822_htmlhead_(onLoad="initialize();")
823}
824
825_bildstatusscriptextra_ {
826var timer = 5;
827function initialize() \{
828 setTimeout("count_down()",1000);
829\}
830
831function count_down() \{
832 if (timer==0) \{
833 window.status = "";
834 document.collectorform.submit();
835 \} else \{
836 window.status = "Building status update in "+timer+" seconds";
837 timer--;
838 setTimeout("count_down()",1000);
839 \}
840\}
841}
842
843_bildstatuscontent_ {
844<form name="collectorform" method=post action="_gwcgi_">
845<input type=hidden name="e" value="_decodedcompressedoptions_">
846<center>
847<table width=_pagewidth_>
848<tr><td>
849_statusline_
850</td></tr>
851</table></center>
852</form>
853}
854
855
856#######################################################################
857# bilddone
858#######################################################################
859
860_bilddoneheader_ {_cgihead_
861_htmlhead_(background="_httpiconchalk_")_startspacer_
862}
863_bilddonescriptextra_ {}
864_bilddonecontent_ {
865<center>
866<table width=_pagewidth_>
867<tr><td>
868<p>Collection built successfully.
869
870<p><center>
871_collectorbar_
872</center>
873
874</td></tr>
875</table></center>
876}
877
878
879#######################################################################
880# bildfail
881#######################################################################
882
883_bildfailheader_ {_cgihead_
884_htmlhead_(background="_httpiconchalk_")_startspacer_
885}
886_bildfailscriptextra_ {
887function check\_submit (gotopage) \{
888 var form = document.collectorform;
889 form.cp.value = gotopage;
890 form.submit();
891\}
892}
893_bildfailcontent_ {
894<form name="collectorform" method=post action="_gwcgi_">
895<input type=hidden name="e" value="_decodedcompressedoptions_">
896<input type=hidden name="cp" value="_cgiargcp_">
897</form>
898<center>
899<table width=_pagewidth_>
900<tr><td>
901<p>An error has occurred while attempting to build your collection.
902<br> The build log contains the following:
903<p>_faillog_
904
905<p><center>
906_collectorbar_
907</center>
908
909</td></tr>
910</table></center>
911}
912
913
914#######################################################################
915# Error and message pages
916#######################################################################
917
918_messagehead_ {
919<form name="collectorform" method=post action="_gwcgi_">
920<input type=hidden name="e" value="_decodedcompressedoptions_">
921
922<center>
923<table width=_pagewidth_>
924<tr><td>
925_iconblankbar_
926}
927
928_messagefoot_ {
929<p>
930<a href="javascript:document.collectorform.submit();">Return to the collector</a>
931<p>_iconblankbar_
932</td></tr>
933</table></center>
934</form>
935}
936
937_messagefootnolink_ {
938<p>_iconblankbar_
939</td></tr>
940</table></center>
941</form>
942}
943
944_delpermissioncontent_ {
945_messagehead_
946<p>
947Some or all of the _cgiargbc1dirname_ collection could not be
948deleted. Possible causes are:
949<ul>
950<li> Greenstone does not have permission to delete the gsdl/collect/_cgibc1dirname_
951directory.
952</ul>
953_messagefoot_
954}
955
956_delinvalidcontent_ {
957_messagehead_
958<p>
959The _cgiargbc1dirname_ collection is protected or invalid. Deletion was cancelled.
960_messagefoot_
961}
962
963_delsuccesscontent_ {
964_messagehead_
965<p>
966The _cgiargbc1dirname_ collection was successfully deleted.
967_messagefoot_
968}
969
970_clonefailcontent_ {
971_messagehead_
972<input type=hidden name="bc1clone" value="0">
973<p>
974The _cgiargclonecol_ collection cound not be cloned. Possible causes are:
975<ul>
976<li> The _cgiargclonecol_ collection doesn't exist
977<li> The _cgiargclonecol_ collection has no collect.cfg configuration file
978<li> Greenstone does not have permission to read the collect.cfg configuration file
979_messagefoot_
980}
981
982_genericcontent_ {
983_messagehead_
984<p>
985Collector error.
986_messagefoot_
987}
988
989_tmpfailcontent_ {
990_messagehead_
991<p>
992The collector failed to read from or write to a temporary file or
993directory. Possible causes are:
994<ul>
995<li> Greenstone does not have read/write access to the gsdl/tmp
996 directory.
997</ul>
998_messagefoot_
999}
1000
1001_mkcolfailcontent_ {
1002_messagehead_
1003<p>
1004
1005The collector failed to create the directory structure required by the new
1006collection (mkcol.pl failed). Possible causes are:
1007<ul>
1008<li> Greenstone does not have permission to write to the gsdl/tmp
1009 directory.
1010<li> mkcol.pl perl script errors.
1011</ul>
1012_messagefoot_
1013}
1014
1015_nocollectioncontent_ {
1016_messagehead_
1017<p>
1018Collector error: no collection name was provided for the new collection. Try
1019restarting the Collector from the beginning.
1020<br><a href="_httppagecollector_">Restart the Collector</a>
1021<p>
1022_messagefootnolink_
1023}
1024
1025_reloaderrorcontent_ {
1026_messagehead_
1027<p>
1028An error occurred while creating the new collection. This may have been due
1029to Greenstone getting confused by the use of your browser's "reload" or
1030"back" buttons (please try to avoid using these buttons while creating a
1031collection with the Collector). It is recommended that you restart the
1032Collector from the beginning.
1033<br><a href="_httppagecollector_">Restart the Collector</a>
1034<p>
1035_messagefootnolink_
1036}
1037
1038_installfailcontent_ {
1039_messagehead_
1040<p>
1041
1042The collector failed to install your new collection correctly.
1043Possible causes are:
1044<ul>
1045<li> Greenstone does not have permission to write to the gsdl/collect
1046 directory.
1047<li> A _cgiargsbc1dirname_ collection already exists in the gsdl/collect
1048 directory.
1049</ul>
1050_messagefoot_
1051}
Note: See TracBrowser for help on using the repository browser.