source: MILK/trunk/milk_server/milk_server/templates/browse/browse_functions.html @ 5798

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/MILK/trunk/milk_server/milk_server/templates/browse/browse_functions.html@5798
Revision 5798, 11.0 KB checked in by sdonegan, 11 years ago (diff)

Updated to support single text search box with fancy div replacing depending on whether vocab or free text search chosen

Line 
1<!--! A collection of template definitions for use in atom output construction -->
2<html xmlns="http://www.w3.org/1999/xhtml" 
3        xmlns:py="http://genshi.edgewall.org/"
4        xmlns:xi="http://www.w3.org/2001/XInclude"
5        py:strip="">
6       
7    <xi:include href="../utils.html" />
8        <xi:include href="../vocabsearch/vocabsearch.html" />
9
10    <div py:def="searchTextInputs()">
11        <div class="contentWrap">
12            <p>The NERC Data Discovery Service allows you to find data resources held within the NERC DataGrid (NDG) catalogue. 
13            The catalogue makes data discovery easier as it connects data held in managed archives and other initiatives.</p>
14            <p>It is populated with 'discovery' metadata (information about data sets) harvested on a regular basis from the
15            NERC Data Centres and other providers in the UK and worldwide. </p>
16            <p>Choose one or more search categories to query the catalogue and return data sets of interest. 
17            Links to further information and/or data access are provided in the responses.</p>
18           
19            <!-- disabled from original "2 box" type entry -->
20            <!--
21            <div class="searchHdr">Vocab term search <span py:replace="helpIcon('term_search_help')"/></div>
22            <div id="term_search_help" class="hidden" >
23                <div class="helptxt">
24                 <p>Vocab term search provides an autocomplete text field - which searches the vocabulary server
25                 for terms which match the input text - suggesting possible terms to use in a search.</p>
26                 <p>Note, the text field will ONLY accept valid vocab terms and when these are searched on, a
27                 standard text search, similar to that facilitated by the 'Free text search' input, is undertaken.
28                 Note, also, if both vocab term and free text data are input, both are used in the subsequent
29                 text search.</p>
30                 <p>
31                 Terms are only looked up after two characters are entered, to narrow options.  Additionally, it is
32                 possible to use the wildcard, '*' to match multiple letters in a term.</p>
33                </div>
34            </div>
35                    <div py:replace="vocabSearchAutoComplete(showInfo = False)"/>-->
36                   
37                    <!--
38            <div class="searchHdr">Free text search <span py:replace="helpIcon('fts_help')"/></div>
39            <div id="fts_help" class="hidden" >
40                <div class="helptxt">
41                 <p>Free text search looks through the entire database of discovery documents, or it can be limited
42                    to the Author (dataset creator), or Parameter fields</p>
43                    <p> Note that it is possible to get a document returned which apparently does not include the
44                    search term; this can occur when the html view does not reflect the entire document content.
45                    The document pages include links to fuller and more original versions in viewable XML if you
46                    suspect this is occurring and wish to track down obscure matches.</p>
47                </div>
48            </div>
49            <div class="SearchBox">
50                <label for="searchString"><input name="searchString" type="text" id="searchString" size="25" value="$c.searchString"/></label>
51                <label for="textTarget">
52                    <select name="textTarget" id="textTarget">
53                                        <option value="All" selected="selected">All</option>
54                        <option value="Authors">Authors</option>
55                        <option value="Params">Parameters</option>
56                    </select>
57                </label>
58            </div>
59            -->
60           
61            <!-- ***********************************************************************************  -->
62           
63            <div class="searchHdr">Text Search
64           
65                <div class="TextSearchBox">
66                    <!-- place big text buttons here for selection of vocab or free text search -->
67                    <span py:replace="txtSrchIcon('txtSrchEntry')"/>&nbsp;<span py:replace="helpIcon('fts_help')"/>
68                    <span py:replace="vocSrchIcon('vocSrchEntry')"/>&nbsp;<span py:replace="helpIcon('term_search_help')"/>
69                </div>
70            </div>
71           
72           
73            <!-- Help divs -->
74            <div id="term_search_help" class="hidden" >
75                <div class="helptxt">
76                 <p>Vocab term search provides an autocomplete text field - which searches the vocabulary server
77                 for terms which match the input text - suggesting possible terms to use in a search.</p>
78                 <p>Note, the text field will ONLY accept valid vocab terms and when these are searched on, a
79                 standard text search, similar to that facilitated by the 'Free text search' input, is undertaken.
80                 Note, also, if both vocab term and free text data are input, both are used in the subsequent
81                 text search.</p>
82                 <p>
83                 Terms are only looked up after two characters are entered, to narrow options.  Additionally, it is
84                 possible to use the wildcard, '*' to match multiple letters in a term.</p>
85                </div>
86            </div>
87            <div id="fts_help" class="hidden" >
88                <div class="helptxt">
89                 <p>Free text search looks through the entire database of discovery documents, or it can be limited
90                    to the Author (dataset creator), or Parameter fields</p>
91                    <p> Note that it is possible to get a document returned which apparently does not include the
92                    search term; this can occur when the html view does not reflect the entire document content.
93                    The document pages include links to fuller and more original versions in viewable XML if you
94                    suspect this is occurring and wish to track down obscure matches.</p>
95                </div>
96            </div>
97           
98         
99           
100            <div id="vocSrchEntry" class="hidden">
101           
102                <div class="SearchTxt">
103               
104                <span class="SearchBox">Vocab Search</span>
105               
106                <span py:replace="vocabSearchAutoComplete(showInfo = False)"/>
107           
108           
109                </div>
110               
111           
112            </div>
113           
114            <div id="txtSrchEntry" class="hidden">
115           
116                <div class="SearchTxt">
117                   
118                    <span class="SearchBox">Free Text</span>
119                   
120                    <div class="SearchBox">
121                   
122                    <!--<label for="searchString"><input name="searchString" type="text" id="searchString" size="25" value="$c.searchString"/></label>-->
123                    <label for="searchString"><input name="searchString" type="text" id="searchString" size="45" value="$c.searchString"/></label>
124                    <label for="textTarget">
125                        <select name="textTarget" id="textTarget">
126                        <option value="All" selected="selected">All</option>
127                        <option value="Authors">Authors</option>
128                        <option value="Params">Parameters</option> 
129                    </select>
130                </label>
131                   
132                    </div>
133                </div>
134           
135            </div>
136           
137            <!-- ***********************************************************************************  -->
138           
139                <div class="searchHdr">Temporal coverage (YYYY/MM/DD)&nbsp;<span py:replace="helpIcon('temcov_help')"/></div>
140            <div id="temcov_help" class="hidden">
141                <div class="helptxt">
142                    <p>You can find datasets which have data within a specific time range by using the temporal coverage</p>
143                </div>
144            </div>
145                <script type="text/javascript" src="$g.server/js/date-picker-v4/js/datepicker.js"></script>
146                <link href="$g.server/js/date-picker-v4/css/datepicker.css" rel="stylesheet" type="text/css" />
147            <div class="SearchStartDate">
148                    <span class="SearchTxt">Start date</span>
149                                <input type="text" id="startDateID" name="startDate" class="dateformat-Y-sl-m-sl-d" value="" />
150                        </div>
151           <div class="SearchEndDate">
152                <span class="SearchTxt">End date&nbsp;&nbsp;</span>
153                                <input type="text" id="endDateID" name="endDate" class="dateformat-Y-sl-m-sl-d" value="" />
154           </div>       
155               <div class="searchHdr">Source data providers <span py:replace="helpIcon('datpro_help')"/></div>
156           <div id="datpro_help" class="hidden">
157               <div class="helptxt">
158                        <p>Your search can be limited to NERC data centres alone</p>
159                   </div>
160           </div>
161           <div class="SearchSource">
162               <label for="All"><input type="radio" name="source" value="All" id="All" />All</label>
163               &nbsp;&nbsp;&nbsp;
164               <label for="nercddc"><input type="radio" name="source" value="NERC_DDC" id="nercddc"/>NERC Data Centres only</label>
165           </div><br/>                 
166           <div id="SearchSubmit">
167                        <input name="Search" type="submit" value="Search" />&nbsp;&nbsp;&nbsp;
168                <input name="ClearForm" type="submit" value="Clear form" />
169           </div>
170           <br />
171        </div>
172    </div>
173   
174    <div py:def="searchMapInputs()">
175        <?python
176        #Search Types
177        sps=[['overlaps','overlaps'],['does not overlap','doesNotOverlap'],['is within','within']]
178        ?>
179        <div class="searchHdr">Spatial coverage <span py:replace="helpIcon('spacov_help')"/></div>
180        <table>
181                <tr>
182                <td colspan="3">Look for data which
183                <select name="geoSearchType">${Markup(h.options_for_select(sps,c.geoSearchType))}</select>
184                        the search region.</td>
185                </tr>
186            <tr>
187                    <td colspan="3">
188                <div id="map"></div>
189                <div id="spacov_help" class="hidden">
190                    <div class="helptxt">
191                            <p> The default search is a global search. You can select a limited geospatial region using either the text boxes or the map.
192                             The default is to limit to datasets which overlap with a search region, but you can also aim to find only the datasets
193                             within the search region, or which <b>don't</b> overlap with the search region too. </p>
194                             <p> Or at least that's what should happen. Right now (December 3, 2007) only "overlaps" works!</p>
195                        </div>
196                </div>
197                        </td>
198                    </tr>
199                <tr>
200                    <td align="center">
201                                <div id="dims"/>
202                        </td>
203                </tr>
204        </table>
205    </div>
206   
207</html>
Note: See TracBrowser for help on using the repository browser.