Changeset 2767 for trunk/gsdl
- Timestamp:
- 2001-10-02T12:05:43+12:00 (23 years ago)
- Location:
- trunk/gsdl
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/macros/docs.dm
r2625 r2767 1 1 package docs 2 2 3 # set from within server 4 _documentation_ {} 3 5 4 6 ####################################################################### … … 18 20 ####################################################################### 19 21 20 _icongsdocsgr_ {<img src="_httpi mg_/gsdocsgr.gif">}22 _icongsdocsgr_ {<img src="_httpicongsdocsgr_">} 21 23 _httpiconpdf_ {_httpimg_/pdf.gif} 22 24 _iconpdf_ {<img src="_httpiconpdf_" border=0>} … … 24 26 _httpdocs_ {_httpprefix_/docs} 25 27 26 _pagetitle_ { Greenstone Digital Library Software}28 _pagetitle_ {_textimagegreenstone_} 27 29 28 30 _content_ { 29 31 _icongsdocsgr_ 30 31 <p> 32 <table border=0> 33 <tr valign=middle><td><a href="_httpdocs_/User.pdf">_iconpdf_</a></td><td>User's Guide</td></tr> 34 <tr valign=middle><td><a href="_httpdocs_/Install.pdf">_iconpdf_</a></td><td>Installer's Guide</td></tr> 35 <tr valign=middle><td><a href="_httpdocs_/Developer.pdf">_iconpdf_</a></td><td>Developer's Guide</td></tr> 36 <tr valign=middle><td><a href="_httpdocs_/From_paper_to_collection.pdf">_iconpdf_</a></td><td>From Paper to Collection Guide</td></tr> 37 </table> 32 _If_(_documentation_,_documentation_,_textnodocumentation_) 38 33 39 34 _nzdlpagefooter_ -
trunk/gsdl/macros/english2.dm
r2361 r2767 140 140 _textmessagestalekey_ {The link you have followed is now stale. 141 141 Please enter your password to access this page.} 142 143 144 ###################################################################### 145 # 'docs' page 146 package docs 147 ###################################################################### 148 149 150 #------------------------------------------------------------ 151 # text macros 152 #------------------------------------------------------------ 153 154 _textnodocumentation_ { 155 <p>This Greenstone installation does not include any documentation. This 156 may be because: 157 <ol> 158 <li>Greenstone was installed from CD-ROM using a compact installation. 159 <li>Greenstone was installed from a distribution downloaded from the 160 internet. 161 </ol> 162 In either case you may obtain the documentation either from the <i>docs</i> 163 directory of a Greenstone CD-ROM or by visiting <a 164 href="http://www.greenstone.org">http://www.greenstone.org</a>. 165 } 166 167 _textuserguide_ {User's Guide} 168 _textinstallerguide_ {Installer's Guide} 169 _textdeveloperguide_ {Developer's Guide} 170 _textpaperguide_ {From Paper to Collection Guide} 171 172 #------------------------------------------------------------ 173 # icons 174 #------------------------------------------------------------ 175 176 ## "greenstone documentation" ## green_bar_left_aligned ## gsdocsgr ## 177 _httpicongsdocsgr_ {_httpimg_/gsdocsgr.gif} 178 _widthgsdocsgr_ {_pagewidth_} 179 _heightgsdocsgr_ {17} 180 -
trunk/gsdl/src/recpt/pageaction.cpp
r2664 r2767 27 27 #include "pageaction.h" 28 28 #include "receptionist.h" 29 #include "fileutil.h" 29 30 #include <time.h> 30 31 … … 296 297 } 297 298 299 void pageaction::set_documentation_macro (displayclass &disp) { 300 301 text_t documentation; 302 text_t docsdir = filename_cat(gsdlhome, "docs"); 303 304 if (file_exists(filename_cat(docsdir, "User.pdf"))) { 305 documentation += "<tr valign=middle><td><a href=\"_httpdocs_/User.pdf\">_iconpdf_" 306 "</a></td><td>_textuserguide_</td></tr>"; 307 } 308 309 if (file_exists(filename_cat(docsdir, "Install.pdf"))) { 310 documentation += "<tr valign=middle><td><a href=\"_httpdocs_/Install.pdf\">_iconpdf_" 311 "</a></td><td>_textinstallerguide_</td></tr>"; 312 } 313 314 if (file_exists(filename_cat(docsdir, "Develop.pdf"))) { 315 documentation += "<tr valign=middle><td><a href=\"_httpdocs_/Develop.pdf\">_iconpdf_" 316 "</a></td><td>_textdeveloperguide_</td></tr>"; 317 } 318 319 if (file_exists(filename_cat(docsdir, "Paper.pdf"))) { 320 documentation += "<tr valign=middle><td><a href=\"_httpdocs_/Paper.pdf\">_iconpdf_" 321 "</a></td><td>_textpaperguide_</td></tr>"; 322 } 323 324 if (!documentation.empty()) { 325 disp.setmacro("documentation", "docs", "<p>\n<table border=0>\n" + documentation + "\n</table>\n"); 326 } 327 } 328 298 329 void pageaction::define_internal_macros (displayclass &disp, cgiargsclass &args, 299 330 recptprotolistclass *protos, ostream &logout) { … … 348 379 // if page is "homehelp" 349 380 // _collectionlist_ list of available collections to be displayed on the homehelp page 381 382 383 // if page is "docs" 384 // _documentation_ links to PDF documents if they're available 385 350 386 351 387 if (recpt == NULL) { … … 599 635 set_collectionlist_macro (disp, protos, logout); 600 636 637 } else if (arg_p == "docs") { 638 639 set_documentation_macro (disp); 640 601 641 } 602 642 } -
trunk/gsdl/src/recpt/pageaction.h
r2329 r2767 73 73 ostream &logout); 74 74 75 void set_documentation_macro (displayclass &disp); 75 76 76 77 bool status_disabled;
Note:
See TracChangeset
for help on using the changeset viewer.