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

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

Semantic Search support in discovery
(Hopefully this is all the relevant files, my sandbox is in a bit of a
state)

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