aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/general/search.rhtml8
-rw-r--r--app/views/request/show.rhtml2
2 files changed, 5 insertions, 5 deletions
diff --git a/app/views/general/search.rhtml b/app/views/general/search.rhtml
index a919bff45..929fa2871 100644
--- a/app/views/general/search.rhtml
+++ b/app/views/general/search.rhtml
@@ -20,14 +20,14 @@
<% end %>
<% if not @search_results.nil? %>
- <%=link_to_unless @sortby.nil?, "Show most relevant results first", { :sortby => nil } %>
+ <%=link_to_unless @sortby.nil?, "Show most relevant results first", search_url(@query, nil) %>
|
- <%=link_to_unless @sortby == 'newest', "Newest results first", { :sortby => "newest" } %>
+ <%=link_to_unless @sortby == 'newest', "Newest results first", search_url(@query, 'newest') %>
<h1><%=@title%></h1>
<% if @search_spelling %>
- <p id="did_you_mean">Did you mean: <%= link_to @search_spelling, search_url(:query => @search_spelling) %></p>
+ <p id="did_you_mean">Did you mean: <%= link_to @search_spelling, search_url(@search_spelling, @sortby) %></p>
<% end %>
<% if @search_results.empty? %>
@@ -59,7 +59,7 @@
<li><strong>requested_from:home_office</strong> to restrict to requests from the <%= link_to "Home Office", show_public_body_url(:url_name => 'home_office') %>, typing the name as in the URL.
<li><strong>requested_by:julian_todd</strong> to restrict to requests made by <%= link_to "Julian Todd", show_user_url(:url_name => 'julian_todd') %>, typing the name as in the URL.
<li><strong>request:</strong> to restrict to a specific request, typing the title as in the URL.
- <li>Read about <a href="http://lucene.apache.org/java/docs/queryparsersyntax.html">advanced search operators</a>, such as fuzziness and proximity.
+ <li>Read about <a href="http://www.xapian.org/docs/queryparser.html">advanced search operators</a>, such as proximity and wildcards.
</ul>
<table class="status_table">
diff --git a/app/views/request/show.rhtml b/app/views/request/show.rhtml
index ae9f2bda2..a13a129b5 100644
--- a/app/views/request/show.rhtml
+++ b/app/views/request/show.rhtml
@@ -51,7 +51,7 @@
<!-- <h2>Some other requests made by <%= user_link(@info_request.user) %> to <%= public_body_link(@info_request.public_body) %></h2> -->
<%= render :partial => 'sidebar_request_listing', :locals => { :info_requests => @info_requests_same_user_same_body } %>
<% if @info_requests_same_user_same_body_more %>
- <p><%= link_to "More such requests", search_url(:query => "variety:sent requested_from:" + @info_request.public_body.url_name + " requested_by:" + @info_request.user.url_name + " -request:" + @info_request.url_title, :sortby => "newest") %></p>
+ <p><%= link_to "More such requests", search_url("variety:sent requested_from:" + @info_request.public_body.url_name + " requested_by:" + @info_request.user.url_name + " -request:" + @info_request.url_title, "newest") %></p>
<% end %>
<% end %>