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

Last change on this file since 1473 was 1455, checked in by stefan, 24 years ago

* empty log message *

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