source: MILK/trunk/milk_server/milk_server/templates/browse/short_results.kid @ 4979

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/MILK/trunk/milk_server/milk_server/templates/browse/short_results.kid@4979
Revision 4979, 3.2 KB checked in by cbyrom, 11 years ago (diff)

Update discovery client to cope with atom docs properly - interpreting
their ids correctly to create the necessary browse URL.

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   
11    <div id="entirepage">
12        <div py:replace="header()"/>
13        <div py:replace="PageTabs('Results')"/>
14        <div py:replace="searchOneLine(targets=c.searchTarget)"/>
15        <div id="results">
16            <div id="context">
17                ${c.state.hits} results for ${c.state.searchString} (${XML(c.state.constraints)})</div>
18            <div id="SemanticSearchBox"/>
19           
20            <?python
21            n,p=c.state.getNext()
22            if p!=[]:purl=c.state.geturl(offset=p[0],stride=p[1])
23            if n!=[]:nurl=c.state.geturl(offset=n[0],stride=n[1])
24            upper=c.state.offset+c.state.stride-1
25            ?>
26            <div class="resultsBar">
27                 <div class="resultsLeft">
28                    ${XML(h.link_to_remote("Semantic Search",dict(update="SemanticSearchBox",
29                            url='%s?%s'%(h.url_for(action='semantic'),c.querystring))))}
30                    <span py:replace="helpIcon('semser_help')"/>
31                 </div>
32                 <div>
33                 <a href="${c.state.constrainedurl}"> Refine Search</a><span py:replace="helpIcon('refser_help')"/>
34                | Found ${c.state.hits} | Showing ${c.state.offset}-$upper
35                  <span py:if="p!=[]"> | <a href="$purl"> Previous ${p[1]}</a> </span>
36                  <span py:if="n!=[]"> | <a href="$nurl"> Next ${n[1]}</a></span> | </div>
37                <div id="semser_help" class="hidden">
38                    <div class="helptxt"><p>
39                    The semantic search option allows you to see how many hits a search using your current parameters would return if you
40                    used a slightly different vocabulary in your search term.
41                    </p></div>
42                </div>
43                <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 width="100%">
51                    <thead><tr><th rowspan="2">Name</th><th colspan="1">Type</th></tr>
52                    </thead>
53                    <tbody>
54                        <tr py:for="item in c.results" py:replace="resultsrow(item)"/>
55                    </tbody>
56                </table>
57            </div>
58            <div class="resultsBar">
59                <a href="${c.state.constrainedurl}"> 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.