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

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

Adding help to results page. Adding initial support for semantic search.

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