source: MILK/trunk/milk_server/milk_server/templates/browse/discovery_search.html @ 5261

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

Lots of tidy ups to MILK codebase:

Implement new input search filters - with javascript datapickers to
pick the date ranges + add the vocab search ahead text input and
combine this with the text input.

Refactor discovery controller to tidy it up significantly - making more
structured and improving error handling and logging. Improve
templates for the search filter, splitting into multiple files to
organise better.

Various tidying up and tweaks of other codebase - e.g. standardising
use of global variables across app.

Line 
1<html xmlns="http://www.w3.org/1999/xhtml"
2        xmlns:py="http://genshi.edgewall.org/" 
3        xmlns:xi="http://www.w3.org/2001/XInclude">
4        <xi:include href="../layout.html" />
5        <xi:include href="../ndgPage.html" />
6        <xi:include href="browse_functions.html" />
7        <!-- provides the main introduction and "advanced" search page -->
8        <head>
9        <title py:content="c.title">title</title>
10                <replace py:replace="pagehead()"/>
11                <script src="$g.server/js/wmsc.js"></script>
12                <script src="$g.server/js/prototype.js"></script>
13                <script src="http://www.openlayers.org/api/OpenLayers.js"></script>
14        <script src="$g.server/js/openlayers-x.js"/>
15        <script src="$g.server/js/dimensionControl.js"/>
16        <script src="$g.server/js/mapControl.js"/>
17                <script src="$g.server/js/olmapbox.js" type="text/javascript" charset="utf-8" />
18        <script type="text/javascript">
19        var app = null;
20        function initOLMapBox() {
21          var controlMarkup = '<tr>\
22                <td>Northerly Latitude:</td>\
23        <td colspan="2" align="center">\
24                        <input size="7" value="${c.bbox[0]}" name="bboxN"/>\
25                </td>\
26                </tr>\
27                <tr>\
28                        <td>Longitudinal Extent:</td>\
29                <td align="center"><input size="8" value="${c.bbox[1]}" name="bboxW"/></td>\
30                <td align="center"><input size="8" value="${c.bbox[2]}" name="bboxE"/></td></tr>\
31        <tr><td> Southerly Latitude:</td>\
32        <td colspan="2" align="center">\
33                <input size="7" value="${c.bbox[3]}" name="bboxS"/></td></tr>\
34        <tr><td colspan="3">(Units: degrees, north and east positive)</td></tr>';
35       
36          var coordControl = new WMSC.DimControl('dims', 'discoForm', controlMarkup);
37          app = new WMSC.VisApp('map', 10, 440, false);
38          app.addDimensionControl(coordControl);
39        }
40      </script>
41    </head>
42    <body onload="initOLMapBox()">
43    <div id="entirepage">
44        <div py:replace="displayErrors()"/>
45                <h3>$c.title</h3>
46        <div class="outer">
47            <div class="inner">
48                <form action="$g.discoveryURL" name="discoForm" id="discoForm">
49                <div class="float-wrap">
50                    <div id="AdvContent"> 
51                                <div py:replace="searchTextInputs()"/>
52                    </div>
53                </div>
54                <div id="innerRight">
55                        <div py:replace="searchMapInputs()"/>
56                 </div>
57                <div class="clear"></div>
58                </form>
59            </div>
60        </div>
61    </div>
62    </body>
63</html>
Note: See TracBrowser for help on using the repository browser.