Browse Source

updated misc sources block

2.x-ebsco
Paul Pound 8 years ago
parent
commit
8b96adf641
  1. 13
      targets/passthru_results/theme/roblib-search-passthru.tpl.php
  2. 3
      targets/passthru_results/theme/theme.inc

13
targets/passthru_results/theme/roblib-search-passthru.tpl.php

@ -9,7 +9,16 @@
<div class ="roblib-search-content " id="roblib-search-content-passthru">
<img src="<?php print (empty($spinner_path) ? ' ' : $spinner_path); ?>"/>
</div>
<div class ="roblib-passthru-search" id="roblib-search-passthru-islandscholar-more"></div>
<div class ="roblib-passthru-search" id="roblib-search-passthru-evergreen-more"></div>
<div class ="roblib-search-row" id="roblib-search-passthru-islandscholar-more"></div>
<div class ="roblib-search-row" id="roblib-search-passthru-evergreen-more"></div>
<div class="roblib-search-row" id="roblib-search-google-scholar">
<a href="http://scholar.google.ca/scholar?q=<?php print ($query); ?>">Google Scholar</a>
</div>
<div class="roblib-search-row" id="roblib-search-google-cse-carleton">
<a href="http://www.google.com/cse?cx=015121753026627038989:9jvssbo3xgo&ie=UTF-8&q=<?php print ($query); ?>&sa=Search">Canadian Government Sites</a>
</div>
<div class="roblib-search-row" id="roblib-search-filmsondemand">
<a href="http://proxy.library.upei.ca/login?url=http://digital.films.com/portalplaylists.aspx?aid=14978&rd=lo&q=<?php print ($query); ?>">Films on Demand</a>
</div>

3
targets/passthru_results/theme/theme.inc

@ -12,9 +12,10 @@ function roblib_search_passthru_preprocess_roblib_search_passthru(&$variables) {
$query = $_GET['roblib_query'];
}
else {
return '';
$query = '';
}
}
$variables['query'] = urlencode($query);
$spinner_path = $base_url . '/' . drupal_get_path('module', 'roblib_search') . '/img/' . 'spinner.gif';
$variables['spinner_path'] = $spinner_path;
$scholar_search_url = $base_url . '/roblib_search/passthru/scholar/ajax/' . urlencode($query);

Loading…
Cancel
Save