Ignore:
Timestamp:
2006-05-03T16:09:01+12:00 (18 years ago)
Author:
kjdon
Message:

added extra stuff for search help, removed \n from doc buttons, changed the mgpp and lucene plain search text bits

File:
1 edited

Legend:

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

    r11402 r11767  
    141141_labelBrwse_ {Browse}
    142142_labelCollage_ {Collage}
    143 _labelbrows_ {Browse}
    144143_labelPeople_ {People A-Z}
    145144_labelAcronym_ {Acronyms}
     
    270269_textCONTINUE_ {CONTINUE?}
    271270
    272 _textEXPANDTEXT_ {EXPAND\nTEXT}
    273 
    274 _textCONTRACTCONTENTS_ {CONTRACT\nCONTENTS}
     271_textEXPANDTEXT_ {EXPAND TEXT}
     272
     273_textCONTRACTCONTENTS_ {CONTRACT CONTENTS}
    275274
    276275_textDETACH_ {DETACH}
    277276
    278 _textEXPANDCONTENTS_ {EXPAND\nCONTENTS}
    279 
    280 _textCONTRACT_ {CONTRACT\nTEXT}
    281 
    282 _textHIGHLIGHT_ {HIGH-\nLIGHTING}
    283 
    284 _textNOHIGHLIGHT_ {NO HIGH-\nLIGHTING}
     277_textEXPANDCONTENTS_ {EXPAND CONTENTS}
     278
     279_textCONTRACT_ {CONTRACT TEXT}
     280
     281_textHIGHLIGHT_ {HIGHLIGHTING}
     282
     283_textNOHIGHLIGHT_ {NO HIGHLIGHTING}
    285284
    286285
     
    352351_textadvancedsearch_ {Search _indexselection_ _If_(_jselection_,of _jselection_ )_If_(_gselection_,at _gselection_ level )_If_(_nselection_,in _nselection_ language )using _querytypeselection_ query}
    353352
    354 _textformsimplesearch_ {Search _If_(_jselection_,_jselection_ )_If_(_gformselection_,at _gformselection_ level )_If_(_nselection_,in _nselection_ language )for _formquerytypeselection_ of}
    355 
    356 _textformadvancedsearch_ {Search _If_(_jselection_,_jselection_ )_If_(_gformselection_,at _gformselection_ level )_If_(_nselection_,in _nselection_ language )and display results in _formquerytypeselection_ order}
     353_textadvancedmgppsearch_ {Search _indexselection_ _If_(_jselection_,of _jselection_ )_If_(_gselection_,at _gselection_ level )_If_(_nselection_,in _nselection_ language ) and display results in _formquerytypeadvancedselection_ order}
     354
     355_textadvancedlucenesearch_ {Search _indexselection_ _If_(_jselection_,of _jselection_ )_If_(_gselection_,at _gselection_ level )_If_(_nselection_,in _nselection_ language ) for}
     356
     357_textformsimplesearch_ {Search _If_(_jselection_,_jselection_ )_If_(_gformselection_,at _gformselection_ level )_If_(_nselection_,in _nselection_ language )for _formquerytypesimpleselection_ of}
     358
     359_textformadvancedsearch_ {Search _If_(_jselection_,_jselection_ )_If_(_gformselection_,at _gformselection_ level )_If_(_nselection_,in _nselection_ language )and display results in _formquerytypeadvancedselection_ order}
    357360
    358361
     
    665668
    666669<p>Below the title or front-cover photograph are some buttons. Click on
    667 <i>expand text</i> to expand out the whole text of the current section, or
     670<i>_document:textEXPANDTEXT_</i> to expand out the whole text of the current section, or
    668671book. If the document is large, this could take a long time and use a lot
    669 of memory! Click on <i>expand contents</i> to expand out the whole table of
     672of memory! Click on <i>_document:textEXPANDCONTENTS_</i> to expand out the whole table of
    670673contents so that you can see the titles of all chapters and
    671 subsections. Click on <i>detach</i> to make a new browser window for this
     674subsections. Click on <i>_document:textDETACH_</i> to make a new browser window for this
    672675document. (This is useful if you want to compare documents, or read two at
    673676once.) Finally, when you do a search the words you search for are
    674 highlighted. Click on <i>no highlighting</i> to remove highlighting.</p>
     677highlighted. Click on <i>_document:textNOHIGHLIGHT_</i> to remove highlighting.</p>
    675678}
    676679
     
    706709<p>A maximum of 100 is imposed on the number of
    707710  documents returned.  You can change this number by clicking the
    708   <i>preferences</i> button at the top of the page.<p>
     711  <i>_Global:linktextPREFERENCES_</i> button at the top of the page.<p>
    709712}
    710713
     
    724727}
    725728
     729_texthelpmgppsearching_ {
     730For collections built with MGPP a few other options are available.
     731
     732<ul>
     733<li>A <b>*</b> at the end of a query term  matches all words <b>starting with</b> that word, e.g. <b>comput*</b> matches all words starting with <b>comput</b>.
     734<li><b>/x</b> can be used to give higher weight to one or more of the query terms, eg <b>computer/10 science</b> gives computer 10 times more weight than science when ranking documents.
     735</ul>
     736}
     737
     738_texthelplucenesearching_ {
     739For collections built with Lucene a few other options are available.
     740
     741<ul>
     742<li><b>?</b> can be used as a wildcard in place of a single letter. For example, <b>b?t</b> will match  <b>bet</b>, <b>bit</b> and <b>bat</b> etc.
     743<li><b>*</b> can be used as a wildcard in place of multiple letters. For example, <b>comput*</b> matches all words starting with <b>comput</b>.
     744</ul>
     745Both of these wildcards can be used in the middle of a term, or at the end. They cannot be used at the start of a search term.
     746}
     747
    726748_texthelpquerytypetitle_ {Query type}
    727749_texthelpquerytype_ {
     
    731753  <li>Queries for <b>all</b> of the words.  These look for documents (or
    732754      chapters, or titles) that contain all the words you have specified.
    733       Documents that satisfy the query are displayed, in alphabetical
    734       order.<p>
     755      Documents that satisfy the query are displayed, in build order.
     756<p>
    735757
    736758  <li>Queries for <b>some</b> of the words.  Just list some terms that are
     
    752774}
    753775
     776_texthelpadvancedsearchtitle_ {Advanced searching}
     777
     778_texthelpadvancedsearch_ {
     779<p>If you have selected advanced query type (in preferences) you have slightly different search options. _selectadvancedsearch_
     780}
     781
     782_texthelpadvsearchmg_ {
     783Advanced searching in MG collections gives you two options, ranked and boolean.
     784A <b>ranked</b> search is exactly the same as the <b>some</b> search descibed in <a href="\#query-type">_texthelpquerytypetitle_</a>.
     785<p>_texthelpbooleansearch_
     786}
     787
     788_texthelpbooleansearch_ {
     789A <b>boolean</b> search allows you to combine terms
     790using & (for "and"), | (for "or"), and ! (for "not"), using parentheses for grouping if desired. The default operator is | (for "or").
     791<p>
     792For example, <b>snail & farming</b> will match documents which contain both <b>snail</b> AND <b>farming</b>, whereas <b>snail | farming</b> will match documents that contain either <b>snail</b> OR <b>farming</b>.
     793<b>snail !farming</b> will match documents that contain <b>snail</b> AND DO NOT contain <b>farming</b>.
     794<p>
     795More precise queries can be specified using combinations of operators and parentheses. For example, <b>(sheep | cattle) & (farm | station)</b>, or <b>sheep | cattle | goat !pig</b>.
     796}
     797
     798_texthelpadvsearchmgpp_ {
     799Advanced searches in MGPP collections use boolean operators. _texthelpbooleansearch_
     800<p>The results can be displayed in <b>ranked</b> order, as described for the <b>some</b> search in <a href="\#query-type">_texthelpquerytypetitle_</a>, or in "build" order. This is the order that documents were processed during the creation of the collection.
     801<p>
     802Further operators include <b>NEARx</b> and <b>WITHINx</b>.
     803NEARx is used to specify the maximum distance apart (x words) two query
     804terms must be for a document to match.
     805WITHINx specifies that the second term must occur within x words <i>after</i> the first term. This is similar to NEAR but the order is important. The default distance is 20.
     806}
     807
     808_texthelpadvsearchlucene_ {
     809Advanced searches in Lucene collections use boolean operators. _texthelpbooleansearch_
     810}
    754811_textdatesearch_ {Searching with Dates}
    755812
     
    795852
    796853_texthelppreferences_ {
    797 <p>When you click the <i>preferences</i> button at the top of the page you will
     854<p>When you click the <i>_Global:linktextPREFERENCES_</i> button at the top of the page you will
    798855be able to change some features of the interface to suit your own requirements.
    799856}
     
    836893_texthelpsearchprefstitle_ {Search preferences}
    837894_texthelpsearchprefs_ {
     895<p>You can switch to an "advanced" query mode which allows you to combine terms
     896using & (for "and"), | (for "or"), and ! (for "not"), using parentheses for grouping if desired. This allows you to specify more precise
     897queries.
     898<p> It is possible to get a large query box, so that you can
     899easily do paragraph-sized searching. It is surprisingly quick to search for
     900large amounts of text.
    838901<p>Two pairs of buttons control the kind of text matching in the searches that
    839902you make. The first set (labeled "case differences") controls whether upper and
    840903lower case must match.  The second ("word endings") controls whether to ignore
    841 word endings or not.  It is possible to get a large query box, so that you can
    842 easily do paragraph-sized searching. It is surprisingly quick to search for
    843 large amounts of text.
     904word endings or not. 
    844905
    845906<p>For example, if the buttons <i>ignore case differences</i> and
     
    853914      "builds").
    854915
    855 <p>You can switch to an "advanced" query mode which allows you to combine terms
    856 using AND (&), OR (|), and NOT (!). This allows you to specify more precise
    857 queries. You can turn the search history feature, which shows you your last few
     916<p>You can turn the search history feature, which shows you your last few
    858917queries.  This makes it easy to repeat slightly modified versions of previous
    859 queries. Finally, you can control the number of hits returned, and the
     918queries.
     919<p>Finally, you can control the number of hits returned, and the
    860920number presented on each screenful.
    861921}
Note: See TracChangeset for help on using the changeset viewer.