diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results-grouped.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results-grouped.tt index 70aae6237f..44fd575d09 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results-grouped.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results-grouped.tt @@ -17,7 +17,7 @@ var q_array = new Array(); // will hold the search terms, if possible $(document).ready(function(){ [% IF ( OpacHighlightedWords ) %] $('a.title').each(function() { - $(this).attr('href', $(this).attr('href') + '&query_desc=[% query_desc | uri %]'); + $(this).attr("href", $(this).attr("href") + "&query_desc=[% query_desc | uri %]"); }); [% END %] diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt index 04d02bae9b..28b0932cf0 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt @@ -105,7 +105,7 @@ function highlightOn() { $(document).ready(function(){ [% IF ( OpacHighlightedWords ) %] $('a.title').each(function() { - $(this).attr('href', $(this).attr('href') + '&query_desc=[% query_desc | uri %]'); + $(this).attr("href", $(this).attr("href") + "&query_desc=[% query_desc | uri %]"); }); [% END %] @@ -303,12 +303,16 @@ $(document).ready(function(){ [% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %] [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %] - $('#didyoumean').load('/cgi-bin/koha/svc/suggestion?render=stub&q=[% querystring | uri %]', +[% IF ( DidYouMean ) %] + $("#didyoumean").load("/cgi-bin/koha/svc/suggestion?render=stub&q=[% querystring |uri %]", function() { - $('.searchsuggestion').parent().parent().css({ - 'border-color': '#F4ECBE', - 'background-color': '#FFFBEA'}); - } ); + $(".searchsuggestion").parent().parent().css({ + "border-color": "#F4ECBE", + "background-color": "#FFFBEA" + }); + }); +[% END %] + }); //]]> @@ -325,7 +329,7 @@ $(document).ready(function(){