Ignore:
Timestamp:
1999-06-16T14:22:05+12:00 (25 years ago)
Author:
sjboddie
Message:

lots of changes to all macro files

File:
1 edited

Legend:

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

    r258 r276  
    11package query
    22
     3
    34#######################################################################
    4 # navigation bar
    5 #
    6 # these macros must be overridden for any collections using
    7 # options different from the default (i.e. search, titles and authors)
     5# Macros whose values are set from within the server at runtime. These
     6# are here only for reference and to set default values if required.           
    87#######################################################################
    98
    10 _imagequerybar_ {
    11 <center>
    12 <nobr>_icontabsearchgreen__icontabspacer__imagebrowsetitles__icontabspacer2__imagebrowseauthors_</nobr>
    13 </center>
    14 <p>
    15 }
    16 
    17 _imagequerybar_[version=text] {
    18 _imagebrowsetitles_<br>
    19 _imagebrowseauthors_<br>
    20 <p>
    21 }
    22 
     9_quotedquery_ {}
     10_freqmsg_ {}
     11_resultline_ {}
     12_thisfirst_ {}
     13_thislast_ {}
     14_nextfirst_ {}
     15_nextlast_ {}
     16_prevfirst_ {}
     17_prevlast_ {}
    2318
    2419#######################################################################
     
    4641_iconqueryresultsbar_[version=text] {_texticonqueryresultsbar_}
    4742
     43# _iconnext_ and _iconprev_ are overridden in this package as we
     44# don't want alt text here
     45_iconnext_{<img src="_httpiconmore_" width=_widthmore_ height=_heightmore_ border=0 align=top>}
     46_iconprev_{<img src="_httpiconless_" width=_widthless_ height=_heightless_ border=0 align=top>}
    4847
    4948#######################################################################
     
    5857#######################################################################
    5958
    60 _pagetitle_ {_collectionname_: Search page}
     59_pagetitle_ {_If_(_cgiargq_,_textquerytitle_,_textnoquerytitle_)}
    6160
    62 _noqueryheader_ {
    63 _imagequerybar_
     61_content_ {
     62<center>
     63_navigationbar_
     64</center>
    6465_queryform_
    65 
    66 <p>
    67 _iconblankbar_<br>
    68 }
    69 
    70 _queryheader_ {
    71 _imagequerybar_
    72 _queryform_
    73 
    74 <_font_>
    75 <center><p>_iconqueryresultsbar_</center><br>
    76 <small>_freqmsg_</small><br>
     66_If_(_cgiargq_,<center>_iconqueryresultsbar_</center><br>
     67<small>
     68_freqmsg_
     69_textpostprocess_</small><br>
    7770_resultline_
    78 </font>
    79 
    80 <p>
    81 }
    82 
    83 
    84 # default to be overridden for each page
    85 _links_ {}
    86 
    87 _queryfooter_ {
    88 _links_
     71,<center>_iconblankbar_</center>)<br>
    8972}
    9073
    9174_queryform_ {
     75<!-- query form -->
    9276<form name=QueryForm method=get action="_gwcgi_">
    9377
     
    9882<center>
    9983<table><tr><td>
    100 <_font_>
    10184<nobr>
    10285_textselect_<br>
    10386</nobr>
    104 </font>
    10587</td></tr><tr><td>
    106 <_font_>
    10788<nobr>
    108 <input type="text" name="q" value="_querystring_" size="50">
    109 <input type="submit" value="_textbeginsearch_" name="b">
     89<input type="text" name="q" value="_cgiargq_" size="50">
     90<input type="submit" value="_textbeginsearch_">
    11091</nobr>
    111 </font>
    11292</td></tr></table>
    11393</center>
    114 </font>
    11594</form>
     95<!-- end of query form -->
     96}
     97
     98# we want to put the links to previous/next pages of results
     99# in the footer
     100_pagefooterextra_ {
     101<center>
     102<table cellspacing=0 cellpadding=0 width=_pagewidth_>
     103<tr>
     104<td align=left>_If_(_prevfirst_,<a href="_httpquery_&r=_prevfirst_">_iconprev__textmatches__prevfirst_ - _prevlast_</a>)</td>
     105<td align=right>_If_(_nextfirst_,<a href="_httpquery_&r=_nextfirst_">_textmatches__nextfirst_ - _nextlast__iconnext_</a>)</td>
     106</tr></table>
     107</center>
    116108}
    117109
     
    120112#######################################################################
    121113
     114_textquerytitle_ {results _thisfirst_ - _thislast_ for query: _cgiargq_}
     115_textnoquerytitle_ {_collectionname_: Search page}
     116
    122117_texticonthispage_ {search}
    123118_textsome_ {some}
    124119_textall_ {all}
    125120_texticonqueryresultsbar_ {}
    126 _textfm1_ {Word count: }
    127 _textmt2_ {More than }
    128 _textndmtq_ {No documents matched the query}
    129 _textdmtq2_ { document matched the query}
    130 _textdmtq3_ { documents matched the query}
     121_textfreqmsg1_ {Word count: }
     122_textpostprocess_ {_If_(_quotedquery_,<br><i>post-processed to find _quotedquery_</i>
     123)}
     124
     125_textmorethan_ {More than }
     126_textnodocs_ {No documents matched the query.}
     127_text1doc_ {1 document matched the query.}
     128_textlotsdocs_ { documents matched the query.}
    131129_textmatches_ {Matches }
    132130_textbeginsearch_ {Begin Search}
    133131
    134 # the textselect macro will be overridden for most collections
    135 _textselect_ {Search _hselection_ of _jselection_ in _nselection_ language for
     132# the textselect macro may need to be overridden for some collections
     133# _hselection_, _jselection_ and _nselection_ are set from within the server
     134# some or all of them may remain unset
     135_textselect_ {Search _hselection__If_(_jselection_, of _jselection_)_If_(_nselection_, in _nselection_ language) for
    136136_querytypeselection_ of the words}
    137137
    138138_querytypeselection_ {
    139139<select name="t">
    140 <option value=1_If_(_cgiargt_, selected)>_textsome_
    141 <option value=0_If_(_cgiargt_,, selected)>_textall_
     140<option value="1"_If_(_cgiargt_, selected)>_textsome_
     141<option value="0"_If_(_cgiargt_,, selected)>_textall_
    142142</select>
    143143}
     
    152152_textall_ [language=mi] {te katoa}
    153153_textbeginsearch_ [language=mi] {Rapua}
    154 _textfm1_ [language=mi] {Kia hia ng&auml; kupu: }
    155 _textmt2_ [language=mi] {Neke atu i te }
    156 _textndmtq_ [language=mi] {k&auml;ore he pukapuka e p&auml; ana ki &auml;u kupu rapu}
    157 _textdmtq2_ [language=mi] { te pukapuka e p&auml; ana ki &auml;u kupu rapu}
    158 _textdmtq3_ [language=mi] { ng&auml; pukapuka e p&auml; ana ki &auml;u kupu rapu}
     154_textfreqmsg1_ [language=mi] {Kia hia ng&auml; kupu: }
     155_textmorethan_ [language=mi] {Neke atu i te }
     156_textnodocs_ [language=mi] {k&auml;ore he pukapuka e p&auml; ana ki &auml;u kupu rapu.}
     157_text1doc_ [language=mi] {1 te pukapuka e p&auml; ana ki &auml;u kupu rapu.}
     158_textlotsdocs_ [language=mi] { ng&auml; pukapuka e p&auml; ana ki &auml;u kupu rapu.}
    159159
    160160
Note: See TracChangeset for help on using the changeset viewer.