source: trunk/gsdl/macros/build.dm@ 1311

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

minor cosmetic changes to end-user collection building

  • Property svn:keywords set to Author Date Id Revision
File size: 38.4 KB
Line 
1package build
2
3_header_ {
4<html>
5<head>
6<title>_1_</title>
7</head>
8<body bgcolor="#ffffff" text="#000000" link="#006666"
9 alink="#cc9900" vlink="#666633">
10<table width=100%>
11 <tr>
12 <td><img src="_httpimg_/spacer.gif" width=2 height=77></td>
13 <td>_iconblankbar_
14 <center><h2>_1_</h2></center>
15 _iconblankbar_</td>
16 </tr>
17</table>
18}
19
20
21_footer_ {
22_iconblankbar_
23
24</body>
25</html>
26}
27
28
29_frameheader_ {
30<html>
31<head>
32<title>_1_</title>
33</head>
34}
35
36_framefooter_ {
37</html>
38}
39
40_wizardfooter_ {
41
42</body>
43</html>
44}
45
46_httpiconstop_ {_httpimg_/stop.gif}
47
48_iconwizardnext_{<img src="_httpiconmore_" align=absbottom
49width=_widthmore_ height=_heightmore_ border=0 alt="_texticonwizardnext_">}
50_iconwizardnext_[v=1] {_texticonwizardnext_}
51
52_iconwizardcurr_{<img src="_httpiconmore_" align=absbottom
53width=_widthmore_ height=_heightmore_ border=0 alt="_texticonwizardcurr_">}
54
55_iconwizardprev_{<img src="_httpiconless_" align=absbottom
56width=_widthless_ height=_heightless_ border=0 alt="_texticonwizardprev_">}
57_iconwizardprev_[v=1] {_texticonwizardprev_}
58
59_iconwizardreset_{<img src="_httpiconstop_" align=absbottom
60width=_widthstop_ height=_heightstop_ border=0 alt="_texticonwizardreset_">}
61_iconwizardreset_[v=1] {_texticonwizardreset_}
62
63_texticonwizardnext_ {to next page}
64_texticonwizardcurr_ {this page}
65_texticonwizardprev_ {to previous page}
66_texticonwizardreset_ {reset page}
67
68
69# new collection
70_bcargfullname_ {}
71_bcargcontactemail_ {}
72_bcargaboutdesc_ {}
73_bcargsrcformat_ {TEXT}
74_bcarginputdir_ {}
75_bcargcopydir_ {yes}
76_bcargingsdlarea_ {no}
77_bcargacronyms_ {off}
78_bcargrefine_ {}
79
80# delete collection
81_bcargfullnameindex_ {0}
82_bcargdeletearea_ {archives}
83_bcargdirname_ {}
84
85# build collection
86_bcargcopydata_ {false}
87_bcargdoimport_ {true}
88_bcargdobuild_ {true}
89
90
91_commonjavascript_ {
92 function simulate_get_action(args)
93 \{
94 var form = document.form;
95 args += "&bc1fullname=" + escape(form.bc1fullname.value);
96 args += "&bc1contactemail=" + escape(form.bc1contactemail.value);
97 args += "&bc1aboutdesc=" + escape(form.bc1aboutdesc.value);
98 args += "&bc1srcformat=" + escape(form.bc1srcformat.value);
99 args += "&bc1inputdir=" + escape(form.bc1inputdir.value);
100 args += "&bc1copydir=" + escape(form.bc1copydir.value);
101 args += "&bc1ingsdlarea=" + escape(form.bc1ingsdlarea.value);
102 args += "&bc1acronyms=" + escape(form.bc1acronyms.value);
103 args += "&bc1refine=" + escape(form.bc1refine.value);
104 args += "&wizard=" + escape(form.wizard.value);
105
106 document.location = args;
107 \}
108
109 function prev_page(new_wizard) \{
110 var form = document.form;
111 form.wizard.value = new_wizard;
112
113 simulate_get_action("_httpbuild_&bca=newcol");
114 \}
115}
116
117_wizardlink_ {
118<script language="javascript">
119 <!-- Hide code from non-js browsers
120 var bgcol = "";
121 var fgcol = "";
122 var text = "";
123
124 var wizard = "_wizard_";
125 if (wizard.match(/_1_/)) \{
126
127 if (wizard.match(/_1_$/)) \{
128 // change here to give current page different background
129 // to previous pages
130 bgcol = "bgcolor=\\"#cece00\\"";
131 fgcol = "color=\\"#006666\\"";
132 text = "_2_";
133 \}
134 else \{
135 bgcol = "bgcolor=\\"#ce9c00\\"";
136 fgcol = "color=\\"#006666\\"";
137 var page = "_1_";
138 var break_pt = wizard.indexOf(page) + page.length;
139 var wizard_direct = wizard.substring(0,break_pt);
140 text = "<a href=javascript:prev_page(\\""+wizard_direct+"\\")>_2_</a>";
141 \}
142
143
144 \}
145 else \{
146 fgcol = "color=\\"#006666\\"";
147 text = "_2_";
148 \}
149
150
151 document.writeln("<td "+bgcol+">");
152 document.writeln(" <font "+fgcol+">");
153 document.writeln(" "+text);
154 document.writeln(" </font>");
155 document.writeln("</td>");
156
157 // end hiding -->
158</script>
159}
160
161_wizardbar_ {
162<center>
163<table border=0 cellspacing=1 cellpadding=3>
164<tr bgcolor="#90c098">
165 <td bgcolor="#ffffff">
166 <font color="#000000">
167 Wizard page:
168 </font>
169 </td>
170 <td bgcolor="#ce9c00">
171 <font color="#006666">
172 <a href="_httpbuild_&bca=newcol">Reset</a>
173 </font>
174 </td>
175 _wizardlink_(textinfo,Textual information)
176 _wizardlink_(:source,Source data)
177 _wizardlink_(:archiveopts,Archive options)
178 _wizardlink_(:definished,Save)
179</tr>
180</table>
181</font>
182</center>
183}
184
185#---------------------------------------------------------------------------#
186# Create a new collection
187#---------------------------------------------------------------------------#
188
189_headmesstextinfo_ { New collection wizard: textual information }
190
191
192_contenttextinfo_ {
193
194
195<script language="javascript">
196
197 <!-- Hide code from non-js browsers
198 _commonjavascript_
199
200 function next_page() \{
201 _fullnamelist_
202 var form = document.form;
203
204 // check args
205 if (form.bc1fullname.value.match(/^\\s*$/))
206 \{
207 alert("Collection name needs to be specified");
208 form.bc1fullname.focus();
209 return;
210 \}
211 else if (form.bc1contactemail.value.match(/^\\s*$/))
212 \{
213 var mess = "Email address of the person responsible";
214 mess += " for the collection needs";
215 alert(mess);
216 form.bc1contactemail.focus();
217 return;
218 \}
219 else if (!form.bc1contactemail.value.match(/^([^@]+)@(.+)$/))
220 \{
221 alert("Please specify email address in the form: usename@domain");
222 form.bc1contactemail.focus();
223 return;
224 \}
225 else if (form.bc1aboutdesc.value.match(/^\\s*$/))
226 \{
227 alert("Description for about this collection needs to be specified");
228 form.bc1aboutdesc.focus();
229 return;
230 \}
231 var i;
232 for (i=0; i<fullnamelist.length; i++)
233 \{
234 var j;
235 for (j=0; j<fullnamelist[i].length; j++)
236 \{
237 var fn_re = "/"+fullnamelist[i][j]+"/i";
238 if (form.bc1fullname.value == fullnamelist[i][j])
239 \{
240 alert("Collection title already exists");
241 form.bc1fullname.focus();
242 return;
243 \}
244 \}
245 \}
246
247 // if control reached here then args check out
248 form.wizard.value += ":source";
249
250 simulate_get_action("_httpbuild_&bca=newcol");
251 \}
252 // end hiding -->
253
254
255</script>
256
257<center><table><tr><td>
258<form name="form" method="post" action="_gwcgi_" >
259<input type=hidden name="gsdlhome" value="_gsdlhome_">
260<input type=hidden name="a" value="bc">
261<input type=hidden name="bc" value="newcol">
262_hiddenargs_
263
264<input type=hidden name="bc1srcformat" value="_bcargsrcformat_">
265<input type=hidden name="bc1inputdir" value="_bcarginputdir_">
266<input type=hidden name="bc1copydir" value="_bcargcopydir_">
267<input type=hidden name="bc1ingsdlarea" value="_bcargingsdlarea_">
268<input type=hidden name="bc1acronyms" value="_bcargacronyms_">
269<input type=hidden name="bc1refine" value="_bcargrefine_">
270
271<table border=0>
272<tr>
273 <td colspan=4>
274 To create a new collection you are required to enter some preliminary
275 information about the source data.
276 This process is structured as a series of Web pages, overseen by the
277 new-collection &quot;wizard.&quot The wizard bar at the bottom of the page
278 shows you the sequence of pages to be completed. You can return to
279 a previous page by clicking on the corresponding item in the wizard bar.
280 </td>
281</tr>
282<tr>
283 <td>Title for collection:</td>
284 <td colspan=3>
285 <input type="text" name="bc1fullname"
286 value="_bcargfullname_") size=50>
287 </td>
288<tr>
289 <td></td>
290 <td colspan=3>
291 <font color="#909090">The collection title is a text phrase that encapsulates
292 the content of the collection and is used throughout the digital library.
293 Example titles include &quot;Computer Science Technical Reports&quot; and
294 &quot;Humanity Development Library.&quot;
295 </font>
296 </td>
297</tr>
298
299<tr>
300 <td>Contact email address:</td>
301 <td colspan=3>
302 <input type="text" name="bc1contactemail"
303 value="_bcargcontactemail_" size=50>
304 </td>
305</tr>
306<tr>
307 <td></td>
308 <td colspan=3>
309 <font color="#909090">This email address specifies the first point of
310 contact for the collection. If the collection software detects a problem,
311 then a diagnostic report is sent to this address. Enter an email address
312 in its full form: <tt>name@domain</tt>.
313 </font>
314 </td>
315</tr>
316
317<tr>
318 <td>About this collection:</td>
319
320 <td colspan=3>
321 <textarea name="bc1aboutdesc" cols=50 rows=6
322 wrap=physical>_bcargaboutdesc_</textarea>
323 </td>
324</tr>
325<tr>
326 <td></td>
327 <td colspan=3>
328 <font color="#909090">
329 A statement describing the principles governing what is included in the collection.
330 </font>
331 </td>
332</tr>
333
334<tr><td><p>&nbsp;</td></tr>
335<tr><td colspan=4 align=middle>
336 <a href="javascript:next_page();">Next page_iconwizardnext_</a>
337</table>
338</form>
339</td></tr></table></center>
340
341_wizardbar_
342}
343
344
345#---------------------------------------------------------------------------#
346
347_headmesssource_ { New collection wizard: source data }
348
349_contentsource_ {
350
351
352<script language="javascript">
353
354 <!-- Hide code from non-js browsers
355 _commonjavascript_
356
357 function next_page() \{
358 _fullnamelist_
359 var form = document.form;
360 if (form.bc1inputdir.value.match(/^\\s*$/))
361 \{
362 alert("Directory for source files needs to be specified");
363 form.bc1inputdir.focus();
364 return;
365 \}
366
367 // work out the next newcol "wizard" page
368 var prefix_re
369 = new RegExp(form.gsdlhome.value + "/collect/([^/]+)/(import|archive)");
370
371 if (form.bc1inputdir.value.match(prefix_re))
372 \{
373 form.bc1ingsdlarea.value = "yes";
374 if (form.bc1inputdir.value != "_bcarginputdir_")
375 \{
376 // input dir has been changed
377 form.bc1copydir.value = "no";
378 \}
379 \}
380 else
381 \{
382 form.bc1ingsdlarea.value = "no";
383 \}
384 form.wizard.value += ":archiveopts";
385
386 simulate_get_action("_httpbuild_&bca=newcol");
387 \}
388
389
390 function srcformat_changed() \{
391 var form = document.form;
392 var sf_index = form.bc1srcformatmenu.selectedIndex;
393 var sf_choice = form.bc1srcformatmenu.options[sf_index].value;
394 form.bc1srcformat.value = sf_choice;
395 \}
396
397 // end hiding -->
398
399</script>
400
401<center><table><tr><td>
402<form name="form" method="post" action="_gwcgi_">
403<input type=hidden name="gsdlhome" value="_gsdlhome_">
404<input type=hidden name="a" value="bc">
405<input type=hidden name="bc" value="newcol">
406_hiddenargs_
407
408<input type=hidden name="bc1fullname" value="_bcargfullname_")>
409<input type=hidden name="bc1contactemail" value="_bcargcontactemail_")>
410<input type=hidden name="bc1aboutdesc" value="_bcargaboutdesc_")>
411<input type=hidden name="bc1copydir" value="_bcargcopydir_">
412<input type=hidden name="bc1ingsdlarea" value="_bcargingsdlarea_">
413<input type=hidden name="bc1acronyms" value="_bcargacronyms_">
414<input type=hidden name="bc1refine" value="_bcargrefine_">
415
416<table border=0>
417<tr>
418 <td>Type of data:</td>
419 <td>
420 <input type="hidden" name="bc1srcformat" value="_bcargsrcformat_">
421 <select name="bc1srcformatmenu" onChange=srcformat_changed()>
422 <option value="TEXT" _If_("_bcargsrcformat_" eq "TEXT",selected)>Plain TEXT&nbsp;&nbsp;(.txt)
423 <option value="HTML" _If_("_bcargsrcformat_" eq "HTML",selected)>HTML&nbsp;&nbsp;(.htm, html)
424 <option value="EMAIL" _If_("_bcargsrcformat_" eq "EMAIL",selected)>E-mail&nbsp;&nbsp;(.email)
425 <option value="BRS" _If_("_bcargsrcformat_" eq "BRS",selected)>BBC format&nbsp;&nbsp;(.brs)
426 </select>
427 </td>
428</tr>
429<tr>
430 <td></td>
431 <td colspan=3>
432 <font color="#909090">This pull-down menu specifies the type of file format the
433 source data is in: TEXT for plain text documents, HTML for Web pages and so for.
434 Also listed in the pull-down menu are the permissible file names extensions (for
435 instance <tt>.htm</tt> and <tt>.html</tt>) for the source files (Web pages
436 in this case).
437 </font>
438 </td>
439</tr>
440
441<tr>
442 <td>
443 Input directory:
444 </td>
445
446 <td colspan=3>
447 <input type=text name="bc1inputdir" value="_bcarginputdir_" size=40>
448 </td>
449 </td>
450</tr>
451
452<tr>
453 <td></td>
454 <td colspan=3>
455 <font color="#909090">
456 The input directory specifies where on the local disk the source data is
457 located.
458 </font>
459 </td>
460</tr>
461
462<tr><td><p>&nbsp;</td></tr>
463<tr><td colspan=4 align=middle>
464 <a href="javascript:next_page();">Next page_iconwizardnext_</a>
465</table>
466</form>
467</td></tr></table></center>
468
469_wizardbar_
470}
471
472
473
474#---------------------------------------------------------------------------#
475
476_headmessarchiveopts_ { New collection wizard: archive options }
477
478_contentarchiveopts_ {
479
480
481<script language="javascript">
482
483 <!-- Hide code from non-js browsers
484 _commonjavascript_
485
486 function next_page() \{
487 _fullnamelist_
488 var form = document.form;
489
490 form.wizard.value += ":definished";
491
492 simulate_get_action("_httpbuild_&bca=newcol");
493 \}
494
495
496 function copydir_changed() \{
497 var form = document.form;
498 var cd_index = form.bc1copydirmenu.selectedIndex;
499 var cd_choice = form.bc1copydirmenu.options[cd_index].value;
500 form.bc1copydir.value = cd_choice;
501 \}
502 // end hiding -->
503
504
505</script>
506
507<center><table><tr><td>
508<form name="form" method="post" action="_gwcgi_">
509<input type=hidden name="gsdlhome" value="_gsdlhome_">
510<input type=hidden name="a" value="bc">
511<input type=hidden name="bc" value="newcol">
512_hiddenargs_
513
514<input type=hidden name="bc1fullname" value="_bcargfullname_")>
515<input type=hidden name="bc1contactemail" value="_bcargcontactemail_")>
516<input type=hidden name="bc1aboutdesc" value="_bcargaboutdesc_")>
517<input type=hidden name="bc1srcformat" value="_bcargsrcformat_">
518<input type=hidden name="bc1inputdir" value="_bcarginputdir_">
519<input type=hidden name="bc1ingsdlarea" value="_bcargingsdlarea_">
520<input type=hidden name="bc1acronyms" value="_bcargacronyms_">
521<input type=hidden name="bc1refine" value="_bcargrefine_">
522
523<table border=0>
524<tr>
525
526 <td>Copy data:</td>
527 <td>
528 <input type="hidden" name="bc1copydir" value="_bcargcopydir_">
529 <select name="bc1copydirmenu" onChange=copydir_changed()>
530 <option value="yes" _If_("_bcargcopydir_" eq "yes",selected)>Yes, make a local copy for the digital library
531 <option value="no" _If_("_bcargcopydir_" eq "no",selected)>No, form a link in digital library to source data
532 </select>
533 </td>
534</tr>
535
536<tr>
537 <td></td>
538 <td colspan=3>
539 <font color="#909090">
540 _If_("_bcargingsdlarea_" eq "yes",
541 The input directory <tt>_bcarginputdir_</tt> is internal to the
542 Greenstone collection file area. In this situation the default
543 behaviour is to build the collection directly from this
544 source data. Use the pull-down menu to alter this behaviour.
545 ,
546 The input directory <tt>_bcarginputdir_</tt> is external to the
547 Greenstone collection file area. Use this pull-down menu to
548 control whether or not a copy of the data is made for collection
549 building purposes.
550 )
551 Note, once a collection has been built it
552 is not necessary for the source data to remain in the Greenstone
553 collection area -- the collection can be safely accessed, browsed
554 and searched without this. If you wish, however, to make changes
555 to the collection and then rebuild, the source data must still be available.
556 </font>
557 </td>
558</tr>
559
560<tr><td><p>&nbsp;</td></tr>
561<tr><td colspan=4 align=middle>
562 <a href="javascript:next_page();">Next page_iconwizardnext_</a>
563</table>
564</form>
565</td></tr></table></center>
566
567_wizardbar_
568}
569
570#---------------------------------------------------------------------------#
571
572_headmessdefinished_ { New collection wizard: data entry finished }
573
574_contentdefinished_ {
575
576
577<script language="javascript">
578
579 <!-- Hide code from non-js browsers
580 _commonjavascript_
581
582 function save() \{
583 _fullnamelist_
584 var form = document.form;
585
586 var bc1refine = "";
587 if (form.bc1acronyms == "on") \{
588 bc1refine += "AcronymPlug ";
589 \}
590
591 form.wizard.value += ":definished";
592
593 var cgi_prefix = "webpage_mkcol.pl";
594 cgi_prefix += "?httpbuild=" + escape("_httpbuild_");
595 cgi_prefix += "&bc1refine=" + escape(bc1refine);
596
597 simulate_get_action(cgi_prefix);
598 \}
599 // end hiding -->
600
601
602</script>
603
604<center><table><tr><td>
605<form name="form" method="post" action="_gwcgi_">
606<input type=hidden name="gsdlhome" value="_gsdlhome_">
607<input type=hidden name="a" value="bc">
608<input type=hidden name="bc" value="newcol">
609_hiddenargs_
610
611<input type=hidden name="bc1fullname" value="_bcargfullname_")>
612<input type=hidden name="bc1contactemail" value="_bcargcontactemail_")>
613<input type=hidden name="bc1aboutdesc" value="_bcargaboutdesc_")>
614<input type=hidden name="bc1srcformat" value="_bcargsrcformat_">
615<input type=hidden name="bc1inputdir" value="_bcarginputdir_">
616<input type=hidden name="bc1copydir" value="_bcargcopydir_">
617<input type=hidden name="bc1ingsdlarea" value="_bcargingsdlarea_">
618<input type=hidden name="bc1acronyms" value="_bcargacronyms_">
619<input type=hidden name="bc1refine" value="_bcargrefine_">
620
621<table border=0>
622<tr>
623 <td>
624 This concludes the data entry required to create a new collection.
625
626 <p>Select "finish" to save your collection info and create the
627 collection or select from the wizard bar to go back and change
628 any of your previous selections.
629
630 </td>
631</tr>
632
633<tr><td><p>&nbsp;</td></tr>
634<tr><td align=middle>
635 <a href="javascript:save();">finish_iconwizardnext_</a>
636</table>
637</form>
638</td></tr></table></center>
639
640_wizardbar_
641}
642
643#---------------------------------------------------------------------------#
644# Edit a collection
645#---------------------------------------------------------------------------#
646
647_headmesseditcol_ { Edit a collection }
648
649
650_contenteditcol_ {
651
652
653<script language="javascript">
654
655 <!-- Hide code from non-js browsers
656 function simulate_get_action(args)
657 \{
658 var form = document.form;
659
660// args += "&bc1fullnameindex=" + escape(form.bc1fullnameindex.value);
661 args += "&bc1dirname=" + escape(form.bc1dirname.value);
662
663 document.location = args;
664 \}
665
666 function save() \{
667 _dirnamelist_
668 var form = document.form;
669
670 var fn_index = form.bc1fullnameindex.value;
671 var fullname = form.bc1fullnamemenu.options[fn_index].value;
672 form.bc1dirname.value = dirnamelist[fn_index];
673
674 var do_save = true;
675 if (form.bc1cfgfile.value.match(/^\\s*$/))
676 \{
677 var confirm_mess = "Configuration data to \\"" + fullname + "\\"";
678 confirm_mess += " is empty. Are you sure you want to save?";
679
680 do_save = confirm(confirm_mess);
681 \}
682 if (do_save)
683 \{
684// var cgi_prefix = "webpage_editcol.pl";
685// cgi_prefix += "?httpbuild=" + escape("_httpbuild_");
686// cgi_prefix += "&bc1cfgfile=" + escape(form.bc1cfgfile.value);
687
688// simulate_get_action(cgi_prefix);
689
690 // need to do it this way so POST method is used (as IE can't
691 // handle large config files sent in URL)
692 form.action = "webpage_editcol.pl";
693 form.submit();
694
695 \}
696 \}
697
698 function fullnameindex_changed() \{
699 _dirnamelist_
700 var form = document.form;
701
702 var fn_index = form.bc1fullnamemenu.selectedIndex;
703 form.bc1fullnameindex.value = form.bc1fullnamemenu.selectedIndex;
704 form.bc1dirname.value = dirnamelist[fn_index];
705
706 var cgi_prefix = "_httpbuild_&bca=editcol";
707 simulate_get_action(cgi_prefix);
708 \}
709
710 // end hiding -->
711
712</script>
713
714<form name="form" method="post" action="_gwcgi_" >
715<input type=hidden name="gsdlhome" value="_gsdlhome_">
716<input type=hidden name="a" value="bc">
717<input type=hidden name="bc" value="editcol">
718<input type=hidden name="httpbuild" value="_httpbuild_">
719_hiddenargs_
720
721
722<p> To edit the configuration settings for collection, first choose the
723collection to edit through the pulldown menu, then edit the data that
724appears. To commit your changes to disk, click on &quot;Save configuration
725data&quot;.
726
727<br><p>
728<font color="#909090">
729Use the pull-down menu below to specify the collection to edit.
730</font>
731<br>_fullnamemenu_
732<input type="hidden" name="bc1dirname" value="_bcargdirname_">
733
734<br><p>
735<font color="#909090">
736Alter the data below to change the configuration settings for the selected
737collection. Click on &quot;Save configuration data&quot; to commit your
738changes to disk.
739</font>
740<br><textarea name="bc1cfgfile" cols=70 rows=18 wrap=off>_cfgfile_</textarea>
741
742<br>
743<center>
744<table border=0>
745 <tr>
746 <td>
747 &nbsp;<a href="_httpbuild_&bca=editcol">_iconwizardreset_Reset page</a>
748 </td>
749 <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
750 <td>
751 <a href="javascript:save();">Save configuration data_iconwizardnext_</a>&nbsp;<br>
752 <a href="_httpbuild_&bca=mess&head=_headnosave_&mess=_messnosave_&bc1dirname=_bcargdirname_">Don't
753 Save configuration data_iconwizardnext_</a>&nbsp;
754 </td>
755 </tr>
756</table>
757</form>
758</center>
759}
760
761
762#---------------------------------------------------------------------------#
763# Build a collection
764#---------------------------------------------------------------------------#
765
766_headmessbuildcol_ { Build a collection }
767
768
769_allowcopydatano_ {
770 <td>
771 <input type=radio name="bc1copydataradio" value=false
772 _If_("_bcargcopydata_" eq "false", checked)
773 onClick=document.form.bc1copydata.value=false>No
774 </td>
775}
776
777_copydatatext_ {
778<tr>
779 <td>Copy data:</td>
780 <td>
781 <input type=hidden name="bc1copydata" value="_bcargcopydata_">
782 <input type=radio name="bc1copydataradio" value=true
783 _If_("_bcargcopydata_" eq "true", checked)
784 onClick=document.form.bc1copydata.value=true>Yes
785 </td>
786 _If_("_bcargfirsttime_" eq "false",_allowcopydatano_)
787</tr>
788<tr>
789 <td></td>
790 <td colspan=3>
791 <font color="#909090">
792 <p> Copying the data is necessary the very first time the collection is
793 built. Subsequent builds do not need this option selected, unless new
794 data has been added to the original data, in which case the data should
795 be recopied.
796 </font>
797 </td>
798</tr>
799}
800
801_contentbuildcol_ {
802
803
804<script language="javascript">
805
806 <!-- Hide code from non-js browsers
807 function simulate_get_action(args)
808 \{
809 var form = document.form;
810
811// args += "&bc1fullnameindex=" + escape(form.bc1fullnameindex.value); //****
812 args += "&bc1dirname=" + escape(form.bc1dirname.value);
813 args += "&bc1copydata=" + escape(form.bc1copydata.value);
814 args += "&bc1doimport=" + escape(form.bc1doimport.value);
815 args += "&bc1dobuild=" + escape(form.bc1dobuild.value);
816
817 document.location = args;
818 \}
819
820 function build() \{
821 _dirnamelist_
822 var form = document.form;
823
824 var fn_index = form.bc1fullnameindex.value;
825 var fullname = form.bc1fullnamemenu.options[fn_index].value;
826
827 form.bc1dirname.value = dirnamelist[fn_index];
828
829 var cgi_prefix = "_httpbuild_&bca=buildcol";
830 cgi_prefix += "&httpbuild=" + escape("_httpbuild_");
831 cgi_prefix += "&wizard=buildframe";
832
833 simulate_get_action(cgi_prefix);
834 \}
835
836 function fullnameindex_changed() \{
837 _dirnamelist_
838
839 var form = document.form;
840 var fn_index = form.bc1fullnamemenu.selectedIndex;
841 form.bc1fullnameindex.value = form.bc1fullnamemenu.selectedIndex;
842 form.bc1dirname.value = dirnamelist[fn_index];
843
844 var cgi_prefix = "_httpbuild_&bca=buildcol";
845 cgi_prefix += "&httpbuild=" + escape("_httpbuild_");
846 cgi_prefix += "&wizard=buildcol";
847
848 simulate_get_action(cgi_prefix);
849 \}
850
851 // end hiding -->
852
853</script>
854
855<center><table><tr><td>
856<form name="form" method="post" action="_gwcgi_" >
857<input type=hidden name="gsdlhome" value="_gsdlhome_">
858<input type=hidden name="a" value="bc">
859<input type=hidden name="bc" value="buildcol">
860_hiddenargs_
861
862
863<table border=0>
864<tr>
865 <td colspan=4>
866 Building a collection is a multi-staged process. After selecting the
867 collection you wish to be built, you must specify which stages of
868 the building process you want executed.
869 _If_(_win32_,
870 <p><font color="#B00000">
871 <blockquote>It is recommended that you close all other windows and applications
872 while building a collection as they may interfere with the building
873 process.
874 </blockquote></font>)
875 <br>
876 </td>
877</tr>
878
879
880<tr>
881 <td>Collection to build:</td>
882 <td colspan=3>
883 _fullnamemenu_
884 <input type="hidden" name="bc1dirname" value="_bcargdirname_">
885 </td>
886<tr>
887 <td></td>
888 <td colspan=3>
889 <font color="#909090">
890 Select from the pull-down menu the collection you wish to build.
891 </font>
892 </td>
893</tr>
894
895
896_If_("_bcargcopydir_" eq "yes",
897 _copydatatext_
898 ,
899 <input type=hidden name="bc1copydata" value="false">
900)
901
902
903<tr>
904 <td>Cache intermediate data:</td>
905 <td>
906 <input type=hidden name="bc1doimport" value="_bcargdoimport_">
907 <input type=radio name="bc1doimportradio" value=true
908 _If_("_bcargdoimport_" eq "true", checked)
909 onClick=document.form.bc1doimport.value=true>Yes
910 </td>
911 <td>
912 <input type=radio name="bc1doimportradio" value=false
913 _If_("_bcargdoimport_" eq "false", checked)
914 onClick=document.form.bc1doimport.value=false>No
915 </td>
916</tr>
917<tr>
918 <td></td>
919 <td colspan=3>
920 <font color="#909090">
921 <p> To speed up the collection building process, intermediate data can be
922 cached to file. Set this option to &quot;yes&quot; (the default) unless
923 the collection is prohibitively large or the amount of available disk space
924 is small.
925 </font>
926 </td>
927</tr>
928
929<tr>
930 <td>Create indexes:</td>
931 <td>
932 <input type=hidden name="bc1dobuild" value="_bcargdobuild_">
933 <input type=radio name="bc1dobuildradio" value=true
934 _If_("_bcargdobuild_" eq "true", checked)
935 onClick=document.form.bc1dobuild.value=true>Yes
936 </td>
937 <td>
938 <input type=radio name="bc1dobuildradio" value=false
939 _If_("_bcargdobuild_" eq "false", checked)
940 onClick=document.form.bc1dobuild.value=false>No
941 </td>
942</tr>
943<tr>
944 <td></td>
945 <td colspan=3>
946 <font color="#909090">
947 <p> The final stage of building a collection is the creation of the indexes.
948 Except in very unusual circumstances this option should be
949 set to &quot;yes&quot; (the default).
950 </font>
951 </td>
952</tr>
953
954
955
956<tr><td><p>&nbsp;</td></tr>
957<tr><td colspan=4 align=middle>
958 &nbsp;<a href="_httpbuild_&bca=buildcol">_iconwizardreset_Reset page</a>&nbsp;&nbsp;&nbsp;&nbsp;
959 <a href="javascript:build();">Build collection_iconwizardnext_</a>&nbsp;
960</table>
961</form>
962</td></tr></table></center>
963
964}
965
966
967#---------------------------------------------------------------------------#
968
969_headmessbuildframe_ { Executing build commands }
970
971_contentbuildframe_ {
972
973<frameset rows="200,150,*" border=0>
974 <noframes><body bgcolor="#ffffff">
975 <p>You must have a frame enabled browser to view this.</p>
976 </body>
977 </noframes>
978 <frame src="_httpbuild_&bca=buildcol&wizard=buildexec&bc1dirname=_bcargdirname_&bc1tmpname=_bcargtmpname_" name=infoframe>
979 <frame src="_httpbuild_&bca=buildstatus&bc1tmpname=_bcargtmpname_" name=execframe>
980 <frame src="_httpbuild_&bca=blankpage" name=blankframe>
981</frameset>
982}
983
984#---------------------------------------------------------------------------#
985
986_headmessbuildexec_ { Executing build commands }
987
988
989_contentbuildexec_ {
990
991
992<script language="javascript">
993
994 <!-- Hide code from non-js browsers
995 var timer = 10;
996 function restart_count_down() \{
997 timer=10;
998 setTimeout("count_down()",1000);
999 \}
1000
1001 function count_down() \{
1002 if (timer==0)
1003 \{
1004 update_status_page();
1005 \}
1006 else
1007 \{
1008 window.status = "Building status update in "+timer+" seconds";
1009 timer--;
1010 setTimeout("count_down()",1000);
1011 \}
1012 \}
1013
1014 function update_status_page() \{
1015 var cgi_cmd = "webpage_buildstatus.pl";
1016 cgi_cmd += "?httpbuild=" + escape("_httpbuild_");
1017 cgi_cmd += "&bc1dirname=" + escape("_bcargdirname_");
1018 cgi_cmd += "&bc1tmpname=" + escape("_bcargtmpname_");
1019 parent.execframe.document.location = cgi_cmd;
1020
1021 var finished = document.form.bc1finished.value;
1022 if (finished==0)
1023 \{
1024// setTimeout("update_status_page()",5000); //****
1025// setTimeout("count_down()",1000);
1026 restart_count_down();
1027 \}
1028 else
1029 \{
1030 var cgi_cmd = "_httpbuild_&bca=mess";
1031 if (finished>0)
1032 \{
1033 cgi_cmd += "&head=_headdone_&mess=_messdonebuildcol_";
1034 \}
1035 else
1036 \{
1037 cgi_cmd += "&head=_headerror_&mess=_messerrorbuildcol_";
1038 \}
1039
1040 cgi_cmd += "&httpbuild=" + escape("_httpbuild_");
1041 cgi_cmd += "&bc1dirname=" + escape("_bcargdirname_");
1042 parent.document.location = cgi_cmd;
1043 \}
1044 \}
1045
1046 // end hiding -->
1047
1048</script>
1049
1050<center><table><tr><td>
1051<form name="form" method="post" action="_gwcgi_" >
1052<!-- <input type=hidden name="gsdlhome" value="_gsdlhome_">
1053<input type=hidden name="httpbuild" value="_httpbuild_"> ********* and others !!! -->
1054<input type=hidden name="a" value="bc">
1055<input type=hidden name="bc" value="buildcol">
1056_hiddenargs_
1057
1058<input type=hidden name="bc1finished" value=0>
1059
1060
1061
1062<table border=0>
1063<tr>
1064 <td colspan=4>
1065 The collection is now being built. See the building status line
1066 below for feedback on how the operation is progressing.
1067 </td>
1068</tr>
1069
1070</table>
1071</form>
1072</td></tr></table></center>
1073
1074<script language="javascript">
1075 <!-- Hide code from non-js browsers
1076 update_status_page();
1077 // end hiding -->
1078</script>
1079
1080}
1081
1082package buildstatus
1083
1084_header_ {
1085<html>
1086<head>
1087<title>Building status</title>
1088</head>
1089<body bgcolor="#ffffff" text="#000000" link="#006666"
1090 alink="#cc9900" vlink="#666633">
1091<h3>Building status:</h3>
1092}
1093
1094_footer_ {
1095</body>
1096</html>
1097}
1098
1099_content_ {
1100
1101<script language="javascript">
1102 <!-- Hide code from non-js browsers
1103 if (parent.infoframe.document.form) // form loaded
1104 \{
1105 parent.infoframe.document.form.bc1finished.value = "_build:bcargfinished_";
1106 \}
1107 // end hiding -->
1108</script>
1109
1110 _contentpara_
1111}
1112
1113
1114#---------------------------------------------------------------------------#
1115# Delete a collection
1116#---------------------------------------------------------------------------#
1117
1118package build
1119
1120_headmessdelcol_ { Delete a collection }
1121
1122
1123_contentdelcol_ {
1124
1125
1126<script language="javascript">
1127
1128 <!-- Hide code from non-js browsers
1129 function simulate_get_action(args)
1130 \{
1131 var form = document.form;
1132
1133// args += "&bc1fullnameindex=" + escape(form.bc1fullnameindex.value);
1134 args += "&bc1dirname=" + escape(form.bc1dirname.value);
1135 args += "&bc1deletearea=" + escape(form.bc1deletearea.value);
1136
1137 document.location = args;
1138 \}
1139
1140 function delete_area() \{
1141 _dirnamelist_
1142 var form = document.form;
1143
1144 var fn_index = form.bc1fullnameindex.value;
1145 var fullname = form.bc1fullnamemenu.options[fn_index].value;
1146 var deletearea = form.bc1deletearea.value;
1147
1148 form.bc1dirname.value = dirnamelist[fn_index];
1149
1150 var da_mess = "";
1151 if (deletearea == "archives") \{ da_mess = "cached building data"; \}
1152 else if (deletearea == "import") \{ da_mess = "source data"; \}
1153 else \{ da_mess = "all data"; \}
1154
1155 var confirm_mess = "Confirm deletion of \\"" + da_mess + "\\"";
1156 confirm_mess += " from \\"the " + fullname + " collection\\"";
1157
1158 var do_delete = confirm(confirm_mess);
1159 if (do_delete)
1160 \{
1161 var cgi_prefix = "webpage_delcol.pl";
1162 cgi_prefix += "?httpbuild=" + escape("_httpbuild_");
1163
1164 simulate_get_action(cgi_prefix);
1165 \}
1166 \}
1167
1168 function fullnameindex_changed() \{
1169 var form = document.form;
1170 var fn_index = form.bc1fullnamemenu.selectedIndex;
1171 form.bc1fullnameindex.value = form.bc1fullnamemenu.selectedIndex;
1172 \}
1173
1174 // end hiding -->
1175
1176</script>
1177
1178<center><table><tr><td>
1179<form name="form" method="post" action="_gwcgi_" >
1180<input type=hidden name="gsdlhome" value="_gsdlhome_">
1181<input type=hidden name="a" value="bc">
1182<input type=hidden name="bc" value="delcol">
1183_hiddenargs_
1184
1185
1186<table border=0>
1187<tr>
1188 <td colspan=4>
1189 Deletion of data from a collection can be selective or all
1190 encompassing. Use the options below to specify the required
1191 deletion operation.
1192 </td>
1193</tr>
1194
1195
1196<tr>
1197 <td>Collection to delete:</td>
1198 <td colspan=3>
1199 _fullnamemenu_
1200 <input type="hidden" name="bc1dirname" value="_bcargdirname_">
1201 </td>
1202<tr>
1203 <td></td>
1204 <td colspan=3>
1205 <font color="#909090">
1206 Use this pull-down menu to target the collection that has files deleted.
1207 </font>
1208 </td>
1209</tr>
1210
1211<tr>
1212 <td>Type of data to delete:</td>
1213 <td>
1214 <input type=hidden name="bc1deletearea" value="_bcargdeletearea_">
1215 <input type=radio name="bc1deletearearadio" value="archives"
1216 onClick=document.form.bc1deletearea.value="archives"
1217 _If_("_bcargdeletearea_" eq "archives", checked)
1218 _If_("_bcargdeletearea_" eq "", checked)> cached data
1219 </td>
1220 <td>
1221 <input type=radio name="bc1deletearearadio" value="import"
1222 onClick=document.form.bc1deletearea.value="import"
1223 _If_('"_bcargdeletearea_" eq "import"', checked)> cached and source data
1224 </td>
1225 <td>
1226 <input type=radio name="bc1deletearearadio" value="all"
1227 onClick=document.form.bc1deletearea.value="all"
1228 _If_('"_bcargdeletearea_" eq "all"', checked)> all data
1229 </td>
1230</tr>
1231<tr>
1232 <td></td>
1233 <td colspan=3>
1234 <font color="#909090">
1235 There are three levels to deletion: cached data; cached and
1236 source data; and all data.
1237
1238 <p> Cached data is generated during
1239 a building operation, and is superfluous to a collection that
1240 is &quot;live&quot;. Keeping this data, however, can save
1241 time if the only required step in a rebuild is index creation.
1242
1243 <p> Source data, like cached data, is superflous to a collection
1244 that is &quot;live&quot;. However, you must keep this data if
1245 you intend to rebuild the collection in the future.
1246
1247 <p> The final level to collection deletion is delete &quot;all data&quot;
1248 Selecting this option removes all traces of the collection
1249 from the digital library.
1250
1251 </font>
1252 </td>
1253</tr>
1254
1255
1256<tr><td><p>&nbsp;</td></tr>
1257<tr><td colspan=4 align=middle>
1258 &nbsp;<a href="_httpbuild_&bca=delcol">_iconwizardreset_Reset page</a>&nbsp;&nbsp;&nbsp;&nbsp;
1259 <a href="javascript:delete_area();">Delete specified data_iconwizardnext_</a>&nbsp;
1260</table>
1261</form>
1262</td></tr></table></center>
1263
1264}
1265
1266
1267
1268_headmesscollog_ { Collection Build Log }
1269
1270
1271_contentcollog_ {
1272<pre>
1273_bldfile_
1274</pre>
1275}
1276
1277
1278package buildmess
1279
1280_headmess_ {}
1281_headdone_ {Successful Operation}
1282_headnosave_ {Configuration Unchanged}
1283_headerror_ {Error Encountered}
1284
1285_messdonenewcol_ {
1286 <p> Configuration of the new collection was successfully saved.
1287 Would you like to:
1288 <ul>
1289 <li><a href="_httpbuild_&bca=newcol">Make a new
1290 collection_build:iconwizardnext_</a>
1291 <li><a href="_httpbuild_&bca=editcol&bc1dirname=_build:bcargdirname_">Edit
1292 this collection's configuration file_build:iconwizardnext_</a>
1293 <li><a href="_httpbuild_&bca=buildcol&bc1dirname=_build:bcargdirname_">Build
1294 this collection_build:iconwizardnext_</a>
1295 <li><a href="_httpbuild_&bca=delcol">Delete data from a
1296 collection_build:iconwizardnext_</a>
1297 <li><a href="_httppagehome_" target="_top">Return to the Greenstone home
1298 page_build:iconwizardnext_</a>
1299 </ul>
1300}
1301
1302_messdoneeditcol_ {
1303 <p> Configuration of collection successfully updated.
1304 Would you like to:
1305 <ul>
1306 <li><a href="_httppageabout_&c=_build:bcargdirname_" target="_top">Access
1307 this collection_build:iconwizardnext_</a>
1308 <li><a href="_httpbuild_&bca=newcol">Make a new
1309 collection_build:iconwizardnext_</a>
1310 <li><a href="_httpbuild_&bca=editcol&bc1dirname=_build:bcargdirname_">Edit
1311 this collection's configuration file_build:iconwizardnext_</a>
1312 <li><a href="_httpbuild_&bca=buildcol&bc1dirname=_build:bcargdirname_">Build
1313 this collection_build:iconwizardnext_</a>
1314 <li><a href="_httpbuild_&bca=delcol">Delete data from a
1315 collection_build:iconwizardnext_</a>
1316 <li><a href="_httppagehome_" target="_top">Return to the Greenstone home
1317 page_build:iconwizardnext_</a>
1318 </ul>
1319}
1320
1321_messnosave_ {
1322 <p> Configuration unchanged.
1323 Would you like to:
1324 <ul>
1325 <li><a href="_httppageabout_&c=_build:bcargdirname_" target="_top">Access
1326 this collection_build:iconwizardnext_</a>
1327 <li><a href="_httpbuild_&bca=newcol">Make a new
1328 collection_build:iconwizardnext_</a>
1329 <li><a href="_httpbuild_&bca=editcol&bc1dirname=_build:bcargdirname_">Edit
1330 this collection's configuration file_build:iconwizardnext_</a>
1331 <li><a href="_httpbuild_&bca=buildcol&bc1dirname=_build:bcargdirname_">Build
1332 this collection_build:iconwizardnext_</a>
1333 <li><a href="_httpbuild_&bca=delcol">Delete data from a
1334 collection_build:iconwizardnext_</a>
1335 <li><a href="_httppagehome_" target="_top">Return to the Greenstone home
1336 page_build:iconwizardnext_</a>
1337 </ul>
1338}
1339
1340_messdonebuildcol_ {
1341 <p> The collection has been successfully built.
1342 Would you like to:
1343 <ul>
1344 <li><a href="_httppageabout_&c=_build:bcargdirname_" target="_top">Access
1345 the newly built collection_build:iconwizardnext_</a>
1346 <li><a href="_httpbuild_&bca=collog&bc1dirname=_build:bcargdirname_">View
1347 the build log for this collection_build:iconwizardnext_</a>
1348 <li><a href="_httpbuild_&bca=newcol">Make a new
1349 collection_build:iconwizardnext_</a>
1350 <li><a href="_httpbuild_&bca=editcol&bc1dirname=_build:bcargdirname_">Edit
1351 this collection's configuration file_build:iconwizardnext_</a>
1352 <li><a href="_httpbuild_&bca=buildcol&bc1dirname=_build:bcargdirname_">Rebuild
1353 this collection_build:iconwizardnext_</a>
1354 <li><a href="_httpbuild_&bca=delcol">Delete data from a
1355 collection_build:iconwizardnext_</a>
1356 <li><a href="_httppagehome_" target="_top">Return to the Greenstone home
1357 page_build:iconwizardnext_</a>
1358 </ul>
1359}
1360
1361_messdonedelcol_ {
1362 <p> Files successfully deleted. Would you like to:
1363 <ul>
1364 <li><a href="_httpbuild_&bca=newcol">Make a new
1365 collection_build:iconwizardnext_</a>
1366 <li><a href="_httpbuild_&bca=editcol">Edit
1367 a collection's configuration file_build:iconwizardnext_</a>
1368 <li><a href="_httpbuild_&bca=buildcol">Build
1369 a collection_build:iconwizardnext_</a>
1370 <li><a href="_httpbuild_&bca=delcol">Delete data from another
1371 collection_build:iconwizardnext_</a>
1372 <li><a href="_httppagehome_" target="_top">Return to the Greenstone home
1373 page_build:iconwizardnext_</a>
1374 </ul>
1375}
1376
1377_messnofn_ {
1378 <p> <center>Empty collection title</center> }
1379
1380_messconfigexists_ {
1381 <p> <center>A configuration file already exists for this collection.</center> }
1382
1383_messerrorbuildcol_ {
1384 <p> An error was encountered during the building operation, and
1385 consequently the generated files have not been
1386 transfered to the &quot;live&quot; collection. Would you like to:
1387
1388 <ul>
1389 <li><a href="_httppageabout_&c=_build:bcargdirname_" target="_top">Access
1390 the existing collection_build:iconwizardnext_</a>
1391 <li><a href="_httpbuild_&bca=newcol">Make a new
1392 collection_build:iconwizardnext_</a>
1393 <li><a href="_httpbuild_&bca=editcol&bc1dirname=_build:bcargdirname_">Edit
1394 this collection's configuration file_build:iconwizardnext_</a>
1395 <li><a href="_httpbuild_&bca=buildcol&bc1dirname=_build:bcargdirname_">Rebuild
1396 this collection_build:iconwizardnext_</a>
1397 <li><a href="_httpbuild_&bca=delcol">Delete data from a
1398 collection_build:iconwizardnext_</a>
1399 <li><a href="_httppagehome_" target="_top">Return to the Greenstone home
1400 page_build:iconwizardnext_</a>
1401 </ul>
1402
1403}
1404
1405_messerror_ {<center>An error was encountered.</center> }
1406
1407
1408_content_ {
1409 _contentpara_
1410}
1411
1412_colexists_ {
1413 <p> The collection title you have specified already exists. Please choose another.
1414
1415}
Note: See TracBrowser for help on using the repository browser.