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

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

Changed the way ndgPage.kid:pagehead works to make it easier to include
<head> children on each page.

Visualise is getting closer :-)

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