From a875363c2507813a4f33028cde504240d2f621d1 Mon Sep 17 00:00:00 2001 From: LBCC Library Date: Thu, 6 Apr 2017 11:47:59 -0700 Subject: [PATCH] correcting known item classification --- app/controllers/catalog_controller.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/catalog_controller.rb b/app/controllers/catalog_controller.rb index de6b259..10ccd64 100644 --- a/app/controllers/catalog_controller.rb +++ b/app/controllers/catalog_controller.rb @@ -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]