source: TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/advanced.kid @ 3421

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/advanced.kid@3421
Revision 3421, 8.2 KB checked in by cbyrom, 12 years ago (diff)

Implement 'Selections' tab - a shopping cart type function to
allow the storing of different DIF selections together. Functionality
implemented to allow users to select/unselect DIFs from the results
screen and also to remove them, and remove everything, from the
Selections tab. Also, if KML is available for the DIF, icons are
provided to allow the user to open the file - currently valid for
the GoogleEarth? option but not the ConTerra?. Lastly, checkboxes
are provided - together with a 'select all' one - to allow selection
of multiple DIFs when viewing the associated KML. NB, this latter
functionality is not yet implemented.

Line 
1<html py:extends="'ndgPage.kid'" xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#">
2    <!-- provides the main introduction and "advanced" search page -->
3    <head>
4      <replace py:replace="pagehead()"/>
5
6      <script src="$g.server/js/OpenLayers.js"/>
7      <script src="$g.server/js/openlayers-x.js"/>
8      <script src="$g.server/js/OLMapBox.js"/>
9      <script type="text/javascript">
10        var app = null;
11        function initOLMapBox() {
12          app = new OLMapBoxApp('map','discoForm', 440, 10);
13        }
14      </script>
15
16    </head>
17    <body onload="initOLMapBox()">
18    <div id="entirepage">
19        <div py:replace="header1(0)"/>
20        <div py:replace="PageTabs('Search')"/>
21        <div class="outer">
22            <div class="inner">
23                <form action="$c.discoveryURL" name="discoForm" id="discoForm">
24                <div class="float-wrap">
25                    <div id="AdvContent">
26                        <div class="contentWrap">
27                            <p>The NERC Data Discovery Service allows you to find data resources held within the NERC DataGrid (NDG) catalogue. 
28                            The catalogue makes data discovery easier as it connects data held in managed archives and other initiatives.</p>
29                            <p>It is populated with 'discovery' metadata (information about data sets) harvested on a regular basis from the
30                            NERC Data Centres and other providers in the UK and worldwide. </p>
31                            <p>Choose one or more search categories to query the catalogue and return data sets of interest. 
32                            Links to further information and/or data access are provided in the responses.</p>
33                            <div class="searchHdr">Free text search <span py:replace="helpIcon('fts_help')"/></div>
34                            <div id="fts_help" class="hidden" >
35                                <div class="helptxt">
36                                 <p>Free text search looks through the entire database of discovery documents, or it can be limited
37                                    to the Author (dataset creator), or Parameter fields</p>
38                                    <p> Note that it is possible to get a document returned which apparently does not include the
39                                    search term; this can occur when the html view does not reflect the entire document content.
40                                    The document pages include links to fuller and more original versions in viewable XML if you
41                                    suspect this is occurring and wish to track down obscure matches.</p>
42                                </div>
43                            </div>
44                            <div class="SearchBox">
45                                <label for="searchString"><input name="searchString" type="text" id="searchString" size="25" value="$c.searchString"/></label>
46                                <label for="textTarget"><select name="textTarget" id="textTarget">
47                                <option value="All" selected="selected">All</option>
48                                <option value="Authors">Authors</option>
49                                <option value="Params">Parameters</option> </select></label>
50                            </div>
51                           <div class="searchHdr">Temporal coverage (YYYY MM DD)&nbsp;<span py:replace="helpIcon('temcov_help')"/></div>
52                           <div id="temcov_help" class="hidden">
53                            <div class="helptxt">
54                            <p>You can find datasets which have data within a specific time range by using the temporal coverage</p>
55                            </div>
56                           </div>
57                           <div class="SearchStartDate">
58                                <span class="SearchTxt">Start date</span>
59                                <input type="text" value="$c.startDateYear" size="4" name="startDateYear"/>
60                                <input type="text" value="$c.startDateMon" size="2" name="startDateMon"/>
61                                <input type="text" value="$c.startDateDay" size="2" name="startDateDay"/></div>
62                           <div class="SearchEndDate">
63                                <span class="SearchTxt">End date&nbsp;&nbsp;</span>
64                                <input type="text" value="$c.endDateYear" size="4" name="endDateYear"/>
65                                <input type="text" value="$c.endDateMon" size="2" name="endDateMon"/>
66                                <input type="text" value="$c.endDateDay" size="2" name="endDateDay"/></div>     
67                           <div class="searchHdr">Source data providers <span py:replace="helpIcon('datpro_help')"/></div>
68                           <div id="datpro_help" class="hidden">
69                           <div class="helptxt"><p>Your search can be limited to NERC data centres alone</p></div></div>
70                           <div class="SearchSource">
71                               <label for="All"><input type="radio" name="source" value="All" id="All" checked="checked" />All</label>
72                               &nbsp;&nbsp;&nbsp;
73                               <label for="nercddc"><input type="radio" name="source" value="NERC_DDC" id="nercddc" />NERC Data Centres only</label>
74                           </div><br/>                 
75                            <div id="SearchSubmit"><input name="Search" type="submit" value="Search" />&nbsp;&nbsp;&nbsp;
76                            <input name="ClearForm" type="submit" value="Clear form" /></div><br />
77                        </div>
78                    </div> <!-- end centered AdvContent div -->
79                    <div id="innerLeft"></div>
80                    <!-- end left div -->
81                    <div class="clear"></div>
82                </div> <!--float wrap -->
83                <div id="innerRight">
84                    <?python
85                    #Search Types
86                    sps=[['overlaps','overlaps'],['does not overlap','doesNotOverlap'],['is within','within']]
87                    ?>
88                    <div class="searchHdr">Spatial coverage <span py:replace="helpIcon('spacov_help')"/></div>
89                    <table>
90                    <tr><td colspan="3">Look for data which
91                        <select name="geoSearchType">${XML(h.options_for_select(sps,c.geoSearchType))}</select>
92                    the search region.</td></tr>
93                        <tr>
94                        <td colspan="3">
95                        <div id="map"></div>
96                            <div id="spacov_help" class="hidden">
97                                <div class="helptxt">
98                                <p> The default search is a global search. You can select a limited geospatial region using either the text boxes or the map.
99                                 The default is to limit to datasets which overlap with a search region, but you can also aim to find only the datasets
100                                 within the search region, or which <b>don't</b> overlap with the search region too. </p>
101                                 <p> Or at least that's what should happen. Right now (December 3, 2007) only "overlaps" works!</p></div>
102                            </div>
103                    </td></tr>
104                    <tr><td>Northerly Latitude:</td>
105                        <td colspan="2" align="center">
106                                <input size="7" value="${c.bbox[0]}" name="bboxN"/>
107                        </td></tr>
108                    <tr><td>Longitudinal Extent:</td>
109                        <td align="center"><input size="8" value="${c.bbox[1]}" name="bboxW"/></td>
110                        <td align="center"><input size="8" value="${c.bbox[2]}" name="bboxE"/></td></tr>
111                    <tr><td> Southerly Latitude:</td>
112                        <td colspan="2" align="center">
113                            <input size="7" value="${c.bbox[3]}" name="bboxS"/>
114                        </td></tr>
115                        <tr><td colspan="3">(Units: degrees, north and east positive)</td></tr>
116                    </table>
117                </div> <!-- end right div -->
118                <div class="clear"></div>
119                </form>
120            </div> <!-- inner -->
121        </div> <!-- outer -->
122        <div py:replace="footer()"/>
123    </div>
124    </body>
125</html>
Note: See TracBrowser for help on using the repository browser.