Adjust comment about apostrophes in opensearch code. This is a marker for future...
authorMike Rylander <mrylander@gmail.com>
Thu, 9 Feb 2017 19:45:55 +0000 (14:45 -0500)
committerKathy Lussier <klussier@masslnc.org>
Thu, 9 Feb 2017 20:45:16 +0000 (15:45 -0500)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm

index a599706..e9e3487 100644 (file)
@@ -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";