Changeset 12069


Ignore:
Timestamp:
2006-07-07T11:24:27+12:00 (18 years ago)
Author:
mdewsnip
Message:

Organised the search page macros better.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cic-hcap/macros/extra.dm

    r12063 r12069  
    840840package query
    841841
    842 # Hide the "or enter a query directly" box
    843 _advancedformextra_ {}
    844 
    845 # We have our own Javascript for the form searching
    846 _formfunctions_ {}
    847 
    848 _header_ {_If_(_cgiargq_,_style:header_,_style:cicheader_(onLoad="initializeadvancedsearch();"))}
    849 
    850 _pagescriptextra_ {}
    851 
    852 # What is displayed on the "advanced search" submit button
    853 _textbeginsearch_ {Search}
    854 
    855 # Hide the "search and display results in ... order" text
    856 _textformselect_ {}
     842_cicpagecontent_ {
     843_If_(_cgiargq_,_cicsearchresults_,_If_("_cgiargqst_" eq "1",_cicstatesearchpage_,_If_("_cgiargqre_" eq "1",_cicbibliographicsearchpage_,_cicadvancedsearchpage_))
     844}
    857845
    858846_cicsimplequeryform_ {
     
    866854}
    867855
    868 _cicpagecontent_ {
    869 _If_(_cgiargq_,_cicsearchresults_,_If_("_cgiargqre_" eq "1",_cicbibliographicsearchpage_,_If_("_cgiargqst_" eq "1",_cicstatesearchpage_,_cicadvancedsearchpage_))
    870 }
    871 
    872856_cicsearchresults_ {
    873857<div class="cicheading">Search Results</div>
     
    876860}
    877861
    878 _cicbibliographicsearchpage_ {
    879 <span class="cicheading">Bibliographic Search</span>
    880 
    881 <center>
    882   <form name=ReferencesQueryForm method=get action="_gwcgi_" onSubmit="preparereferencessearch();">
    883     <input type="hidden" name="a" value="q">
    884     <input type="hidden" name="fqc" value="and">
    885     <input type="hidden" name="fqf" value="RE">
    886     <input type="hidden" name="fqv" value="">
    887     <nobr><span class="cicqueryfieldtext">Search place references by title/author/keywords: </span><input type="text" name="txq" value="" size="40" style="border: solid 1px #005400;"></nobr>
    888   </form>
    889 </center>
    890 }
     862
     863
     864# ------------------------------------------------------------------------------------------
     865#   QUERY  (Search -> Institutions by State)
     866# ------------------------------------------------------------------------------------------
    891867
    892868_cicstatesearchpage_ {
     
    898874  </select>
    899875</center>
    900 }
    901 
    902 _cicadvancedsearchpage_ {
    903 <span class="cicheading">Advanced Search</span>
    904 
    905 <center>_fieldqueryform_</center>
    906876}
    907877
     
    966936}
    967937
     938
     939# ------------------------------------------------------------------------------------------
     940#   QUERY  (Search -> Bibliographic Search)
     941# ------------------------------------------------------------------------------------------
     942
     943_cicbibliographicsearchpage_ {
     944<span class="cicheading">Bibliographic Search</span>
     945
     946<center>
     947  <form name=ReferencesQueryForm method=get action="_gwcgi_" onSubmit="preparereferencessearch();">
     948    <input type="hidden" name="a" value="q">
     949    <input type="hidden" name="fqc" value="and">
     950    <input type="hidden" name="fqf" value="RE">
     951    <input type="hidden" name="fqv" value="">
     952    <nobr><span class="cicqueryfieldtext">Search place references by title/author/keywords: </span><input type="text" name="txq" value="" size="40" style="border: solid 1px #005400;"></nobr>
     953  </form>
     954</center>
     955}
     956
     957
     958
     959# ------------------------------------------------------------------------------------------
     960#   QUERY  (Search -> Advanced Search)
     961# ------------------------------------------------------------------------------------------
     962
     963# Hide the "or enter a query directly" box
     964_advancedformextra_ {}
     965
     966# We have our own Javascript for the form searching
     967_formfunctions_ {}
     968
     969_header_ {_If_(_cgiargq_,_style:header_,_style:cicheader_(onLoad="initializeadvancedsearch();"))}
     970
     971_pagescriptextra_ {}
     972
     973# What is displayed on the "advanced search" submit button
     974_textbeginsearch_ {Search}
     975
     976# Hide the "search and display results in ... order" text
     977_textformselect_ {}
     978
     979_cicadvancedsearchpage_ {
     980<span class="cicheading">Advanced Search</span>
     981
     982<center>_fieldqueryform_</center>
     983}
     984
    968985_cicaqvdefault_ {<input id='aqv_1_field' name='aqv' type='text' style='width: 450px'/>}
    969986_cicaqvtypeofplace_ {<select id='aqv_1_field' name='aqv' style='width: 450px'><option value='Individual building'>Individual building</option><option value='Landscape site'>Landscape site</option><option value='Campus arrangement'>Campus arrangement</option><option value='Building group'>Building group</option></select>}
Note: See TracChangeset for help on using the changeset viewer.