[% # This is just an example -- you would want your own "page" for the wrapper %] [% WRAPPER page %] [% PROCESS swish_header %] [% title = PROCESS title %] [% IF ! search.results %] [% PROCESS show_message %] [% PROCESS search_form %] [% ELSE %] [% PROCESS search_form %] [% PROCESS nav_bar %] [% PROCESS results_list %] [% END %] [% PROCESS swish_footer %] [% END %] [% # This is just an example -- you would want your own "page" to wrap around "swish" %] [% BLOCK page %] [% title || "Welcome" %] [% content %] [% END %] [% BLOCK title %] [% IF ! search.results %] [% search.errstr || search.config('title') || "Search page" %] [% ELSE %] [% search.navigation('hits') %] Results for [[% search.query_simple | html %]] [% END %] [% END %] [% BLOCK swish_header %]
Swish-e home page [% search.config('title') || "Search page" %]
[% END %] [% BLOCK swish_footer %]
Powered by Swish-e swish-e.org [% IF search.MOD_PERL %]
Response brought to you by mod_perl [% END %]

Valid HTML 4.01!

[% END %] [% BLOCK show_message %] [% IF search.errstr %] [% search.errstr | html %] [% END %] [% END %] [% BLOCK search_form %] [% CGI.start_form( '-action' => CGI.script_name, '-method' => 'GET' ) %] [% CGI.textfield( { name => 'query', size => 40, maxlength => 200, } ) %] [% CGI.submit('submit','Search!') %]
[% search.get_meta_name_limits %] [% search.get_sort_select_list %] [% search.get_index_select_list %] [% search.get_limit_select %] [% CGI.end_form.join('') %] [% END %] [% BLOCK nav_bar %] [% search.stopwords_removed %] [% IF search.navigation('pages') %] [% END %]
 Results for [% search.query_simple | html %]   [% search.navigation('from') %] to [% search.navigation('to') %] of [% search.navigation('hits') %] results. Run time: [% search.navigation('run_time') %] | Search time: [% search.navigation('search_time') %]    
 Page: [% search.navigation('pages') %] [% IF search.navigation('prev_count') %] Previous [% search.navigation('prev_count') %] [% END %] [% IF search.navigation('next_count') %] Next [% search.navigation('next_count') %] [% END %]
[% END %] [% BLOCK results_list %] [% FOREACH item = search.results %]
[% item.swishreccount %] [% ( item.swishtitle || item.swishdocpath ) %] -- rank: [% item.swishrank %]
[% item.swishdescription %]
[% item.swishdocpath %] - [% item.swishdocsize %] bytes - [% item.swishlastmodified %]
[% END %] [% END %]