Lines 551-558
Link Here
|
551 |
[% IF ( OpacStarRatings == 'all' || Koha.Preference('Babeltheque') ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.rating.js"></script>[% END %] |
551 |
[% IF ( OpacStarRatings == 'all' || Koha.Preference('Babeltheque') ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.rating.js"></script>[% END %] |
552 |
[% IF ( OverDriveEnabled ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/js/overdrive.js"></script>[% END %] |
552 |
[% IF ( OverDriveEnabled ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/js/overdrive.js"></script>[% END %] |
553 |
<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
553 |
<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
554 |
[% IF ( OpacHighlightedWords ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.highlight-3.js"></script> |
554 |
[% IF ( OpacHighlightedWords ) %][% INCLUDE 'opac-highlight.inc' %][% END %] |
555 |
[% END %]<script type="text/javascript"> |
555 |
<script type="text/javascript"> |
556 |
//<![CDATA[ |
556 |
//<![CDATA[ |
557 |
[% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %] |
557 |
[% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %] |
558 |
function holdMultiple() { |
558 |
function holdMultiple() { |
Lines 637-664
function enableCheckboxActions(){
Link Here
|
637 |
} |
637 |
} |
638 |
} |
638 |
} |
639 |
|
639 |
|
640 |
[% IF ( OpacHighlightedWords ) %] |
|
|
641 |
var q_array = new Array(); // holds search terms if available |
642 |
|
643 |
function highlightOff() { |
644 |
$("td").removeHighlight(); |
645 |
$(".highlight_toggle").toggle(); |
646 |
} |
647 |
function highlightOn() { |
648 |
var x; |
649 |
for (x in q_array) { |
650 |
q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1"); |
651 |
q_array[x] = q_array[x].toLowerCase(); |
652 |
var myStopwords = "[% Koha.Preference('HighlightedStopWords') %]".toLowerCase().split('|'); |
653 |
if ( (q_array[x].length > 0) && ($.inArray(q_array[x], myStopwords) == -1) ) { |
654 |
$(".title").highlight(q_array[x]); |
655 |
$(".author").highlight(q_array[x]); |
656 |
$(".results_summary").highlight(q_array[x]); |
657 |
} |
658 |
} |
659 |
$(".highlight_toggle").toggle(); |
660 |
} |
661 |
[% END %] |
662 |
$(document).ready(function(){ |
640 |
$(document).ready(function(){ |
663 |
[% IF ( OpacHighlightedWords ) %] |
641 |
[% IF ( OpacHighlightedWords ) %] |
664 |
$('a.title').each(function() { |
642 |
$('a.title').each(function() { |