Browse Source

fixes for islandscholar

2.x-ebsco
Paul Pound 11 years ago
parent
commit
b6bb016e6c
  1. 6
      css/roblib_search.base.css
  2. 6
      targets/islandscholar/css/roblib_search_islandscholar.css
  3. 9
      targets/islandscholar/js/islandscholar_results.js
  4. 4
      theme/roblib-search-other-sources.tpl.php

6
css/roblib_search.base.css

@ -12,6 +12,10 @@
.panel-pane {border-top:1px solid #cecfcc; .panel-pane {border-top:1px solid #cecfcc;
border-left:1px solid #cecfcc; border-right:1px solid #cecfcc; line-height: 1.5em; margin:10px; border-bottom:1px solid #cecfcc; border-left:1px solid #cecfcc; border-right:1px solid #cecfcc; line-height: 1.5em; margin:10px; border-bottom:1px solid #cecfcc;
} }
.roblib-search-more {
padding-right:5px;
}
.roblib-search-header { .roblib-search-header {
background:#333; background:#333;
padding-left: 5px; padding-left: 5px;
@ -51,7 +55,7 @@
} }
.roblib-search-other-sources-header { .roblib-search-other-sources-header {
border-left-color:#800000; border-color:#800000;
border-left-width: 10px; border-left-width: 10px;
} }

6
targets/islandscholar/css/roblib_search_islandscholar.css

@ -11,15 +11,17 @@
} }
.islandscholar-hostTitle{ .islandscholar-hostTitle{
font-size: smaller; font-size: smaller;
font-style: italic;
} }
.islandscholar-genre, .islandscholar-volume{ .islandscholar-genre, .islandscholar-volume{
padding-left: 10px; font-size: smaller; padding-left: 10px; font-size: smaller;
} }
.islandscholar-authors { .islandscholar-authors, .islandscholar-source {
padding-left: 10px; padding-left: 10px;
} }
.islandscholar-label { .islandscholar-label {
padding-left: 10px; font-size: smaller; font-weight: bolder; font-size: smaller; font-weight: bolder;
} }

9
targets/islandscholar/js/islandscholar_results.js

@ -28,7 +28,7 @@ Drupal.behaviors.roblib_search_islandscholar = {
<a href="http://www.islandscholar.ca/fedora/repository/' + val.PID +'">' + val.Title_sorted + '</a></div>'); <a href="http://www.islandscholar.ca/fedora/repository/' + val.PID +'">' + val.Title_sorted + '</a></div>');
try { try {
items.push('<div class="islandscholar-authors">'); items.push('<div class="islandscholar-authors">');
jQuery.each(val.author, function(key2, val2){ jQuery.each(val["mods.author"], function(key2, val2){
items.push('<span class="islandscholar-author">' + val2 + ';</span> ') items.push('<span class="islandscholar-author">' + val2 + ';</span> ')
}) })
items.push('</div>') items.push('</div>')
@ -42,9 +42,10 @@ Drupal.behaviors.roblib_search_islandscholar = {
}) })
try{ try{
jQuery.each(val["mods.hostTitle"], function(key2, val2){ if (typeof val["mods.hostTitle"][0] !== 'undefined') {
items.push('<span class="islandscholar-hostTitle">' + val2 + '</span> ') items.push('<span class="islandscholar-hostTitle">' + val["mods.hostTitle"][0] + '</span> ')
}) }
} catch (err){ } catch (err){
} }

4
theme/roblib-search-other-sources.tpl.php

@ -8,7 +8,6 @@
*/ */
?> ?>
<div class ="roblib-search-more" id="roblib-search-other-sources-more"></div>
<div class ="roblib-search-content other-sources" id="roblib-search-content-other-sources"> <div class ="roblib-search-content other-sources" id="roblib-search-content-other-sources">
<div class="roblib-search-row" id="roblib-search-google-scholar"> <div class="roblib-search-row" id="roblib-search-google-scholar">
<a href="http://scholar.google.ca/scholar?q=<?php print ($query); ?>">Google Scholar</a> <a href="http://scholar.google.ca/scholar?q=<?php print ($query); ?>">Google Scholar</a>
@ -16,4 +15,7 @@
<div class="roblib-search-row" id="roblib-search-google-cse-carleton"> <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">Gov Docs Google CSE</a> <a href="http://www.google.com/cse?cx=015121753026627038989:9jvssbo3xgo&ie=UTF-8&q=<?php print ($query); ?>&sa=Search">Gov Docs Google CSE</a>
</div> </div>
<div class="roblib-search-row" id="roblib-search-filmsondemand">
<a href="http://digital.films.com/PortalSearch.aspx?rd=lo&q=<?php print ($query); ?>">Films on Demand</a>
</div>
</div> </div>
Loading…
Cancel
Save