Browse Source

fixed string replace in bestbet query

2.x-ebsco
Paul Pound 10 years ago
parent
commit
067e8f1d36
  1. 2
      targets/solr_site/roblib_search_solr_site.module

2
targets/solr_site/roblib_search_solr_site.module

@ -259,7 +259,7 @@ function roblib_search_solr_site_results($query) {
* The solr search string. * The solr search string.
*/ */
function roblib_search_solr_site_bestbet($query) { function roblib_search_solr_site_bestbet($query) {
$query = preg_replace('/\'\"/', '', $query); $query = str_replace('"', '', $query);
$json = roblib_search_solr_site_get_results("sort_label:\"$query\"", 'bundle:bestbet'); $json = roblib_search_solr_site_get_results("sort_label:\"$query\"", 'bundle:bestbet');
$json = roblib_search_solr_site_add_url($json); $json = roblib_search_solr_site_add_url($json);
print $json; print $json;

Loading…
Cancel
Save