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

(-)a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss (-1 / +1 lines)
Lines 3270-3276 $star-selected: #EDB867; Link Here
3270
3270
3271
        a {
3271
        a {
3272
            -webkit-font-smoothing: antialiased;
3272
            -webkit-font-smoothing: antialiased;
3273
            font: normal normal normal 20px/1 FontAwesome;
3273
            font: normal normal normal 16px/1 FontAwesome;
3274
            margin-right: 2px;
3274
            margin-right: 2px;
3275
            text-decoration: none;
3275
            text-decoration: none;
3276
            text-rendering: auto;
3276
            text-rendering: auto;
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt (-5 / +33 lines)
Lines 4-9 Link Here
4
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo; Your checkout history</title>
5
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo; Your checkout history</title>
6
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% IF ( OpacStarRatings == 'all' ) %]
8
    [% BLOCK cssinclude %]
9
        [% Asset.css("css/jquery.rating.css") | $raw %]
10
    [% END %]
11
[% END %]
7
[% BLOCK cssinclude %]
12
[% BLOCK cssinclude %]
8
    <style>ul.ui-tabs-nav li a, ul.ui-tabs-nav li span.a  { padding:0.6em 1em; }</style>
13
    <style>ul.ui-tabs-nav li a, ul.ui-tabs-nav li span.a  { padding:0.6em 1em; }</style>
9
[% END %]
14
[% END %]
Lines 76-82 Link Here
76
                                        <thead>
81
                                        <thead>
77
                                            <tr>
82
                                            <tr>
78
                                                <th style="display:none;">Type</th>
83
                                                <th style="display:none;">Type</th>
79
                                                <th class="nosort"></th>
84
                                                [% IF ( JacketImages ) %]
85
                                                    <th class="nosort"></th>
86
                                                [% END %]
80
                                                <th class="anti-the">Title</th>
87
                                                <th class="anti-the">Title</th>
81
                                                <th>Item type</th>
88
                                                <th>Item type</th>
82
                                                <th>Call no.</th>
89
                                                <th>Call no.</th>
Lines 95-100 Link Here
95
                                                      [% END %]
102
                                                      [% END %]
96
                                                      [% issuetype | html %]
103
                                                      [% issuetype | html %]
97
                                                    </td>
104
                                                    </td>
105
                                                [% IF ( JacketImages ) %]
98
                                                <td>
106
                                                <td>
99
                                                    [% IF ( AdlibrisEnabled && issue.normalized_isbn ) %]
107
                                                    [% IF ( AdlibrisEnabled && issue.normalized_isbn ) %]
100
                                                        [% IF issue.BiblioDefaultViewmarc %]
108
                                                        [% IF issue.BiblioDefaultViewmarc %]
Lines 108-114 Link Here
108
                                                    [% END %]
116
                                                    [% END %]
109
                                                    [% IF  OPACAmazonCoverImages %]
117
                                                    [% IF  OPACAmazonCoverImages %]
110
                                                        [% IF  issue.normalized_isbn %]
118
                                                        [% IF  issue.normalized_isbn %]
111
                                                            <a href="http://www.amazon.com/gp/reader/[% issue.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link"><img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% issue.normalized_isbn | html %].01.THUMBZZZ.jpg" alt="" class="item-thumbnail" /></a>
119
                                                            <a href="http://www.amazon.com/gp/reader/[% issue.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link"><img src="https://images-na.ssl-images-amazon.com/images/P/[% issue.normalized_isbn | html %].01.THUMBZZZ.jpg" alt="" class="item-thumbnail" /></a>
112
                                                        [% ELSE %]
120
                                                        [% ELSE %]
113
                                                             <span class="no-image">No cover image available</span>
121
                                                             <span class="no-image">No cover image available</span>
114
                                                        [% END %]
122
                                                        [% END %]
Lines 135-140 Link Here
135
                                                    <img src="https://secure.syndetics.com/index.aspx?isbn=[% issue.normalized_isbn | html %]/SC.GIF&amp;client=[% SyndeticsClientCode | html %]&amp;type=xw10&amp;upc=[% issue.normalized_upc | html %]&amp;oclc=[% issue.normalized_oclc | html %]" alt="" class="item-thumbnail" />
143
                                                    <img src="https://secure.syndetics.com/index.aspx?isbn=[% issue.normalized_isbn | html %]/SC.GIF&amp;client=[% SyndeticsClientCode | html %]&amp;type=xw10&amp;upc=[% issue.normalized_upc | html %]&amp;oclc=[% issue.normalized_oclc | html %]" alt="" class="item-thumbnail" />
136
                                                [% END %]
144
                                                [% END %]
137
                                                </td>
145
                                                </td>
146
                                                [% END %]
138
                                                <td>
147
                                                <td>
139
                                                [% IF  issue.BiblioDefaultViewmarc %]
148
                                                [% IF  issue.BiblioDefaultViewmarc %]
140
                                                     <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% issue.biblionumber |url %]">[% issue.title | html %] [% IF  issue.subtitle  %][% FOREACH subtitl IN issue.subtitle %][% subtitl.subfield | html %][% END %][% END %]</a>
