Permalink
Browse files

CODEBASE-349: index.atom.builder crashes; converting index.atom.build…

…er to use paginate_params and rsolr methods, rather than rsolr-ext's .docs
  • Loading branch information...
1 parent baca5e7 commit d78f26b1191830ce005724c87165064884767754 Chris Beer committed Jul 11, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/views/catalog/index.atom.builder
View
4 app/views/catalog/index.atom.builder
@@ -37,8 +37,8 @@ xml.feed("xmlns" => "http://www.w3.org/2005/Atom",
"href" => url_for(:controller=>'catalog',:action => 'opensearch', :format => 'xml', :only_path => false))
# opensearch response elements
- xml.opensearch :totalResults, @response.docs.total.to_s
- xml.opensearch :startIndex, @response.docs.start.to_s
+ xml.opensearch :totalResults, @response.total.to_s
+ xml.opensearch :startIndex, @response.start.to_s
xml.opensearch :itemsPerPage, page_info.limit_value
xml.opensearch :Query, :role => "request", :searchTerms => params[:q], :startPage => page_info.current_page

0 comments on commit d78f26b

Please sign in to comment.