Lines 583-590
Link Here
|
583 |
[% IF ( OpacStarRatings == 'all' || Koha.Preference('Babeltheque') ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.rating.js"></script>[% END %] |
583 |
[% IF ( OpacStarRatings == 'all' || Koha.Preference('Babeltheque') ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.rating.js"></script>[% END %] |
584 |
[% IF ( OverDriveEnabled ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/js/overdrive.js"></script>[% END %] |
584 |
[% IF ( OverDriveEnabled ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/js/overdrive.js"></script>[% END %] |
585 |
<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
585 |
<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
586 |
[% IF ( OpacHighlightedWords ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.highlight-3.js"></script> |
586 |
[% IF ( OpacHighlightedWords ) %][% INCLUDE 'opac-highlight.inc' %][% END %] |
587 |
[% END %]<script type="text/javascript"> |
587 |
<script type="text/javascript"> |
588 |
//<![CDATA[ |
588 |
//<![CDATA[ |
589 |
[% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %] |
589 |
[% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %] |
590 |
function holdMultiple() { |
590 |
function holdMultiple() { |
Lines 669-696
function enableCheckboxActions(){
Link Here
|
669 |
} |
669 |
} |
670 |
} |
670 |
} |
671 |
|
671 |
|
672 |
[% IF ( OpacHighlightedWords ) %] |
|
|
673 |
var q_array = new Array(); // holds search terms if available |
674 |
|
675 |
function highlightOff() { |
676 |
$("td").removeHighlight(); |
677 |
$(".highlight_toggle").toggle(); |
678 |
} |
679 |
function highlightOn() { |
680 |
var x; |
681 |
for (x in q_array) { |
682 |
q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1"); |
683 |
q_array[x] = q_array[x].toLowerCase(); |
684 |
var myStopwords = "[% Koha.Preference('NotHighlightedWords') %]".toLowerCase().split('|'); |
685 |
if ( (q_array[x].length > 0) && ($.inArray(q_array[x], myStopwords) == -1) ) { |
686 |
$(".title").highlight(q_array[x]); |
687 |
$(".author").highlight(q_array[x]); |
688 |
$(".results_summary").highlight(q_array[x]); |
689 |
} |
690 |
} |
691 |
$(".highlight_toggle").toggle(); |
692 |
} |
693 |
[% END %] |
694 |
$(document).ready(function(){ |
672 |
$(document).ready(function(){ |
695 |
[% IF ( OpacHighlightedWords ) %] |
673 |
[% IF ( OpacHighlightedWords ) %] |
696 |
$('a.title').each(function() { |
674 |
$('a.title').each(function() { |
697 |
- |
|
|