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

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

Fixes for ticket:818

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 py:replace="pagehead(0)"/>
4    <body>
5    <div id="entirepage">
6        <div py:replace="header()"/>
7        <div py:replace="searchOneLine()"/>
8        <!--! The if on the call to the left panel needs to be here for subtle css reasons -->
9        <div py:if="'ndgSec' in session" py:replace="leftpanel()" id="Left"/>
10        <?python
11        id="contents"
12        if "ndgSec" in session: id="contentsRight"
13        ?>
14        <div id="results">
15            <div id="context">
16                ${c.state.hits} results for ${c.state.searchString} (${XML(c.state.constraints)})</div>
17            <div py:if="c.state.alternatives is not None" id="synonyms">
18                You could also try:
19                <span py:for="i in c.state.alternatives" class="syno">$i[0] [$i[1] hits]</span>
20            </div>
21           
22            <?python
23            n,p=c.state.getNext()
24            if p!=[]:purl=c.state.geturl(offset=p[0],stride=p[1])
25            if n!=[]:nurl=c.state.geturl(offset=n[0],stride=n[1])
26            upper=c.state.offset+c.state.stride-1
27            ?>
28            <div class="resultsBar">
29                <a href="${c.state.constrainedurl}"> Refine search</a>
30                | Found ${c.state.hits} | Showing ${c.state.offset}-$upper
31                  <span py:if="p!=[]"> | <a href="$purl"> Previous ${p[1]}</a> </span>
32                  <span py:if="n!=[]"> | <a href="$nurl"> Next ${n[1]}</a></span> |
33            </div>
34            <div id="resultsTab">
35                <table>
36                    <thead><tr><th rowspan="2">Dataset description</th><th colspan="2">Temporal coverage</th>
37                        <th rowspan="2">Spatial coverage</th></tr>
38                    <tr><th> Start date </th><th> End date </th></tr></thead>
39                    <tbody>
40                        <span py:for="i,d in enumerate(c.difs)" py:replace="result(i,d)"/>
41                    </tbody>
42                </table>
43            </div>
44            <div class="resultsBar">
45                <a href="${g.discoveryURL}?constraints=abc"> Refine search</a>
46                | Found ${c.state.hits} | Showing ${c.state.offset}-$upper
47                  <span py:if="p!=[]"> | <a href="$purl"> Previous ${p[1]}</a> </span>
48                  <span py:if="n!=[]"> | <a href="$nurl"> Next ${n[1]}</a></span> |
49            </div>
50        </div>
51        <div py:replace="footer()"/>
52    </div>
53    </body>
54</html>
Note: See TracBrowser for help on using the repository browser.