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

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

Changing to the new tab layout ... (incomplete)

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        <!--<?python
8            tlist=['Search Page','Results','Selections','WMS','WCS']
9            status=['hidden','current','hidden','hidden','hidden']
10        ?>
11        <div py:replace="PageTabs(tlist,status)"/>-->
12        <div py:replace="PageTabs('Results')"/>
13        <div py:replace="searchOneLine()"/>
14        <!--! The if on the call to the left panel needs to be here for subtle css reasons -->
15        <!-- <div py:if="'ndgSec' in session" py:replace="leftpanel()" id="Left"/>-->
16        <?python
17        id="contents"
18        if "ndgSec" in session: id="contentsRight"
19        ?>
20        <div id="results">
21            <div id="context">
22                ${c.state.hits} results for ${c.state.searchString} (${XML(c.state.constraints)})</div>
23            <div id="SemanticSearchBox"/>
24           
25            <?python
26            n,p=c.state.getNext()
27            if p!=[]:purl=c.state.geturl(offset=p[0],stride=p[1])
28            if n!=[]:nurl=c.state.geturl(offset=n[0],stride=n[1])
29            upper=c.state.offset+c.state.stride-1
30            ?>
31            <div class="resultsBar">
32                 <div class="resultsLeft">
33                    ${XML(h.link_to_remote("Semantic Search",dict(update="SemanticSearchBox",
34                            url='%s?%s'%(h.url_for(action='semantic'),c.querystring))))}
35                    <span py:replace="helpIcon('semser_help')"/>
36                 </div>
37                 <div>
38                 <a href="${c.state.constrainedurl}"> Refine Search</a><span py:replace="helpIcon('refser_help')"/>
39                | Found ${c.state.hits} | Showing ${c.state.offset}-$upper
40                  <span py:if="p!=[]"> | <a href="$purl"> Previous ${p[1]}</a> </span>
41                  <span py:if="n!=[]"> | <a href="$nurl"> Next ${n[1]}</a></span> | </div>
42                <div id="semser_help" class="hidden">
43                    <div class="helptxt"><p>
44                    The semantic search option allows you to see how many hits a search using your current parameters would return if you
45                    used a slightly different vocabulary in your search term.
46                    </p></div>
47                </div>
48                <div id="refser_help" class="hidden">
49                    <div class="helptxt"><p>
50                    The refined search option allows you to constrain your search by returning you to the advanced search page, but retaining your current search parameters
51                    </p></div>
52                </div>
53            </div>
54            <div id="resultsTab">
55                <table>
56                    <thead><tr><th rowspan="2">Dataset description</th><th colspan="2">Temporal&nbsp;coverage</th>
57                        <th rowspan="2">Spatial coverage</th></tr>
58                    <tr><th> Start date </th><th> End date </th></tr></thead>
59                    <tbody>
60                        <span py:for="i,d in enumerate(c.difs)" py:replace="result(i,d)"/>
61                    </tbody>
62                </table>
63            </div>
64            <div class="resultsBar">
65                <a href="${c.state.constrainedurl}"> Refine search</a>
66                | Found ${c.state.hits} | Showing ${c.state.offset}-$upper
67                  <span py:if="p!=[]"> | <a href="$purl"> Previous ${p[1]}</a> </span>
68                  <span py:if="n!=[]"> | <a href="$nurl"> Next ${n[1]}</a></span> |
69            </div>
70        </div>
71        <div py:replace="footer()"/>
72    </div>
73    </body>
74</html>
Note: See TracBrowser for help on using the repository browser.