Changeset 1433

Show
Ignore:
Timestamp:
20.08.2000 22:50:36 (19 years ago)
Author:
sjboddie
Message:

*** empty log message ***

Files:
1 modified

Legend:

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

    r1425 r1433  
    1212name="_4_" src="_2_" onLoad="gbutton(this,'_3_');" border=0 alt="_5_"></a>} 
    1313 
    14 _gsimage_ [v=1] {<a href="#" onClick="check\_submit(_4_);">_5_</a><br>} 
     14_gsjimage_ [v=1] {<a href="#" onClick="check\_submit(_4_);">_5_</a><br>} 
    1515 
    1616 
     
    5858_textview_ {view} 
    5959 
     60_icongcdelof_ {<img src="_httpicongcdelof_" alt="_textdel_">} 
     61_icongcdelon_ {<img src="_httpicongcdelon_" alt="_textdel_">} 
     62_textdel_ {delete collection} 
     63 
    6064####################################################################### 
    6165# http macros  
     
    6670_httpbild_ {_gwcgi_?e=_compressedoptions_&cp=bild} 
    6771_httpview_ {_gwcgi_?e=_compressedoptions_&cp=view} 
     72_httpdel_  {javascript:do_delete();} 
    6873 
    6974_httpicongcinfoof_ {_httpimg_/gcinfoof.gif} 
     
    97102_httpiconncviewof_ {_httpimg_/ncviewof.gif} 
    98103 
     104_httpicongcdelof_ {_httpimg_/gcdelof.gif} 
     105_httpicongcdelon_ {_httpimg_/gcdelon.gif} 
    99106 
    100107####################################################################### 
     
    164171} 
    165172 
     173 
     174####################################################################### 
     175# Changing an existing collection page 
     176 
     177_existingscriptextra_ { 
     178function check\_submit (gotopage) \{ 
     179  var form = document.collectorform; 
     180  if (gotopage == "srce") \{ 
     181    form.bc1esrce.value = "1"; 
     182  \} 
     183  if (gotopage == "conf") \{ 
     184    form.bc1econf.value = "1"; 
     185  \} 
     186  form.cp.value = gotopage; 
     187  form.submit(); 
     188\} 
     189 
     190function do_delete () \{ 
     191  var form = document.collectorform;   
     192  var i = form.bc1dirname.selectedIndex; 
     193  var del = confirm ("Confirm deletion of " + form.bc1dirname.options[i].value + " collection?"); 
     194  if (del) \{ 
     195    form.bc1dodelete.value = "1"; 
     196    form.submit(); 
     197  \} 
     198\} 
     199} 
     200 
     201_changeexisting_ { 
     202<p>First select the collection that you want to work with (write protected 
     203collections won't appear in this list). 
     204<br>_fullnamemenu_<br> 
     205<p>With the collection you have selected, you can 
     206 
     207<table cellspacing=6> 
     208<tr><td width=20 align=right valign=bottom>1.</td> 
     209<td valign=bottom>_gsjimage_( ,_collector:httpicongcsrceof_,_collector:httpicongcsrceon_,srce,_collector:textsrce_)</td> 
     210<td valign=bottom>Add more data and rebuild the collection</td></tr> 
     211<tr><td align=right valign=bottom>2.</td> 
     212<td valign=bottom>_gsjimage_(_,_collector:httpicongcconfof_,_collector:httpicongcconfon_,conf,_collector:textconf_)</td> 
     213<td valign=bottom>Edit the collection configuration file</td></tr> 
     214<tr><td align=right valign=bottom>3.</td> 
     215<td valign=bottom>_gsimage_(_collector:httpdel_,_collector:httpicongcdelof_,_collector:httpicongcdelon_,del,_collector:textdel_)</td> 
     216<td valign=bottom>Delete the collection entirely</td></tr> 
     217</table> 
     218} 
     219 
     220_existingcontent_ { 
     221<form name="collectorform" method=post action="_gwcgi_"> 
     222<input type=hidden name="e" value="_decodedcompressedoptions_"> 
     223<input type=hidden name="cp" value="_cgiargcp_"> 
     224<input type=hidden name="bc1dodelete" value="0"> 
     225<input type=hidden name="bc1esrce" value="0"> 
     226<input type=hidden name="bc1econf" value="0"> 
     227<center> 
     228<table width=_pagewidth_> 
     229<tr><td> 
     230_iconblankbar_ 
     231<center><h2>Changing an existing collection</h2></center> 
     232_iconblankbar_ 
     233_If_("_fullnamemenu_" eq "",<p>No write-enabled collections are available for modifying,_changeexisting_) 
     234<p>_iconblankbar_ 
     235</td></tr> 
     236</table></center> 
     237</form> 
     238} 
    166239 
    167240####################################################################### 
     
    334407 
    335408_srcescriptextra_ { 
     409var cloneval = _cgiargbc1clone_; 
     410 
    336411function check\_submit (gotopage) \{ 
    337412  var form = document.collectorform; 
    338  
    339413  if (form.bc1inputdir1.value.match(/^\\s*$/) && 
    340414      form.bc1inputdir2.value.match(/^\\s*$/) && 
     
    350424  form.submit(); 
    351425\} 
    352 } 
    353  
    354 _srcecontent_ { 
    355 <form name="collectorform" method=post action="_gwcgi_"> 
    356 <input type=hidden name="e" value="_decodedcompressedoptions_"> 
    357 <input type=hidden name="cp" value="_cgiargcp_"> 
    358  
    359 <center> 
    360 <table width=_pagewidth_> 
    361 <tr><td> 
    362 _iconblankbar_ 
     426 
     427function clone\_changed (changedto) \{ 
     428  var form = document.collectorform; 
     429  if (changedto != cloneval) \{ 
     430    form.bc1clonechanged.value = 1; 
     431  \} else \{ 
     432    form.bc1clonechanged.value = 0; 
     433  \} 
     434\} 
     435} 
     436 
     437_srcenew_ { 
    363438<center> 
    364439<h2>Source data</h2> 
     
    369444-- that is, base the structure of your new collection on one that exists already. 
    370445<ul> 
    371 <input type=radio name=bc1clone value=0 _If_("_cgiargbc1clone_" eq "0",checked)><b>Create new collection</b> 
     446<input type=radio onClick="clone_changed(0);" name=bc1clone value=0 
     447_If_("_cgiargbc1clone_" eq "0",checked)><b>Create new collection</b> 
    372448<br><font color="#909090"> 
    373449Create a completely new collection. The collection may contain html documents (.htm, .html), plain text 
     
    378454No collections available for cloning.,_srcemenu_) 
    379455</ul> 
     456} 
     457 
     458_srceappend_ { 
     459<center> 
     460<h2>Add new data</h2> 
     461</center> 
     462<p>_iconblankbar_ 
     463<h4>Adding data:</h4> 
     464The files that you specify below will be added to the collection. Make sure 
     465that you do not re-specify files that are already in the collection: 
     466otherwise two copies will be included. Files are identified by their full 
     467pathname, Web pages by their absolute Web address. 
     468} 
     469 
     470_srcecontent_ { 
     471<form name="collectorform" method=post action="_gwcgi_"> 
     472<input type=hidden name="e" value="_decodedcompressedoptions_"> 
     473<input type=hidden name="cp" value="_cgiargcp_"> 
     474<input type=hidden name="bc1clonechanged" value="0"> 
     475 
     476<center> 
     477<table width=_pagewidth_> 
     478<tr><td> 
     479_iconblankbar_ 
     480_If_("_cgiargbc1esrce_" eq "1",_srceappend_,_srcenew_) 
    380481 
    381482<h4>Input source:</h4> 
     
    419520} 
    420521 
    421 _srcemenu_ {<input type=radio name=bc1clone value=1 _If_("_cgiargbc1clone_" eq "1",checked)><b>Clone existing collection</b> 
     522_srcemenu_ {<input type=radio name=bc1clone onClick="clone_changed(1);" value=1  
     523_If_("_cgiargbc1clone_" eq "1",checked)><b>Clone existing collection</b> 
    422524<br>_fullnamemenu_<br> 
    423525<font color=#909090> 
     
    535637 
    536638####################################################################### 
    537 # Error pages 
    538 ####################################################################### 
     639# Error and message pages 
     640####################################################################### 
     641 
     642_messagehead_ { 
     643<form name="collectorform" method=post action="_gwcgi_"> 
     644<input type=hidden name="e" value="_decodedcompressedoptions_"> 
     645_iconblankbar_ 
     646} 
     647 
     648_messagefoot_ { 
     649<p> 
     650<a href="javascript:document.collectorform.submit();">Return to the collector</a> 
     651</form> 
     652_iconblankbar_ 
     653} 
    539654 
    540655_mkcolfailcontent_ { 
     656_messagehead_ 
    541657<p> 
    542  
    543658Greenstone failed to create the directory structure required to create your 
    544659new collection. Possible causes are: 
     
    546661<li> Greenstone does not have permission to write to the gsdl/collect  
    547662     directory. 
    548 } 
     663</ul> 
     664_messagefoot_ 
     665} 
     666 
     667_delpermissioncontent_ { 
     668_messagehead_ 
     669<p> 
     670Some or all of the _cgiargbc1dirname_ collection could not be 
     671deleted. Possible causes are: 
     672<ul> 
     673<li> Greenstone does not have permission to delete the gsdl/collect/_cgibc1dirname_ 
     674directory. 
     675</ul> 
     676_messagefoot_ 
     677} 
     678 
     679_delinvalidcontent_ { 
     680_messagehead_ 
     681<p> 
     682The _cgiargbc1dirname_ collection is protected or invalid. Deletion was cancelled. 
     683_messagefoot_ 
     684} 
     685 
     686_delsuccesscontent_ { 
     687_messagehead_ 
     688<p> 
     689The _cgiargbc1dirname_ collection was successfully deleted. 
     690_messagefoot_ 
     691} 
     692 
     693_clonefailcontent_ { 
     694_messagehead_ 
     695<input type=hidden name="bc1clone" value="0"> 
     696<p> 
     697The _cgiargclonecol_ collection cound not be cloned. 
     698_messagefoot_ 
     699}