Changeset 1485 for trunk/gsdl/macros


Ignore:
Timestamp:
2000-08-31T20:07:53+12:00 (24 years ago)
Author:
sjboddie
Message:

More improvements to collector

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/macros/collect.dm

    r1476 r1485  
    1919_gstimage_ [v=1] {<a href="_1_" target="\_top">_5_</a><br>}
    2020
    21 
    22 
    2321# a plain header for those pages that need it (the _pagebanner_ macro
    2422# will be set to this by the server for those pages.
    2523_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
    2632
    2733#######################################################################
     
    7985_httpconf_ {_gwcgi_?e=_compressedoptions_&cp=conf}
    8086_httpbild_ {_gwcgi_?e=_compressedoptions_&cp=bild}
    81 _httpview_ {_gwcgi_?e=_compressedoptions_&a=p&p=about&c=_cgiargbc1dirname_}
     87_httpview_ {_gwcgi_?a=p&p=about&c=_cgiargbc1dirname_}
    8288_httpdel_  {javascript:do_delete();}
    8389
     
    429435function check\_submit (gotopage) \{
    430436  var form = document.collectorform;
    431   if (form.bc1inputdir1.value.match(/^\\s*$/) &&
    432       form.bc1inputdir2.value.match(/^\\s*$/) &&
    433       form.bc1inputdir3.value.match(/^\\s*$/) &&
    434       form.bc1inputdir4.value.match(/^\\s*$/))
     437  var found = 0;
     438  var i = 0;
     439  if (!form.bc1inputdir1.value.match(/^\\s*$/)) \{
     440    if (!form.bc1inputdir1.value.match(/^\(http|ftp|file\):/)) \{
     441      i = form.sel1.selectedIndex;
     442      form.bc1inputdir1.value = form.sel1.options[i].value + form.bc1inputdir1.value;
     443    \}
     444    found = 1;
     445  \}
     446  if (!form.bc1inputdir2.value.match(/^\\s*$/)) \{
     447    if (!form.bc1inputdir2.value.match(/^\(http|ftp|file\):/)) \{
     448      i = form.sel2.selectedIndex;
     449      form.bc1inputdir2.value = form.sel2.options[i].value + form.bc1inputdir2.value;
     450    \}
     451    found = 1;
     452  \}
     453  if (!form.bc1inputdir3.value.match(/^\\s*$/)) \{
     454    if (!form.bc1inputdir3.value.match(/^\(http|ftp|file\):/)) \{
     455      i = form.sel3.selectedIndex;
     456      form.bc1inputdir3.value = form.sel3.options[i].value + form.bc1inputdir3.value;
     457    \}
     458    found = 1;
     459  \}
     460  if (!form.bc1inputdir4.value.match(/^\\s*$/)) \{
     461    if (!form.bc1inputdir4.value.match(/^\(http|ftp|file\):/)) \{
     462      i = form.sel4.selectedIndex;
     463      form.bc1inputdir4.value = form.sel4.options[i].value + form.bc1inputdir4.value;
     464    \}
     465    found = 1;
     466  \}
     467
     468  if (!found)
    435469  \{
    436470    alert("At least one input source must be specified");
     
    449483  \} else \{
    450484    form.bc1clonechanged.value = 0;
     485  \}
     486  menuchange();
     487\}
     488
     489function menuchange () \{
     490  var form = document.collectorform;
     491  var warnlist = new Array (_warnindex_);
     492
     493  if (warnlist[form.bc1clonecol.selectedIndex] == 1) \{
     494    alert ("The collection you are cloning has a non-standard input file\\n" +
     495           "format, and/or uses metadata specified in auxiliary files.  If your\\n" +
     496       "new input lacks this information, some browsing facilities may not\\n" +
     497           "work properly.");
    451498  \}
    452499\}
     
    499546
    500547<h4>Input source:</h4>
    501 <input type=text name="bc1inputdir1" value="_cgiargbc1inputdir1_" size=72>
     548_typeselect_(1,file)<input type=text name="bc1inputdir1" value="_cgiargbc1inputdir1_" size=60>
    502549<br>
    503 <input type=text name="bc1inputdir2" value="_cgiargbc1inputdir2_" size=72>
     550_typeselect_(2,http)<input type=text name="bc1inputdir2" value="_cgiargbc1inputdir2_" size=60>
    504551<br>
    505 <input type=text name="bc1inputdir3" value="_cgiargbc1inputdir3_" size=72>
     552_typeselect_(3,ftp)<input type=text name="bc1inputdir3" value="_cgiargbc1inputdir3_" size=60>
    506553<br>
    507 <input type=text name="bc1inputdir4" value="_cgiargbc1inputdir4_" size=72>
     554_typeselect_(4,file)<input type=text name="bc1inputdir4" value="_cgiargbc1inputdir4_" size=60>
    508555<br>
    509556<font color="#909090">
     
    525572
    526573<p>_iconblankbar_
    527 <p>Remember, you can always revisit a previous stage by clicking its yellow
    528 button.
     574<p>Click one of the green buttons. If you are an advanced user you may want
     575to adjust the collection configuration. Alternatively, go straight to the
     576building stage. Remember, you can always revisit an earlier stage by
     577clicking its yellow button.
    529578
    530579<p><center>
     
    537586</form>
    538587}
     588
     589_typeselect_ {<select name="sel_1_">
     590<option value="file://" _If_("_2_" eq "file",selected)>file://
     591<option value="http://" _If_("_2_" eq "http",selected)>http://
     592<option value="ftp://" _If_("_2_" eq "ftp",selected)>ftp://
     593</select>}
    539594
    540595_srcemenu_ {<input type=radio name=bc1clone onClick="clone_changed(1);" value=1
     
    622677<frameset rows="*,150" border=0>
    623678  <noframes><body bgcolor="#ffffff">
    624   <p>You must have a frame enabled browser to view this.</p>
     679  <p>You must have a frame enabled browser to obtain feedback
     680  on how the building process is progressing. The collection <i>will</i>
     681  continue to build as normal however.
     682
     683  <table>
     684  <tr valign=center><td>
     685  To stop the building process at any time, click here.
     686  <br>The collection you are working on will remain intact.
     687  </td>
     688  <td><input type="submit" value="stop building"></td>
     689  </table>
     690
    625691  </body>
    626692  </noframes>
     
    681747status line below gives feedback on how the operation is progressing.
    682748<p>
    683 To stop the building process at any time, click here:
    684 <input type="submit" value="stop building">
     749
     750<table>
     751<tr valign=center><td>
     752To stop the building process at any time, click here.
    685753<br>The collection you are working on will remain intact.
     754</td>
     755<td><input type="submit" value="stop building"></td>
     756</table>
     757
    686758<p>
    687759If you leave this page (and have not cancelled the building process with
     
    814886<tr><td>
    815887<p>An error has occurred while attempting to build your collection.
     888<br> The build log contains the following:
     889<p>_faillog_
    816890</td></tr>
    817891</table></center>
Note: See TracChangeset for help on using the changeset viewer.