Changeset 1433
- Timestamp:
- 2000-08-20T22:50:36+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/macros/collect.dm
r1425 r1433 12 12 name="_4_" src="_2_" onLoad="gbutton(this,'_3_');" border=0 alt="_5_"></a>} 13 13 14 _gs image_ [v=1] {<a href="#" onClick="check\_submit(_4_);">_5_</a><br>}14 _gsjimage_ [v=1] {<a href="#" onClick="check\_submit(_4_);">_5_</a><br>} 15 15 16 16 … … 58 58 _textview_ {view} 59 59 60 _icongcdelof_ {<img src="_httpicongcdelof_" alt="_textdel_">} 61 _icongcdelon_ {<img src="_httpicongcdelon_" alt="_textdel_">} 62 _textdel_ {delete collection} 63 60 64 ####################################################################### 61 65 # http macros … … 66 70 _httpbild_ {_gwcgi_?e=_compressedoptions_&cp=bild} 67 71 _httpview_ {_gwcgi_?e=_compressedoptions_&cp=view} 72 _httpdel_ {javascript:do_delete();} 68 73 69 74 _httpicongcinfoof_ {_httpimg_/gcinfoof.gif} … … 97 102 _httpiconncviewof_ {_httpimg_/ncviewof.gif} 98 103 104 _httpicongcdelof_ {_httpimg_/gcdelof.gif} 105 _httpicongcdelon_ {_httpimg_/gcdelon.gif} 99 106 100 107 ####################################################################### … … 164 171 } 165 172 173 174 ####################################################################### 175 # Changing an existing collection page 176 177 _existingscriptextra_ { 178 function 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 190 function 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 203 collections 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 } 166 239 167 240 ####################################################################### … … 334 407 335 408 _srcescriptextra_ { 409 var cloneval = _cgiargbc1clone_; 410 336 411 function check\_submit (gotopage) \{ 337 412 var form = document.collectorform; 338 339 413 if (form.bc1inputdir1.value.match(/^\\s*$/) && 340 414 form.bc1inputdir2.value.match(/^\\s*$/) && … … 350 424 form.submit(); 351 425 \} 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 427 function 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_ { 363 438 <center> 364 439 <h2>Source data</h2> … … 369 444 -- that is, base the structure of your new collection on one that exists already. 370 445 <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> 372 448 <br><font color="#909090"> 373 449 Create a completely new collection. The collection may contain html documents (.htm, .html), plain text … … 378 454 No collections available for cloning.,_srcemenu_) 379 455 </ul> 456 } 457 458 _srceappend_ { 459 <center> 460 <h2>Add new data</h2> 461 </center> 462 <p>_iconblankbar_ 463 <h4>Adding data:</h4> 464 The files that you specify below will be added to the collection. Make sure 465 that you do not re-specify files that are already in the collection: 466 otherwise two copies will be included. Files are identified by their full 467 pathname, 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_) 380 481 381 482 <h4>Input source:</h4> … … 419 520 } 420 521 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> 422 524 <br>_fullnamemenu_<br> 423 525 <font color=#909090> … … 535 637 536 638 ####################################################################### 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 } 539 654 540 655 _mkcolfailcontent_ { 656 _messagehead_ 541 657 <p> 542 543 658 Greenstone failed to create the directory structure required to create your 544 659 new collection. Possible causes are: … … 546 661 <li> Greenstone does not have permission to write to the gsdl/collect 547 662 directory. 548 } 663 </ul> 664 _messagefoot_ 665 } 666 667 _delpermissioncontent_ { 668 _messagehead_ 669 <p> 670 Some or all of the _cgiargbc1dirname_ collection could not be 671 deleted. Possible causes are: 672 <ul> 673 <li> Greenstone does not have permission to delete the gsdl/collect/_cgibc1dirname_ 674 directory. 675 </ul> 676 _messagefoot_ 677 } 678 679 _delinvalidcontent_ { 680 _messagehead_ 681 <p> 682 The _cgiargbc1dirname_ collection is protected or invalid. Deletion was cancelled. 683 _messagefoot_ 684 } 685 686 _delsuccesscontent_ { 687 _messagehead_ 688 <p> 689 The _cgiargbc1dirname_ collection was successfully deleted. 690 _messagefoot_ 691 } 692 693 _clonefailcontent_ { 694 _messagehead_ 695 <input type=hidden name="bc1clone" value="0"> 696 <p> 697 The _cgiargclonecol_ collection cound not be cloned. 698 _messagefoot_ 699 }
Note:
See TracChangeset
for help on using the changeset viewer.