|
|
@ -167,8 +167,8 @@ function roblib_search_evergreen_get_results($query) { |
|
|
|
$url = variable_get('roblib_search_evergreen_url', 'http://137.149.200.52'); |
|
|
|
$url = variable_get('roblib_search_evergreen_url', 'http://137.149.200.52'); |
|
|
|
$url_suffix = variable_get('roblib_search_evergreen_search_suffix', '/opac/extras/sru?version=1.1&operation=searchRetrieve&query='); |
|
|
|
$url_suffix = variable_get('roblib_search_evergreen_search_suffix', '/opac/extras/sru?version=1.1&operation=searchRetrieve&query='); |
|
|
|
$number_of_records = variable_get('roblib_search_evergreen_num_results', '5'); |
|
|
|
$number_of_records = variable_get('roblib_search_evergreen_num_results', '5'); |
|
|
|
$query = str_replace(' ', ' AND ',$query); //hack until the library decides if we want phrase or individual words |
|
|
|
$query = str_replace(' ', '%20AND%20',$query); //hack until the library decides if we want phrase or individual words |
|
|
|
$query = urlencode($query . ' AND "prince edward island"'); |
|
|
|
$query .= '%20AND%20%22prince%20edward%20island%22'; |
|
|
|
$search_url = $url . $url_suffix . $query . '&maximumRecords=' . $number_of_records; |
|
|
|
$search_url = $url . $url_suffix . $query . '&maximumRecords=' . $number_of_records; |
|
|
|
$catalog_base_search_url = variable_get('roblib_search_evergreen_catalog_base_search_url', 'http://islandpines.roblib.upei.ca/opac/en-CA/skin/roblib/xml/rresult.xml?rt=keyword&tp=keyword&t='); |
|
|
|
$catalog_base_search_url = variable_get('roblib_search_evergreen_catalog_base_search_url', 'http://islandpines.roblib.upei.ca/opac/en-CA/skin/roblib/xml/rresult.xml?rt=keyword&tp=keyword&t='); |
|
|
|
drupal_add_js(array('roblib_search_evergreen' => array('catalog_url' => $catalog_base_search_url)), array('type' => 'setting')); |
|
|
|
drupal_add_js(array('roblib_search_evergreen' => array('catalog_url' => $catalog_base_search_url)), array('type' => 'setting')); |
|
|
|