Browse Source

fix the problem: If query sting has a space, cufts will only search the first word without per_page number

2.x-ebsco
yqjiang 12 years ago
parent
commit
82395c4fe1
  1. 2
      targets/cufts/roblib_search_cufts.module

2
targets/cufts/roblib_search_cufts.module

@ -171,6 +171,8 @@ function roblib_search_cufts_get_results($query = NULL) {
return '';
}
}
$query = str_replace(' ', '%20', $query);
//http://cufts2.lib.sfu.ca/CJDB/PCU/browse/show?browse_field=title&search_type=startswith&format=json&search_terms=dog&submit=Search
$url = variable_get('roblib_search_cufts_url', 'http://cufts2.lib.sfu.ca/CJDB/PCU/browse/show?');
$url_suffix = variable_get('roblib_search_cufts_search_suffix', 'browse_field=title&search_type=startswith&format=json&search_terms=');

Loading…
Cancel
Save