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

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt (-6 / +6 lines)
Lines 9-16 Link Here
9
      {lang: '[% lang %]'}
9
      {lang: '[% lang %]'}
10
    </script>
10
    </script>
11
[% END %]
11
[% END %]
12
<script type="text/javascript" src="/opac-tmpl/prog/en/lib/jquery/plugins/jquery.rating.js"></script>
12
[% IF ( OpacStarRatings != 'disable' ) %]<script type="text/javascript" src="/opac-tmpl/prog/en/lib/jquery/plugins/jquery.rating.js"></script>
13
<link rel="stylesheet" type="text/css" href="/opac-tmpl/prog/en/css/jquery.rating.css" />
13
<link rel="stylesheet" type="text/css" href="/opac-tmpl/prog/en/css/jquery.rating.css" />[% END %]
14
14
15
<script type="text/JavaScript" language="JavaScript">
15
<script type="text/JavaScript" language="JavaScript">
16
//<![CDATA[
16
//<![CDATA[
Lines 89-95 Link Here
89
    [% END %]
89
    [% END %]
90
90
91
        $(".branch-info-tooltip-trigger").tooltip({delay: 100, position: "top right"});
91
        $(".branch-info-tooltip-trigger").tooltip({delay: 100, position: "top right"});
92
92
[% IF ( OpacStarRatings != 'disable' ) %]
93
// -----------------------------------------------------
93
// -----------------------------------------------------
94
// star-ratings code
94
// star-ratings code
95
// -----------------------------------------------------
95
// -----------------------------------------------------
Lines 136-142 $(function () { Link Here
136
  });
136
  });
137
});
137
});
138
// -----------------------------------------------------
138
// -----------------------------------------------------
139
139
[% END %]
140
});
140
});
141
141
142
[% IF ( OpacBrowseResults && busc ) %]
142
[% IF ( OpacBrowseResults && busc ) %]
Lines 563-569 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
563
        <input  type="hidden" name='rating_total' id='rating_total' value="[% rating_total %]" />
563
        <input  type="hidden" name='rating_total' id='rating_total' value="[% rating_total %]" />
564
        <input  type="hidden" name='rating_avg_int' id='rating_avg_int' value="[% rating_avg_int %]" />
564
        <input  type="hidden" name='rating_avg_int' id='rating_avg_int' value="[% rating_avg_int %]" />
565
565
566
        [% UNLESS ( rating_readonly ) %]&nbsp;  <INPUT name="rate_button" type="submit" value="Rate me">[% END %]&nbsp;
566
        [% UNLESS ( rating_readonly ) %]&nbsp;  <input name="rate_button" type="submit" value="Rate me" />[% END %]&nbsp;
567
567
568
        [% IF ( rating_value ) %]
568
        [% IF ( rating_value ) %]
569
            <span id="rating_value_text">your rating: [% rating_value %], </span>
569
            <span id="rating_value_text">your rating: [% rating_value %], </span>
Lines 574-580 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
574
            <span id="rating_text">average rating: [% rating_avg_int %] ([% rating_total %] votes)</span>
574
            <span id="rating_text">average rating: [% rating_avg_int %] ([% rating_total %] votes)</span>
575
575
576
        </div>
576
        </div>
577
        </FORM>
577
        </form>
578
    [% END %]
578
    [% END %]
579
579
580
    [% IF ( BakerTaylorContentURL ) %]
580
    [% IF ( BakerTaylorContentURL ) %]
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt (-4 / +3 lines)
Lines 522-528 $(document).ready(function(){ Link Here
522
                [% IF (  SEARCH_RESULT.rating_total ) > 0  %]
522
                [% IF (  SEARCH_RESULT.rating_total ) > 0  %]
523
                    <span id="rating_total_[% SEARCH_RESULT.biblionumber %]">&nbsp;&nbsp;([% SEARCH_RESULT.rating_total %] votes)</span>
523
                    <span id="rating_total_[% SEARCH_RESULT.biblionumber %]">&nbsp;&nbsp;([% SEARCH_RESULT.rating_total %] votes)</span>
524
                [% ELSE %]
524
                [% ELSE %]
525
                    </br>
525
                    <br />
526
                [% END %]
526
                [% END %]
527
527
528
                </div>
528
                </div>
Lines 600-607 $(document).ready(function(){ Link Here
600
            [% END %]
600
            [% END %]
601
                [% END %]
601
                [% END %]
602
602
603
                [% IF ( GoogleJackets ) %][% IF ( SEARCH_RESULT.normalized_isbn ) %]<div style="block" title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>[% ELSE %]<span class="no-image">No cover image available</span>[% END %][% END %]
603
                [% IF ( GoogleJackets ) %][% IF ( SEARCH_RESULT.normalized_isbn ) %]<span style="block" title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></span>[% ELSE %]<span class="no-image">No cover image available</span>[% END %][% END %]
604
        [% IF OpenLibraryCovers %][% IF SEARCH_RESULT.normalized_isbn %]<div style="block" title="[% SEARCH_RESULT.biblionumber %]" class="[% SEARCH_RESULT.normalized_isbn %]" id="openlibrary-thumbnail[% loop.count %]"></div>[% ELSE %]<span class="no-image">No cover image available</span>[% END %][% END %]
604
        [% IF OpenLibraryCovers %][% IF SEARCH_RESULT.normalized_isbn %]<span style="block" title="[% SEARCH_RESULT.biblionumber %]" class="[% SEARCH_RESULT.normalized_isbn %]" id="openlibrary-thumbnail[% loop.count %]"></span>[% ELSE %]<span class="no-image">No cover image available</span>[% END %][% END %]
605
                </a>
605
                </a>
606
                [% IF ( BakerTaylorEnabled ) %][% IF ( SEARCH_RESULT.normalized_isbn ) %]<a href="https://[% BakerTaylorBookstoreURL |html %][% SEARCH_RESULT.normalized_isbn %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |html %][% SEARCH_RESULT.normalized_isbn %]" /></a>[% ELSE %]<span class="no-image">No cover image available</span>[% END %][% END %]
606
                [% IF ( BakerTaylorEnabled ) %][% IF ( SEARCH_RESULT.normalized_isbn ) %]<a href="https://[% BakerTaylorBookstoreURL |html %][% SEARCH_RESULT.normalized_isbn %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |html %][% SEARCH_RESULT.normalized_isbn %]" /></a>[% ELSE %]<span class="no-image">No cover image available</span>[% END %][% END %]
607
                </td>
607
                </td>
608
- 

Return to bug 7127