source: tags/gsdl-2_30d-distribution/gsdl/macros/collect.dm@ 2308

Last change on this file since 2308 was 1816, checked in by sjboddie, 23 years ago

* empty log message *

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