Skip to content

Commit

Permalink
correcting known item classification
Browse files Browse the repository at this point in the history
  • Loading branch information
LBCC Library committed Apr 6, 2017
1 parent 76a8174 commit a875363
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,10 @@ def track_search
sf.query_string = params[:q]
unless params[:q].blank?
c = KnownItemSearchClassifier::Classifier.new
sf.known_item = (:known == (c.is_known_item_search? params[:q]))
begin
sf.known_item = (:known == (c.is_known_item_search? params[:q]))
rescue Encoding::InvalidByteSequenceError
end
end
end
if params[:f]
Expand Down

0 comments on commit a875363

Please sign in to comment.