149
                                                     <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% issue.biblionumber |url %]">[% issue.title | html %] [% IF  issue.subtitle  %][% FOREACH subtitl IN issue.subtitle %][% subtitl.subfield | html %][% END %][% END %]</a>
Lines 143-149 Link Here
143
                                                [% ELSE %]
152
                                                [% ELSE %]
144
                                                     <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% issue.biblionumber |url %]">[% issue.title | html %] [% IF issue.subtitle %][% FOREACH subtitl IN issue.subtitle %][% subtitl.subfield | html %][% END %][% END %]</a>
153
                                                     <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% issue.biblionumber |url %]">[% issue.title | html %] [% IF issue.subtitle %][% FOREACH subtitl IN issue.subtitle %][% subtitl.subfield | html %][% END %][% END %]</a>
145
                                                [% END %]
154
                                                [% END %]
146
                                                <span class="item-details">[% issue.author | html %]</span>
155
                                                <p class="results-summary item-details">[% issue.author | html %]</p>
156
157
                                                    [% IF ( Koha.Preference( 'OpacStarRatings' ) == 'all' && issue.my_rating ) %]
158
                                                        <div class="results_summary ratings">
159
                                                            <div class="br-wrapper br-theme-fontawesome-stars">
160
                                                                <div class="br-widget br-readonly">
161
                                                                    [% FOREACH i IN [ 1 2 3 4 5  ] %]
162
                                                                        [% IF issue.my_rating.rating_value == i %]
163
                                                                            <a href="#" class="br-selected br-current"></a>
164
                                                                        [% ELSIF issue.my_rating.rating_value > i %]
165
                                                                            <a href="#" class="br-selected"></a>
166
                                                                        [% ELSE %]
167
                                                                            <a href="#"></a>
168
                                                                        [% END %]
169
                                                                    [% END %]
170
                                                                </div>
171
                                                            </div>
172
                                                            Rated on [% issue.my_rating.timestamp | $KohaDates %]
173
                                                        </div> <!-- / .results_summary -->
174
                                                    [% END # / IF OpacStarRatings %]
175
147
                                                </td>
176
                                                </td>
148
                                                <td>
177
                                                <td>
149
                                                [% UNLESS ( noItemTypeImages ) %]
178
                                                [% UNLESS ( noItemTypeImages ) %]
Lines 187-194 Link Here
187
[% INCLUDE 'opac-bottom.inc' %]
216
[% INCLUDE 'opac-bottom.inc' %]
188
[% BLOCK jsinclude %]
217
[% BLOCK jsinclude %]
189
[% INCLUDE 'datatables.inc' %]
218
[% INCLUDE 'datatables.inc' %]
219
[% IF ( OpacStarRatings == 'all' ) %][% Asset.js("lib/jquery/plugins/jquery.rating.js") | $raw %][% END %]
190
<script>
220
<script>
191
//<![CDATA[
192
    $(document).ready(function(){
221
    $(document).ready(function(){
193
        [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
222
        [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
194
            $('#sortsubmit').hide();
223
            $('#sortsubmit').hide();
Lines 217-222 Link Here
217
            }
246
            }
218
        });
247
        });
219
    });
248
    });
220
//]]>
221
</script>
249
</script>
222
[% END %]
250
[% END %]
(-)a/opac/opac-readingrecord.pl (-2 / +8 lines)
Lines 33-38 use C4::Charset qw(StripNonXmlChars); Link Here
33
use Koha::Patrons;
33
use Koha::Patrons;
34
34
35
use Koha::ItemTypes;
35
use Koha::ItemTypes;
36
use Koha::Ratings;
36
37
37
my $query = new CGI;
38
my $query = new CGI;
38
39
Lines 121-126 foreach my $issue ( @{$issues} ) { Link Here
121
          : $my_summary_html =~ s/{BIBLIONUMBER}//g;
122
          : $my_summary_html =~ s/{BIBLIONUMBER}//g;
122
        $issue->{MySummaryHTML} = $my_summary_html;
123
        $issue->{MySummaryHTML} = $my_summary_html;
123
    }
124
    }
125
    # Star ratings
126
    if ( C4::Context->preference('OpacStarRatings') eq 'all' ) {
127
        my $ratings = Koha::Ratings->search({ biblionumber => $issue->{biblionumber} });
128
        $issue->{ratings} = $ratings;
129
        $issue->{my_rating} = $borrowernumber ? $ratings->search({ borrowernumber => $borrowernumber })->next : undef;
130
    }
124
}
131
}
125
132
126
if (C4::Context->preference('BakerTaylorEnabled')) {
133
if (C4::Context->preference('BakerTaylorEnabled')) {
Lines 140-146 BEGIN { Link Here
140
	}
147
	}
141
}
148
}
142
149
143
for(qw(AmazonCoverImages GoogleJackets)) {	# BakerTaylorEnabled handled above
150
for(qw(OPACAmazonCoverImages GoogleJackets SyndeticsCoverImages)) { # BakerTaylorEnabled handled above
144
	C4::Context->preference($_) or next;
151
	C4::Context->preference($_) or next;
145
	$template->param($_=>1);
152
	$template->param($_=>1);
146
	$template->param(JacketImages=>1);
153
	$template->param(JacketImages=>1);
147
- 

Return to bug 11969