Changeset 725


Ignore:
Timestamp:
1999-10-19T16:27:42+13:00 (25 years ago)
Author:
davidb
Message:

Macros to support webpage based collection building
and internal and external links in collection documents

Location:
trunk/gsdl/macros
Files:
2 added
7 edited

Legend:

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

    r644 r725  
    88
    99# don't want link to 'about' page
    10 _imagecollection_ {<img src="_iconcollection_" border=0>}
     10_imagecollection_ {_If_("_iconcollection_" ne "",
     11    <img src="_iconcollection_" border=0>,
     12    <br><br><h2>_collectionname_</h2>}
    1113
    1214#######################################################################
  • trunk/gsdl/macros/authen.dm

    r599 r725  
    1010
    1111_content_ {
     12<br><br><br><br>
    1213_messagestatus_
    1314
    14 <form name="login" method="post" action="_gwcgi_">
     15<form name="login" method="get" action="_gwcgi_">
    1516<input type=hidden name="e" value="_If_(_cgiarger_,_cgiarger_,_compressedoptions_)">
    1617_hiddenargs_
  • trunk/gsdl/macros/base.dm

    r666 r725  
    3434_iconcollection_ {}
    3535_imagecollection_ {_If_("_iconcollection_" ne "",<a href="_httppagex_(about)"><img src="_iconcollection_" border=0></a>)}
    36 
    3736
    3837#######################################################################
     
    365364_httpquery_ {_gwcgi_?e=_compressedoptions_&a=q}
    366365_httpdocument_ {_gwcgi_?e=_compressedoptions_&a=d}
     366_httpextlink_ {_gwcgi_?e=_compressedoptions_&a=extlink}
     367_httpbuild_ {_gwcgi_?e=_compressedoptions_&a=bc}
    367368
    368369_httpiconchalk_ {_httpimg_/chalk.gif}
     
    426427_widthmore_ {30}
    427428_heightmore_ {16}
     429
     430_httpiconstop_ {_httpimg_/stop.gif}
     431_widthstop_ {30}
     432_heightstop_ {16}
    428433
    429434_httpiconqryresb_ {_httpimg_/qryresb.gif}
  • trunk/gsdl/macros/home.dm

    r666 r725  
    112112_lastupdate_ {Last updated}
    113113_ago_ {days ago.}
     114_colnotbuilt_ {Collection not built.}
    114115
    115116_textpeople_ {People}
  • trunk/gsdl/macros/pref.dm

    r666 r725  
    3434    argo = "";
    3535    argb = "";
     36        argel = "";
     37        argil = "";
    3638
    3739    function initialize () \{
     
    4244    function updatehrefs () \{
    4345        for (i = 0; i < document.links.length; i++)
    44             document.links[i].href = savedhrefs[i] + argk + args + argm + argo + argb;
     46            document.links[i].href = savedhrefs[i] + argk + args + argm + argo + argb + argel + argil;
    4547    \}
    4648
     
    7779    \}
    7880
     81    function updateel () \{
     82        value = document.PrefForm.el.options[document.PrefForm.el.selectedIndex].value;
     83        if (value != "_cgiargel_") argel = "&el=" + value;
     84        else argel = "";
     85        updatehrefs();
     86    \}
     87
     88    function updateil () \{
     89        value = document.PrefForm.il.options[document.PrefForm.il.selectedIndex].value;
     90        if (value != "_cgiargil_") argil = "&il=" + value;
     91        else argil = "";
     92        updatehrefs();
     93    \}
     94
    7995    function updatel () \{
    8096        value = document.PrefForm.l.options[document.PrefForm.l.selectedIndex].value;
    81         location.href = location.href + argk + args + argm + argo + argb + "&l=" + value;
     97        location.href = location.href + argk + args + argm + argo + argb + argel + argil + "&l=" + value;
    8298    \}
    8399
    84100    function updatev () \{
    85101        value = document.PrefForm.v.options[document.PrefForm.v.selectedIndex].value;
    86         location.href = location.href + argk + args + argm + argo + argb + "&v=" + value;
     102        location.href = location.href + argk + args + argm + argo + argb + argel + argil + "&v=" + value;
    87103    \}
    88104
    89105    function updatew () \{
    90106        value = document.PrefForm.w.options[document.PrefForm.w.selectedIndex].value;
    91         location.href = location.href + argk + args + argm + argo + argb + "&nw=" + value;
     107        location.href = location.href + argk + args + argm + argo + argb + argel + argil + "&nw=" + value;
    92108    \}
    93109
     
    160176}
    161177
     178_extlinkoption_ {
     179_textextlink_
     180<select name="el" onChange="updateel();">
     181  <option value="prompt"_If_("_cgiargel_" eq "prompt", selected)>
     182     through intermediate page
     183  <option value="direct"_If_("_cgiargel_" eq "direct", selected)>
     184     go directly there
     185</select>
     186}
     187
     188_intlinkoption_ {
     189_textintlink_
     190<select name="il" onChange="updateil();">
     191  <option value="l"_If_("_cgiargil_" eq "l", selected)>
     192     the digital library
     193  <option value="w"_If_("_cgiargil_" eq "w", selected)>
     194     the Web
     195</select>
     196}
     197
     198
    162199_languageoption_ {
    163200_textlanguage_
     
    196233<input type="hidden" name="e" value="_compressedoptions_">
    197234
    198 <p>_caseoption_
    199 
    200 <p>_stemoption_
     235<p>
     236_caseoption_
     237
     238<p>
     239_stemoption_
    201240
    202241<p>
     
    205244<p>
    206245_modeoption_
     246
     247<p>
     248_extlinkoption_
     249
     250<p>
     251_intlinkoption_
    207252
    208253<p>
     
    249294_textnostem_ { whole word must match}
    250295_textprefop_ {Return up to _maxdocoption_ hits with _hitsperpageoption_ hits per page.}
     296_textextlink_ {Access to external Web pages: }
     297_textintlink_ {Source documents retrieved from:}
    251298_textlanguage_ {Interface language: }
    252299_textencoding_ {Encoding: }
  • trunk/gsdl/macros/query.dm

    r644 r725  
    136136_textselect_ {_If_(_cgiargb_,_textadvancedsearch_,_textsimplesearch_)}
    137137
    138 _textsimplesearch_ {Search for _If_(_hselection_, _hselection_)_If_(_jselection_,_textjselect_)_If_(_nselection_, in _nselection_ language)
     138_defaultindextext_ { all text }
     139_textsimplesearch_ {Search for _If_(_hselection_, _hselection_, _defaultindextext_)_If_(_jselection_,_textjselect_)_If_(_nselection_, in _nselection_ language)
    139140which contain _querytypeselection_ of the words}
    140141
    141 _textadvancedsearch_ {Search_If_(_hselection_, _hselection_)_If_(_jselection_,_textjselect_)_If_(_nselection_, in _nselection_ language)
     142_textadvancedsearch_ {Search_If_(_hselection_, _hselection_, _defaultindextext_)_If_(_jselection_,_textjselect_)_If_(_nselection_, in _nselection_ language)
    142143using _querytypeselection_ query}
    143144
  • trunk/gsdl/macros/status.dm

    r602 r725  
    55<title>_1_</title>
    66</head>
    7 <body bgcolor="\#ffffff" text="\#000000" link="\#006666"
     7<body bgcolor="\#90c098" text="\#000000" link="\#006666"
    88      alink="\#cc9900" vlink="\#666633">
    99}
     
    1313}
    1414
     15_infoheader_ {<html>
     16<head>
     17<title>_1_</title>
     18</head>
     19<body bgcolor="\#ffffff" text="\#000000" link="\#006666"
     20      alink="\#cc9900" vlink="\#666633">
     21
     22<table width=100%>
     23  <tr>
     24    <td><img src="/gsdl/images/gsdl_height.gif" width=2 height=77></td>
     25    <td>_iconblankbar_
     26        <center><h2>_1_</h2></center>
     27        _iconblankbar_</td>
     28  </tr>
     29</table>
     30}
     31
     32_infofooter_ {
     33<p> _iconblankbar_
     34</body>
     35</html>
     36}
     37
    1538
    1639_frameset_ {
    1740<html>
    1841<head>
    19 <title>Configuration and Status Information</title>
     42<title>Maintainance and Administration</title>
    2043</head>
    2144
    22 <frameset cols="170,*">
     45<frameset cols="170,*" border=0>
    2346  <noframes><body bgcolor="#ffffff">
    2447  <p>You must have a frame enabled browser to view this.</p>
    2548  </body>
    2649  </noframes>
    27   <frame src="_gwcgi_?e=_compressedoptions_&a=status&sp=select">
    28   <frame src="_gwcgi_?e=_compressedoptions_&a=status&sp=generalinfo" name=infoframe>
     50  <frame src="_gwcgi_?e=_compressedoptions_&a=status&sp=select" name=navframe>
     51  <frame src="_gwcgi_?e=_compressedoptions_&a=status&sp=welcome" name=infoframe>
    2952</frameset>
    3053
     
    3356
    3457_select_ {
    35 <img src="_httpimg_/gsdl.gif">
     58<a href="_httppagehome_" target=_top border=0><img src="_httpimg_/gsdl.gif"></a>
    3659
    3760_If_("_cgiarguma_" ne "\_cgiarguma\_",
     
    4770<a href="_gwcgi_?e=_compressedoptions_&a=status&sp=protocolinfo" target=infoframe>protocols</a>
    4871
     72<p><b>Collections</b><br>
     73<a href="_gwcgi_?e=_compressedoptions_&a=bc&bca=newcol&wizard=textinfo" target=infoframe>new collection</a><br>
     74<a href="_gwcgi_?e=_compressedoptions_&a=bc&bca=editcol" target=infoframe>edit collection</a><br>
     75<a href="_gwcgi_?e=_compressedoptions_&a=bc&bca=buildcol&wizard=buildcol" target=infoframe>build collection</a><br>
     76<a href="_gwcgi_?e=_compressedoptions_&a=bc&bca=delcol" target=infoframe>delete collection</a><br>
     77
    4978
    5079<p><b>Logs</b><br>
     
    5382
    5483<p>
    55 <a href="_httppagehome_" target=_top>Return to NZDL</a>
     84<a href="_httppagehome_" target=_top>Return to home page</a>
    5685}
     86
     87_titlewelcome_ { Maintainence and Administration }
     88
     89_welcome_ {
     90
     91<p> Maintainence and administration serives available include:
     92    view on-line logs;
     93    create, maintain and update collections;
     94    and access technical information suchas CGI arguments. 
     95    These services are accessed using the
     96    side navigation bar on the lefthand side of the page.
     97}
Note: See TracChangeset for help on using the changeset viewer.