From 38ca8cc181bb79151803bc6605f843d9d99d7762 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Thu, 9 Feb 2017 14:45:55 -0500 Subject: [PATCH] Adjust comment about apostrophes in opensearch code. This is a marker for future work. Signed-off-by: Mike Rylander Signed-off-by: Kathy Lussier --- Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm index a5997067bb..e9e34879de 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm @@ -1437,9 +1437,10 @@ sub opensearch_feed { my $org_unit = get_ou($org); - # Apostrophes break search and get indexed as spaces anyway - # XXX ^that's kinda a lie ... my $safe_terms = $terms; + + # XXX Apostrophes used to break search, but no longer do. The following + # XXX line breaks phrase searching in OpenSearch, and should be removed. $safe_terms =~ s{'}{ }go; my $query_terms = 'site('.$org_unit->[0]->shortname.") $safe_terms"; -- 2.11.0