View | Details | Raw Unified | Return to bug 9554
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results-grouped.tt (-1 / +1 lines)
Lines 17-23 var q_array = new Array(); // will hold the search terms, if possible Link Here
17
$(document).ready(function(){
17
$(document).ready(function(){
18
    [% IF ( OpacHighlightedWords ) %]
18
    [% IF ( OpacHighlightedWords ) %]
19
        $('a.title').each(function() {
19
        $('a.title').each(function() {
20
            $(this).attr('href', $(this).attr('href') + '&query_desc=[% query_desc | uri %]');
20
            $(this).attr("href", $(this).attr("href") + "&query_desc=[% query_desc | uri %]");
21
        });
21
        });
22
    [% END %]
22
    [% END %]
23
23
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt (-9 / +13 lines)
Lines 105-111 function highlightOn() { Link Here
105
$(document).ready(function(){
105
$(document).ready(function(){
106
    [% IF ( OpacHighlightedWords ) %]
106
    [% IF ( OpacHighlightedWords ) %]
107
        $('a.title').each(function() {
107
        $('a.title').each(function() {
108
            $(this).attr('href', $(this).attr('href') + '&query_desc=[% query_desc | uri %]');
108
            $(this).attr("href", $(this).attr("href") + "&query_desc=[% query_desc | uri %]");
109
        });
109
        });
110
    [% END %]
110
    [% END %]
111
111
Lines 303-314 $(document).ready(function(){ Link Here
303
    [% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
303
    [% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
304
    [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
304
    [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
305
305
306
    $('#didyoumean').load('/cgi-bin/koha/svc/suggestion?render=stub&q=[% querystring | uri %]',
306
[% IF ( DidYouMean ) %]
307
    $("#didyoumean").load("/cgi-bin/koha/svc/suggestion?render=stub&q=[% querystring |uri %]",
307
        function() {
308
        function() {
308
            $('.searchsuggestion').parent().parent().css({
309
            $(".searchsuggestion").parent().parent().css({
309
                'border-color': '#F4ECBE',
310
                "border-color": "#F4ECBE",
310
                'background-color': '#FFFBEA'});
311
                "background-color": "#FFFBEA"
311
            } );
312
            });
313
        });
314
[% END %]
315
312
});
316
});
313
317
314
//]]>
318
//]]>
Lines 325-331 $(document).ready(function(){ Link Here
325
    <div class="yui-b">
329
    <div class="yui-b">
326
    <div id="userresults" class="container">
330
    <div id="userresults" class="container">
327
    [% IF ( DidYouMean ) %]
331
    [% IF ( DidYouMean ) %]
328
        <div id='didyoumean'>Not what you expected? Check for <a href='/cgi-bin/koha/svc/suggestion?render=standalone&amp;q=[% querystring | uri %]'>suggestions</a></div>
332
        <div id="didyoumean">Not what you expected? Check for <a href="/cgi-bin/koha/svc/suggestion?render=standalone&amp;q=[% querystring |uri %]">suggestions</a></div>
329
    [% END %]
333
    [% END %]
330
    <div id="top-pages">[% INCLUDE 'page-numbers.inc' %]</div>
334
    <div id="top-pages">[% INCLUDE 'page-numbers.inc' %]</div>
331
  [% IF ( koha_spsuggest ) %]
335
  [% IF ( koha_spsuggest ) %]
Lines 607-614 $(document).ready(function(){ Link Here
607
[% END %]
611
[% END %]
608
612
609
[% END %]
613
[% END %]
610
                <input type="hidden" name='biblionumber'  value="[% SEARCH_RESULT.biblionumber %]" />
614
                <input type="hidden" name="biblionumber"  value="[% SEARCH_RESULT.biblionumber %]" />
611
                <input type="hidden" name='loggedinuser'  value="[% loggedinuser %]" />
615
                <input type="hidden" name="loggedinuser"  value="[% loggedinuser %]" />
612
616
613
                [% IF (  SEARCH_RESULT.rating_total ) > 0  %]
617
                [% IF (  SEARCH_RESULT.rating_total ) > 0  %]
614
                    <span id="rating_total_[% SEARCH_RESULT.biblionumber %]">&nbsp;&nbsp;([% SEARCH_RESULT.rating_total %] votes)</span>
618
                    <span id="rating_total_[% SEARCH_RESULT.biblionumber %]">&nbsp;&nbsp;([% SEARCH_RESULT.rating_total %] votes)</span>
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/svc/suggestion.tt (-4 / +3 lines)
Lines 14-26 Link Here
14
[% END %]
14
[% END %]
15
[% IF suggestions && suggestions.size %]
15
[% IF suggestions && suggestions.size %]
16
    <div>
16
    <div>
17
    <span class='suggestionlabel'>Did you mean:</span>
17
    <span class="suggestionlabel">Did you mean:</span>
18
    [% FOREACH suggestion IN suggestions %]
18
    [% FOREACH suggestion IN suggestions %]
19
        <span class='searchsuggestion'><a href='/cgi-bin/koha/opac-search.pl?q=[% suggestion.search | uri %]'>[% suggestion.label %]</a></span>
19
        <span class="searchsuggestion"><a href="/cgi-bin/koha/opac-search.pl?q=[% suggestion.search |uri %]">[% suggestion.label |html %]</a></span>
20
    [% END %]
20
    [% END %]
21
    </div>
21
    </div>
22
[% ELSE %]
22
[% ELSE %]
23
    <span class='nosuggestions'>Sorry, no suggestions.</span>
23
    <span class="nosuggestions">Sorry, no suggestions.</span>
24
[% END %]
24
[% END %]
25
[% IF (render=='standalone') %]
25
[% IF (render=='standalone') %]
26
    </div>
26
    </div>
27
- 

Return to bug 9554