|
|
|
@ -459,7 +459,10 @@ class EBSCOAPI {
|
|
|
|
|
$type = isset($search['index']) && !empty($search['index']) ? $search['index'] : 'AllFields'; |
|
|
|
|
|
|
|
|
|
// Escape some characters from lookfor term. |
|
|
|
|
$term = str_replace(array(',', ':', '(', ')'), array('\,', '\:', '\(', '\)'), $lookfor); |
|
|
|
|
//$term = str_replace(array(',', ':', '(', ')'), array('\,', '\:', '\(', '\)'), $lookfor); |
|
|
|
|
// The below version of the above matches the drupal 7 searches but the above may give less but better results |
|
|
|
|
// and be worth testing down the road. |
|
|
|
|
$term = str_replace(array(',', ':'), array('\,', '\:'), $lookfor); |
|
|
|
|
// Replace multiple consecutive empty spaces with one empty space. |
|
|
|
|
$term = preg_replace("/\s+/", ' ', $term); |
|
|
|
|
|
|
|
|
|