source: TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/results.kid @ 3543

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

Fix width of select column to avoid it changing size when doing select->unselect for first time.

Line 
1<html py:extends="'ndgPage.kid','meta.kid'" xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#">
2
3    <head>
4    <replace py:replace="pagehead()"/>
5    </head>
6    <body>
7    <div id="entirepage">
8        <div py:replace="header()"/>
9        <div py:replace="PageTabs('Results')"/>
10        <div py:replace="searchOneLine()"/>
11        <div id="results">
12            <div id="context">
13                ${c.state.hits} results for "${c.state.searchString}" (${XML(c.state.constraints)})</div>
14            <div id="SemanticSearchBox"><div id="SemanticSearchResults">
15                <div py:if="c.state.searchString!=''">
16                Not found what you are looking for? Try ${XML(h.link_to_remote("alternative searches",dict(update="SemanticSearchBox",
17                        url='%s?%s'%(h.url_for(action='semantic'),c.querystring))))}.
18                </div></div>
19            </div>
20            <?python
21            n,p=c.state.getNext()
22            if p!=[]:purl=c.state.geturl(offset=p[0],stride=p[1])
23            if n!=[]:nurl=c.state.geturl(offset=n[0],stride=n[1])
24            upper=c.state.offset+c.state.stride-1
25            ?>
26            <div class="resultsBar">
27                <div>
28                    <a href="${c.state.constrainedurl}"> Refine search</a><span py:replace="helpIcon('refser_help')"/>
29                    | Found ${c.state.hits} | Showing ${c.state.offset}-$upper
30                    <span py:if="p!=[]"> | <a href="$purl"> Previous ${p[1]}</a> </span>
31                    <span py:if="n!=[]"> | <a href="$nurl"> Next ${n[1]}</a></span> |
32                </div><div id="refser_help" class="hidden">
33                    <div class="helptxt"><p>
34                    The refined search option allows you to constrain your search by returning you to the advanced search page, but retaining your current search parameters
35                    </p></div>
36                </div>
37            </div>
38            <div id="resultsTab">
39                <table>
40                    <thead><tr><th rowspan="2">Dataset description</th><th colspan="2">Temporal&nbsp;coverage</th>
41                        <th rowspan="2">Spatial coverage</th>
42                        <th rowspan="2" width="60px"/>
43                        </tr>
44                    <tr><th> Start date </th>
45                    <th> End date </th>
46                    </tr>
47                    </thead>
48                    <tbody>
49                        <span py:for="i,d in enumerate(c.difs)" py:replace="result(i,d)"/>
50                    </tbody>
51                </table>
52            </div>
53            <div class="resultsBar">
54                <a href="${c.state.constrainedurl}"> Refine search</a>
55                | Found ${c.state.hits} | Showing ${c.state.offset}-$upper
56                  <span py:if="p!=[]"> | <a href="$purl"> Previous ${p[1]}</a> </span>
57                  <span py:if="n!=[]"> | <a href="$nurl"> Next ${n[1]}</a></span> |
58            </div>
59        </div>
60        <div py:replace="footer()"/>
61    </div>
62    </body>
63</html>
Note: See TracBrowser for help on using the repository browser.