source: TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/short_results.kid @ 3421

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

Implement 'Selections' tab - a shopping cart type function to
allow the storing of different DIF selections together. Functionality
implemented to allow users to select/unselect DIFs from the results
screen and also to remove them, and remove everything, from the
Selections tab. Also, if KML is available for the DIF, icons are
provided to allow the user to open the file - currently valid for
the GoogleEarth? option but not the ConTerra?. Lastly, checkboxes
are provided - together with a 'select all' one - to allow selection
of multiple DIFs when viewing the associated KML. NB, this latter
functionality is not yet implemented.

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    <tr py:def="resultsrow(item)" class="shortResult">
8        <td><a href="${item.link}">${item.name}</a></td><td>${item.type}</td>
9    </tr>
10    <div id="entirepage">
11        <div py:replace="header()"/>
12        <div py:replace="PageTabs(tlist,status)"/>-->
13        <div py:replace="PageTabs('Results')"/>
14        <div py:replace="searchOneLine(targets=c.searchTarget)"/>
15        <!--! The if on the call to the left panel needs to be here for subtle css reasons -->
16        <!-- <div py:if="'ndgSec' in session" py:replace="leftpanel()" id="Left"/>-->
17        <?python
18        id="contents"
19        if "ndgSec" in session: id="contentsRight"
20        ?>
21        <div id="results">
22            <div id="context">
23                ${c.state.hits} results for ${c.state.searchString} (${XML(c.state.constraints)})</div>
24            <div id="SemanticSearchBox"/>
25           
26            <?python
27            n,p=c.state.getNext()
28            if p!=[]:purl=c.state.geturl(offset=p[0],stride=p[1])
29            if n!=[]:nurl=c.state.geturl(offset=n[0],stride=n[1])
30            upper=c.state.offset+c.state.stride-1
31            ?>
32            <div class="resultsBar">
33                 <div class="resultsLeft">
34                    ${XML(h.link_to_remote("Semantic Search",dict(update="SemanticSearchBox",
35                            url='%s?%s'%(h.url_for(action='semantic'),c.querystring))))}
36                    <span py:replace="helpIcon('semser_help')"/>
37                 </div>
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> | </div>
43                <div id="semser_help" class="hidden">
44                    <div class="helptxt"><p>
45                    The semantic search option allows you to see how many hits a search using your current parameters would return if you
46                    used a slightly different vocabulary in your search term.
47                    </p></div>
48                </div>
49                <div id="refser_help" class="hidden">
50                    <div class="helptxt"><p>
51                    The refined search option allows you to constrain your search by returning you to the advanced search page, but retaining your current search parameters
52                    </p></div>
53                </div>
54            </div>
55            <div id="resultsTab">
56                <table width="100%">
57                    <thead><tr><th rowspan="2">Name</th><th colspan="1">Type</th></tr>
58                    </thead>
59                    <tbody>
60                        <tr py:for="item in c.results" py:replace="resultsrow(item)"/>
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.