5 <title>Results for query ${query}</title>
6 <script type="text/javascript" src="${dataUrl}jquery.min.js"></script>
7 <script type="text/javascript" src="${dataUrl}jquery.tablesorter.min.js"></script>
8 <link rel="stylesheet" href="${dataUrl}search.css" type="text/css" media="screen, print" />
9 <link rel="stylesheet" href="${dataUrl}blue/style.css" type="text/css" media="screen, print" />
12 <body id="index" class="home">
14 <!-- Initialize search input with proper value -->
15 <script type="text/javascript">
16 function go( field ) {
17 window.navigate(window.location.href.replace(window.location.search, "?search=" + encodeURIComponent(field.value)));
20 function queryString( key ) {
21 var re = new RegExp( "[?&]" + key + "=([^&$]*)", "i" );
22 var offset = location.search.search( re );
23 if ( offset == -1 ) return null;
27 $(document).ready(function() {
28 $("#search").value = decodeURIComponent(queryString('search'));
29 if (!("autofocus" in document.createElement("input"))) {
34 //$(document).ready(function() { $("#results").tablesorter(); } );
38 <input autofocus size="70" id="search" type="text" name="search" value="${query}" onChange="go(this)" />
41 <span class="resultCountText">
42 <#if resultCount = maxResults>
43 ${resultCount} or more results found.
46 ${resultCount} result found.
48 ${resultCount} results found.
54 <#list results as result>
55 <li><div class="result">
56 <a class="emph" href="resource:${result.resource.resource}" <#if result.resource.uri??>title="${result.resource.uri}"</#if>>${result.resource.name}</a>
57 <#if result.principalTypes??>
59 <#list result.principalTypes as type>
60 <a class="small" href="resource:${type.resource}" <#if type.uri??>title="${type.uri}"</#if>>${type.name}</a>
65 is a part of <a class="small" href="resource:${result.parent.resource}" <#if result.parent.uri??>title="${result.parent.uri}"</#if>>${result.parent.name}</a>