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

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

added button to collector for exporting a collection to cd-rom (though
it's not yet implemented)

  • Property svn:keywords set to Author Date Id Revision
File size: 31.5 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_&cp=info}
90_httpsrce_ {_gwcgi_?e=_compressedoptions_&cp=srce}
91_httpconf_ {_gwcgi_?e=_compressedoptions_&cp=conf}
92_httpbild_ {_gwcgi_?e=_compressedoptions_&cp=bild}
93_httpview_ {_gwcgi_?a=p&p=about&c=_cgiargbc1dirname_}
94_httpdel_ {javascript:do_delete();}
95_httpexpt_ {_gwcgi_?e=_compressedoptions_&cp=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=cp value=new checked>
171create an entirely new collection
172<br>
173<input type=radio name=cp 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.cp.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 distribution on a 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="cp" value="_cgiargcp_">
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.cp.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="cp" value="_cgiargcp_">
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.cp.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="cp" value="_cgiargcp_">
552<input type=hidden name="bc1clonechanged" value="0">
553
554<center>
555<table width=_pagewidth_>
556<tr><td>
557_iconblankbar_
558_If_("_cgiargbc1esrce_" eq "1",_srceappend_,_srcenew_)
559
560<h4>Input source:</h4>
561<nobr>_typeselect_(1,file)<input type=text name="bc1inputdir1" value="_cgiargbc1inputdir1_" size=60></nobr>
562<br>
563<nobr>_typeselect_(2,http)<input type=text name="bc1inputdir2" value="_cgiargbc1inputdir2_" size=60></nobr>
564<br>
565<nobr>_typeselect_(3,ftp)<input type=text name="bc1inputdir3" value="_cgiargbc1inputdir3_" size=60></nobr>
566<br>
567<nobr>_typeselect_(4,file)<input type=text name="bc1inputdir4" value="_cgiargbc1inputdir4_" size=60></nobr>
568<br>
569<font color="#909090">
570These specify where the source data is located. There are three kinds of
571location:
572<ul>
573<li> a directory name on your computer system (beginning with "file://"),
574<li> an address beginning with "http://" for files to be downloaded from the
575Web,
576<li> an address beginning with "ftp://" for files to be downloaded using FTP
577(file transfer protocol).
578</ul>
579In each case, the collection will include all files of the appropriate type in
580the specified directory, in any directories it contains, in any directories
581they contain, and so on.
582<p>You can specify up to four different input sources. If you specify a
583filename, just that file will be included.
584</font>
585
586<p>_iconblankbar_
587<p>Click one of the green buttons. If you are an advanced user you may want
588to adjust the collection configuration. Alternatively, go straight to the
589building stage. Remember, you can always revisit an earlier stage by
590clicking its yellow button.
591
592<p><center>
593_collectorbar_
594</center>
595
596</td></tr>
597</table></center>
598
599</form>
600}
601
602_typeselect_ {<select name="sel_1_">
603<option value="file://" _If_("_2_" eq "file",selected)>file://
604<option value="http://" _If_("_2_" eq "http",selected)>http://
605<option value="ftp://" _If_("_2_" eq "ftp",selected)>ftp://
606</select>}
607
608_srcemenu_ {<input type=radio name=bc1clone onClick="clone_changed(1);" value=1
609_If_("_cgiargbc1clone_" eq "1",checked)><b>Clone existing collection</b>
610<br>_fullnamemenu_<br>
611<font color=#909090>
612This pull-down menu specifies which collection you want to clone. The files in
613your new collection must be exactly the same type as those used to build
614the existing one.
615</font>
616}
617
618
619#######################################################################
620# conf (Configure collection page)
621#######################################################################
622
623_confscriptextra_ {
624var changed = 0;
625
626function check\_submit (gotopage) \{
627 var form = document.collectorform;
628 form.bc1cfgchanged.value = changed;
629 form.cp.value = gotopage;
630 form.submit();
631\}
632
633function reset\_button () \{
634 document.collectorform.reset();
635 changed = 0;
636\}
637}
638
639_confcontent_ {
640<form name="collectorform" method=post action="_gwcgi_">
641<input type=hidden name="e" value="_decodedcompressedoptions_">
642<input type=hidden name="cp" value="_cgiargcp_">
643<input type=hidden name="bc1cfgchanged" value="_cgiargbc1cfgchanged_">
644
645<center>
646<table width=_pagewidth_>
647<tr><td>
648_iconblankbar_
649<center>
650<h2>Configure collection</h2>
651</center>
652<p>_iconblankbar_
653
654<p>The building and presentation of your collection are controlled by
655specifications in a special "configuration file". Advanced users may want
656to alter the configuration settings.
657
658<center><p><b>If you are not an advanced user, just go to the bottom of the
659page.</b></center>
660
661<p>To alter the configuration settings, edit the data that appears below.
662If you make a mistake, click on &quot;Reset&quot; to reinstate the
663original configuration settings.
664
665<p><textarea name="bc1cfgfile" cols=72 rows=18 wrap=off onChange="changed=1;">
666_cfgfile_
667</textarea>
668<table><tr valign=top>
669<td><a href="javascript:reset\_button();">_iconstop_</a></td>
670<td><a href="javascript:reset\_button();">Reset</a></td>
671</tr></table>
672
673<p><center>
674_collectorbar_
675</center>
676
677</td></tr>
678</table></center>
679
680</form>
681}
682
683
684#######################################################################
685# bild (main frameset for build page)
686#######################################################################
687
688_bildcontent_ {
689<html>
690<head>
691<script>
692<!--
693function check\_submit (gotopage) \{
694 var form = document.collectorform;
695 form.cp.value = gotopage;
696 form.submit();
697\}
698// -->
699</script>
700<form name="collectorform" method=post action="_gwcgi_">
701<input type=hidden name="e" value="_decodedcompressedoptions_">
702<input type=hidden name="cp" value="_cgiargcp_">
703</head>
704
705<frameset rows="*,160" border=0>
706 <noframes><body bgcolor="#ffffff">
707 <p>You must have a frame enabled browser to obtain feedback
708 on how the building process is progressing. The collection <i>will</i>
709 continue to build as normal however.
710
711 <table>
712 <tr valign=center><td>
713 To stop the building process at any time, click here.
714 <br>The collection you are working on will remain intact.
715 </td>
716 <td><input type="submit" value="stop building"></td>
717 </table>
718
719 </body>
720 </noframes>
721 <frame src="_gwcgi_?e=_compressedoptions_&cp=bildframe1">
722 <frame src="_gwcgi_?e=_compressedoptions_&cp=bildstatus">
723</frameset>
724</html>
725}
726
727#######################################################################
728# bildframe1
729#######################################################################
730
731# header overridden to allow base target to be set
732# also no page banner to maximise what we can fit in the frame without scrolling
733_bildframe1header_ {_cgihead_
734<html>
735<head>
736<base target=_top>
737<title>_pagetitle_</title>
738_globalscripts_
739</head>
740<body bgcolor="\#ffffff" text="\#000000" link="\#006666"
741 alink="\#cc9900" vlink="\#666633" background="_httpiconchalk_">
742_startspacer_
743}
744_bildframe1header_[v=1] {_cgihead_
745<html>
746<head>
747<base target=_top>
748<title>_pagetitle_</title>
749_globalscripts_
750</head>
751<body bgcolor="\#ffffff" text="\#000000" link="\#006666"
752 alink="\#cc9900" vlink="\#666633" background="_httpiconchalk_">
753}
754_bildframe1scriptextra_ {}
755_bildframe1content_ {
756<form name="collectorform" method=post action="_gwcgi_">
757<input type=hidden name="e" value="_decodedcompressedoptions_">
758<input type=hidden name="cp" value="bildcancel">
759<center>
760<table width=_pagewidth_>
761<tr><td>
762_iconblankbar_
763<center>
764<h2>Build</h2>
765</center>
766<p>_iconblankbar_
767<p>
768The collection is now being built: this might take some time. The building
769status line below gives feedback on how the operation is progressing.
770<p>
771
772<table>
773<tr valign=center><td>
774To stop the building process at any time, click here.
775<br>The collection you are working on will remain intact.
776</td>
777<td><input type="submit" value="stop building"></td>
778</table>
779
780<p>
781If you leave this page (and have not cancelled the building process with
782the "stop building" button) the collection will continue to build and will
783be installed upon successful completion.
784</td></tr>
785</table></center>
786</form>
787}
788
789
790#######################################################################
791# bildcancel
792#######################################################################
793
794_bildcancelscriptextra_ {
795function check\_submit (gotopage) \{
796 var form = document.collectorform;
797 form.cp.value = gotopage;
798 form.submit();
799\}
800}
801_bildcancelcontent_ {
802<form name="collectorform" method=post action="_gwcgi_">
803<input type=hidden name="e" value="_decodedcompressedoptions_">
804<input type=hidden name="cp" value="_cgiargcp_">
805</form>
806<center>
807<table width=_pagewidth_>
808<tr><td>
809_iconblankbar_
810<center>
811<h2>Build cancelled</h2>
812</center>
813<p>_iconblankbar_
814<p>
815The collection building process was cancelled. Use the yellow buttons below
816to make changes to your collection or restart the building process.
817<p><center>
818_collectorbar_
819</center>
820
821</td></tr>
822</table></center>
823}
824
825
826#######################################################################
827# bildstatus
828#######################################################################
829
830# special header for status page
831_bildstatusheader_ {_cgihead_
832_htmlhead_(background="_httpiconchalk_" onLoad="initialize();")_startspacer_
833}
834_bildstatusheader_[v=1] {_cgihead_
835_htmlhead_(onLoad="initialize();")
836}
837
838_bildstatusscriptextra_ {
839var timer = 5;
840function initialize() \{
841 setTimeout("count_down()",1000);
842\}
843
844function count_down() \{
845 if (timer==0) \{
846 window.status = "";
847 document.collectorform.submit();
848 \} else \{
849 window.status = "Building status update in "+timer+" seconds";
850 timer--;
851 setTimeout("count_down()",1000);
852 \}
853\}
854}
855
856_bildstatuscontent_ {
857<form name="collectorform" method=post action="_gwcgi_">
858<input type=hidden name="e" value="_decodedcompressedoptions_">
859<center>
860<table width=_pagewidth_>
861<tr><td>
862_statusline_
863</td></tr>
864</table></center>
865</form>
866}
867
868
869#######################################################################
870# bilddone
871#######################################################################
872
873_bilddoneheader_ {_cgihead_
874_htmlhead_(background="_httpiconchalk_")_startspacer_
875}
876_bilddonescriptextra_ {}
877_bilddonecontent_ {
878<center>
879<table width=_pagewidth_>
880<tr><td>
881<p>Collection built successfully.
882
883<p><center>
884_collectorbar_
885</center>
886
887</td></tr>
888</table></center>
889}
890
891
892#######################################################################
893# bildfail
894#######################################################################
895
896_bildfailheader_ {_cgihead_
897_htmlhead_(background="_httpiconchalk_")_startspacer_
898}
899_bildfailscriptextra_ {
900function check\_submit (gotopage) \{
901 var form = document.collectorform;
902 form.cp.value = gotopage;
903 form.submit();
904\}
905}
906_bildfailcontent_ {
907<form name="collectorform" method=post action="_gwcgi_">
908<input type=hidden name="e" value="_decodedcompressedoptions_">
909<input type=hidden name="cp" value="_cgiargcp_">
910</form>
911<center>
912<table width=_pagewidth_>
913<tr><td>
914<p>An error has occurred while attempting to build your collection.
915<br> The build log contains the following:
916<p>_faillog_
917
918<p><center>
919_collectorbar_
920</center>
921
922</td></tr>
923</table></center>
924}
925
926
927#######################################################################
928# Error and message pages
929#######################################################################
930
931_messagehead_ {
932<form name="collectorform" method=post action="_gwcgi_">
933<input type=hidden name="e" value="_decodedcompressedoptions_">
934
935<center>
936<table width=_pagewidth_>
937<tr><td>
938_iconblankbar_
939}
940
941_messagefoot_ {
942<p>
943<a href="javascript:document.collectorform.submit();">Return to the collector</a>
944<p>_iconblankbar_
945</td></tr>
946</table></center>
947</form>
948}
949
950_messagefootnolink_ {
951<p>_iconblankbar_
952</td></tr>
953</table></center>
954</form>
955}
956
957_delpermissioncontent_ {
958_messagehead_
959<p>
960Some or all of the _cgiargbc1dirname_ collection could not be
961deleted. Possible causes are:
962<ul>
963<li> Greenstone does not have permission to delete the gsdl/collect/_cgibc1dirname_
964directory.
965</ul>
966_messagefoot_
967}
968
969_delinvalidcontent_ {
970_messagehead_
971<p>
972The _cgiargbc1dirname_ collection is protected or invalid. Deletion was cancelled.
973_messagefoot_
974}
975
976_delsuccesscontent_ {
977_messagehead_
978<p>
979The _cgiargbc1dirname_ collection was successfully deleted.
980_messagefoot_
981}
982
983_clonefailcontent_ {
984_messagehead_
985<input type=hidden name="bc1clone" value="0">
986<p>
987The _cgiargclonecol_ collection cound not be cloned. Possible causes are:
988<ul>
989<li> The _cgiargclonecol_ collection doesn't exist
990<li> The _cgiargclonecol_ collection has no collect.cfg configuration file
991<li> Greenstone does not have permission to read the collect.cfg configuration file
992_messagefoot_
993}
994
995_genericcontent_ {
996_messagehead_
997<p>
998Collector error.
999_messagefoot_
1000}
1001
1002_tmpfailcontent_ {
1003_messagehead_
1004<p>
1005The collector failed to read from or write to a temporary file or
1006directory. Possible causes are:
1007<ul>
1008<li> Greenstone does not have read/write access to the gsdl/tmp
1009 directory.
1010</ul>
1011_messagefoot_
1012}
1013
1014_mkcolfailcontent_ {
1015_messagehead_
1016<p>
1017
1018The collector failed to create the directory structure required by the new
1019collection (mkcol.pl failed). Possible causes are:
1020<ul>
1021<li> Greenstone does not have permission to write to the gsdl/tmp
1022 directory.
1023<li> mkcol.pl perl script errors.
1024</ul>
1025_messagefoot_
1026}
1027
1028_nocollectioncontent_ {
1029_messagehead_
1030<p>
1031Collector error: no collection name was provided for the new collection. Try
1032restarting the Collector from the beginning.
1033<br><a href="_httppagecollector_">Restart the Collector</a>
1034<p>
1035_messagefootnolink_
1036}
1037
1038_reloaderrorcontent_ {
1039_messagehead_
1040<p>
1041An error occurred while creating the new collection. This may have been due
1042to Greenstone getting confused by the use of your browser's "reload" or
1043"back" buttons (please try to avoid using these buttons while creating a
1044collection with the Collector). It is recommended that you restart the
1045Collector from the beginning.
1046<br><a href="_httppagecollector_">Restart the Collector</a>
1047<p>
1048_messagefootnolink_
1049}
1050
1051_installfailcontent_ {
1052_messagehead_
1053<p>
1054
1055The collector failed to install your new collection correctly.
1056Possible causes are:
1057<ul>
1058<li> Greenstone does not have permission to write to the gsdl/collect
1059 directory.
1060<li> A _cgiargsbc1dirname_ collection already exists in the gsdl/collect
1061 directory.
1062</ul>
1063_messagefoot_
1064}
Note: See TracBrowser for help on using the repository browser.