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

Last change on this file since 2639 was 2559, checked in by sjboddie, 23 years ago

reverted back to the way things were after a brief time when the
collector's status frame was green (which was widely hated by all who
saw it)

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