Ignore:
Timestamp:
2000-08-17T17:07:43+12:00 (24 years ago)
Author:
sjboddie
Message:

Added collector action - also changed the javascript required by all the
rollover buttons

File:
1 edited

Legend:

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

    r1406 r1419  
    2121_classificationlinks_
    2222</center>
    23 }
    24 
    25 
    26 #######################################################################
    27 # javascript macros
    28 #
    29 # there should be one of these for each flashy javascript button
    30 # that may appear within a document page
    31 #######################################################################
    32 
    33 # javaextras allows specific collections to include extra java macros
    34 # without having to override their document action
    35 _javaextras_ {}
    36 
    37 _javadetach_ {
    38     detach\_on = new Image(_widthedtchx_, _heightedtchx_);
    39     detach\_on.src = "_httpiconedtchon_";
    40     detach\_off = new Image(_widthedtchx_, _heightedtchx_);
    41     detach\_off.src = "_httpiconedtchof_";
    42 }
    43 
    44 _javaexpandcontents_ {
    45     expcon\_on = new Image(_widtheexpcx_, _heighteexpcx_);
    46     expcon\_on.src = "_httpiconeexpcon_";
    47     expcon\_off = new Image(_widtheexpcx_, _heighteexpcx_);
    48     expcon\_off.src = "_httpiconeexpcof_";
    49 }
    50 
    51 _javacontractcontents_ {
    52     concon\_on = new Image(_widtheconcx_, _heighteconcx_);
    53     concon\_on.src = "_httpiconeconcon_";
    54     concon\_off = new Image(_widtheconcx_, _heighteconcx_);
    55     concon\_off.src = "_httpiconeconcof_";
    56 }
    57 
    58 _javaexpandtext_ {
    59     alltext\_on = new Image(_widthealltx_, _heightealltx_);
    60     alltext\_on.src = "_httpiconeallton_";
    61     alltext\_off = new Image(_widthealltx_, _heightealltx_);
    62     alltext\_off.src = "_httpiconealltof_";
    63 }
    64 
    65 _javacontracttext_ {
    66     thissec\_on = new Image(_widthetsecx_, _heightetsecx_);
    67     thissec\_on.src = "_httpiconetsecon_";
    68     thissec\_off = new Image(_widthetsecx_, _heightetsecx_);
    69     thissec\_off.src = "_httpiconetsecof_";
    70 }
    71 
    72 _javahighlighting_ {
    73     hl\_on = new Image(_widthehlx_, _heightehlx_);
    74     hl\_on.src = "_httpiconehlon_";
    75     hl\_off = new Image(_widthehlx_, _heightehlx_);
    76     hl\_off.src = "_httpiconehlof_";
    77 }
    78 
    79 _javanohighlighting_ {
    80     nhl\_on = new Image(_widthenhlx_, _heightenhlx_);
    81     nhl\_on.src = "_httpiconenhlon_";
    82     nhl\_off = new Image(_widthenhlx_, _heightenhlx_);
    83     nhl\_off.src = "_httpiconenhlof_";
    84 }
    85 
    86 _javacontinue_ {
    87     cont\_on = new Image(_widthcontx_, _heightcontx_);
    88     cont\_on.src = "_httpiconconton_";
    89     cont\_off = new Image(_widthcontx_, _heightcontx_);
    90     cont\_off.src = "_httpiconcontoff_";
    9123}
    9224
     
    245177_tab_ {<td>_icontab_</td>}
    246178
    247 _iconcontracttoc_ {<img name="concon" src="_httpiconeconcof_" width=_widtheconcx_ height=_heighteconcx_ alt="_texticoncontracttoc_" border=0>}
    248 _iconcontracttoc_[v=1] {_texticoncontracttoc_}
    249 
    250 _iconexpandtoc_ {<img name="expcon" src="_httpiconeexpcof_" width=_widtheexpcx_ height=_heighteexpcx_ alt="_texticonexpandtoc_" border=0>}
    251 _iconexpandtoc_[v=1] {_texticonexpandtoc_}
    252 
    253 _iconcontracttext_ {<img name="thissec" src="_httpiconetsecof_" width=_widthetsecx_ height=_heightetsecx_ alt="_texticoncontracttext_" border=0>}
    254 _iconcontracttext_[v=1] {_texticoncontracttext_}
    255 
    256 _iconexpandtext_ {<img name="alltext" src="_httpiconealltof_" width=_widthealltx_ height=_heightealltx_ alt="_texticonexpandtext_" border=0>}
    257 _iconexpandtext_[v=1] {_texticonexpandtext_}
    258 
    259 _icondetach_ {<img name="detach" src="_httpiconedtchof_" width=_widthedtchx_ height=_heightedtchx_ alt="_texticondetach_" border=0>}
    260 _icondetach_[v=1] {_texticondetach_}
    261 
    262 _iconhighlight_ {<img name="hl" src="_httpiconehlof_" width=_widthehlx_ height=_heightehlx_ alt="_texticonhighlight_" border=0>}
    263 _iconhighlight_ [v=1] {_texticonhighlight_}
    264 
    265 _iconnohighlight_ {<img name="nhl" src="_httpiconenhlof_" width=_widthenhlx_ height=_heightenhlx_ alt="_texticonnohighlight_" border=0>}
    266 _iconnohighlight_ [v=1] {_texticonnohighlight_}
    267 
    268179_iconwarning_ {<img src="_httpiconwarning_" width=_widthwarning_ height=_heightwarning_ border=0 align=left>}
    269180_iconwarning_ [v=1] {_texticonwarning_}
    270181
    271 _iconcont_ {<img name="cont" src="_httpiconcontoff_" width=_widthcontx_ height=_heightcontx_ border=0>}
    272 _iconcont_ [v=1] {_texticoncont_}
    273 
    274182
    275183#######################################################################
     
    277185#######################################################################
    278186
    279 _imagedetach_ {<a href="_httpcurrentdocument_&x=1" target=\_blank onMouseover = "img\_on('detach')"
    280 onMouseout = "img\_off('detach')">_icondetach_</a>}
    281 _imagedetach_[v=1] {<a href="_httpcurrentdocument_&x=1" target=\_blank>_texticondetach_</a><br>}
    282 
    283 _imagehighlight_ {<a href="_httpcurrentdocument_&hl=1&gc=_cgiarggc_&amp;gt=_cgiarggt_" onMouseover = "img\_on('hl')"
    284 onMouseout = "img\_off('hl')">_iconhighlight_</a>}
    285 _imagehighlight_ [v=1] {<a href="_httpcurrentdocument_&hl=1&gc=_cgiarggc_&amp;gt=_cgiarggt_">_texticonhighlight_</a><br>}
    286 
    287 _imagenohighlight_ {<a href="_httpcurrentdocument_&hl=0&gc=_cgiarggc_&amp;gt=_cgiarggt_" onMouseover = "img\_on('nhl')"
    288 onMouseout = "img\_off('nhl')">_iconnohighlight_</a>}
    289 _imagenohighlight_ [v=1] {<a href="_httpcurrentdocument_&hl=0&gc=_cgiarggc_&amp;gt=_cgiarggt_">_texticonnohighlight_</a><br>}
    290 
    291 _imagecontracttoc_ {<a href="_httpcurrentdocument_&gc=0" onMouseover = "img\_on('concon')"
    292 onMouseout = "img\_off('concon')">_iconcontracttoc_</a>}
    293 _imagecontracttoc_[v=1] {"<a href="_httpcurrentdocument_&gc=0">_texticoncontracttoc_</a><br>}
    294 
    295 _imageexpandtoc_ {<a href="_httpcurrentdocument_&gc=1" onMouseover = "img\_on('expcon')"
    296 onMouseout = "img\_off('expcon')">_iconexpandtoc_</a>}
    297 _imageexpandtoc_ [v=1] {"<a href="_httpcurrentdocument_&gc=1">_texticonexpandtoc_</a><br>}
    298 
    299 _imagecontracttext_ {<a href="_httpcurrentdocument_&amp;gt=0" onMouseover = "img\_on('thissec')"
    300 onMouseout = "img\_off('thissec')">_iconcontracttext_</a>}
    301 _imagecontracttext_[v=1] {<a href="_httpcurrentdocument_&amp;gt=0">display only current section</a><br>}
    302 
    303 _imageexpandtext_ {<a href="_httpcurrentdocument_&amp;gt=1" onMouseover = "img\_on('alltext')"
    304 onMouseout = "img\_off('alltext')">_iconexpandtext_</a>}
    305 _imageexpandtext_[v=1] {<a href="_httpcurrentdocument_&amp;gt=1">display all text</a><br>}
    306 
    307 _imagecont_ {<a href="_httpcurrentdocument_&amp;gt=2" onMouseover = "img\_on('cont')"
    308 onMouseout = "img\_off('cont')">_iconcont_</a>}
    309 _imagecont_[v=1] {<a href="_httpcurrentdocument&amp;gt=2">_texticoncont_</a><br>}
     187# can't use _gsimage_ macro for detach button as we need to include target
     188_imagedetach_ {<a href="_httpcurrentdocument_&x=1" target=\_blank onMouseover="roll('detach',1);" onMouseOut="roll('detach',0);"><img
     189name="detach" src="_httpiconedtchof_" onLoad="gbutton(this,'_httpiconedtchon_');" border=0 alt="_texticondetach_"></a>}
     190_imagedetach_ [v=1] {<a href="_httpcurrentdocument_&x=1" target=\_blank>_texticondetach_</a><br>}
     191
     192_imagehighlight_ {_gsimage_(_httpcurrentdocument_&hl=1&gc=_cgiarggc_&amp;gt=_cgiarggt_,_document:httpiconehlof_,_document:httpiconehlon_,hl,_document:texticonhighlight_)}
     193
     194_imagenohighlight_ {_gsimage_(_httpcurrentdocument_&hl=0&gc=_cgiarggc_&amp;gt=_cgiarggt_,_document:httpiconenhlof_,_document:httpiconenhlon_,nhl,_document:texticonnohighlight_)}
     195
     196_imagecontracttoc_ {_gsimage_(_httpcurrentdocument_&gc=0,_document:httpiconeconcof_,_document:httpiconeconcon_,concon,_document:texticoncontracttoc_)}
     197
     198_imageexpandtoc_ {_gsimage_(_httpcurrentdocument_&gc=1,_document:httpiconeexpcof_,_document:httpiconeexpcon_,expcon,_document:texticonexpandtoc_)}
     199
     200_imagecontracttext_ {_gsimage_(_httpcurrentdocument_&amp;gt=0,_document:httpiconetsecof_,_document:httpiconetsecon_,thissec,_document:texticoncontracttext_)}
     201
     202_imageexpandtext_ {_gsimage_(_httpcurrentdocument_&amp;gt=1,_document:httpiconealltof_,_document:httpiconeallton_,alltext,_document:texticonexpandtext_)}
     203
     204_imagecont_ {_gsimage_(_httpcurrentdocument_&amp;gt=2,_document:httpiconcontoff_,_document:httpiconconton_,cont,_document:texticoncont_)}
    310205
    311206
Note: See TracChangeset for help on using the changeset viewer.