diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/models/public_body.rb | 4 | ||||
-rw-r--r-- | app/views/body/_body_listing_single.rhtml | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb index 0524b0395..5fff4a77f 100644 --- a/app/models/public_body.rb +++ b/app/models/public_body.rb @@ -25,7 +25,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: public_body.rb,v 1.134 2009-03-18 01:55:23 francis Exp $ +# $Id: public_body.rb,v 1.135 2009-03-18 05:04:47 francis Exp $ require 'csv' require 'set' @@ -177,7 +177,7 @@ class PublicBody < ActiveRecord::Base end end - acts_as_xapian :texts => [ :name, :short_name ], + acts_as_xapian :texts => [ :name, :short_name, :notes ], :values => [ [ :created_at_numeric, 1, "created_at", :number ] # for sorting ], diff --git a/app/views/body/_body_listing_single.rhtml b/app/views/body/_body_listing_single.rhtml index 13d43641a..d8cd6efbe 100644 --- a/app/views/body/_body_listing_single.rhtml +++ b/app/views/body/_body_listing_single.rhtml @@ -9,6 +9,7 @@ <span class="desc"> <% if not public_body.short_name.empty? %> Also called <%=highlight_words(public_body.short_name, @highlight_words) %>. + <%= highlight_and_excerpt(public_body.notes, @highlight_words, 150) %> <br> <% end %> </span> |