Changeset 276 for trunk/gsdl/macros/query.dm
- Timestamp:
- 1999-06-16T14:22:05+12:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/macros/query.dm
r258 r276 1 1 package query 2 2 3 3 4 ####################################################################### 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. 8 7 ####################################################################### 9 8 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_ {} 23 18 24 19 ####################################################################### … … 46 41 _iconqueryresultsbar_[version=text] {_texticonqueryresultsbar_} 47 42 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>} 48 47 49 48 ####################################################################### … … 58 57 ####################################################################### 59 58 60 _pagetitle_ {_ collectionname_: Search page}59 _pagetitle_ {_If_(_cgiargq_,_textquerytitle_,_textnoquerytitle_)} 61 60 62 _noqueryheader_ { 63 _imagequerybar_ 61 _content_ { 62 <center> 63 _navigationbar_ 64 </center> 64 65 _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> 77 70 _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> 89 72 } 90 73 91 74 _queryform_ { 75 <!-- query form --> 92 76 <form name=QueryForm method=get action="_gwcgi_"> 93 77 … … 98 82 <center> 99 83 <table><tr><td> 100 <_font_>101 84 <nobr> 102 85 _textselect_<br> 103 86 </nobr> 104 </font>105 87 </td></tr><tr><td> 106 <_font_>107 88 <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_"> 110 91 </nobr> 111 </font>112 92 </td></tr></table> 113 93 </center> 114 </font>115 94 </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> 116 108 } 117 109 … … 120 112 ####################################################################### 121 113 114 _textquerytitle_ {results _thisfirst_ - _thislast_ for query: _cgiargq_} 115 _textnoquerytitle_ {_collectionname_: Search page} 116 122 117 _texticonthispage_ {search} 123 118 _textsome_ {some} 124 119 _textall_ {all} 125 120 _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.} 131 129 _textmatches_ {Matches } 132 130 _textbeginsearch_ {Begin Search} 133 131 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 136 136 _querytypeselection_ of the words} 137 137 138 138 _querytypeselection_ { 139 139 <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_ 142 142 </select> 143 143 } … … 152 152 _textall_ [language=mi] {te katoa} 153 153 _textbeginsearch_ [language=mi] {Rapua} 154 _textf m1_ [language=mi] {Kia hia ngä kupu: }155 _textm t2_ [language=mi] {Neke atu i te }156 _textn dmtq_ [language=mi] {käore he pukapuka e pä ana ki äu kupu rapu}157 _text dmtq2_ [language=mi] { te pukapuka e pä ana ki äu kupu rapu}158 _text dmtq3_ [language=mi] { ngä pukapuka e pä ana ki äu kupu rapu}154 _textfreqmsg1_ [language=mi] {Kia hia ngä kupu: } 155 _textmorethan_ [language=mi] {Neke atu i te } 156 _textnodocs_ [language=mi] {käore he pukapuka e pä ana ki äu kupu rapu.} 157 _text1doc_ [language=mi] {1 te pukapuka e pä ana ki äu kupu rapu.} 158 _textlotsdocs_ [language=mi] { ngä pukapuka e pä ana ki äu kupu rapu.} 159 159 160 160
Note:
See TracChangeset
for help on using the changeset viewer.