|
Lines 5-16
Link Here
|
| 5 |
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › OverDrive search for '[% q | html %]'</title> |
5 |
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › OverDrive search for '[% q | html %]'</title> |
| 6 |
[% INCLUDE 'doc-head-close.inc' %] |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
| 7 |
[% BLOCK cssinclude %] |
7 |
[% BLOCK cssinclude %] |
| 8 |
[% Asset.css("css/jquery.rating.css") | $raw %] |
|
|
| 9 |
<style> |
| 10 |
.actions a.addtocart { |
| 11 |
display: inline; |
| 12 |
} |
| 13 |
</style> |
| 14 |
[% END %] |
8 |
[% END %] |
| 15 |
</head> |
9 |
</head> |
| 16 |
[% INCLUDE 'bodytag.inc' bodyid='overdrive-results-page' bodyclass='scrollto' %] |
10 |
[% INCLUDE 'bodytag.inc' bodyid='overdrive-results-page' bodyclass='scrollto' %] |
|
Lines 62-68
Link Here
|
| 62 |
[% INCLUDE 'opac-bottom.inc' %] |
56 |
[% INCLUDE 'opac-bottom.inc' %] |
| 63 |
[% BLOCK jsinclude %] |
57 |
[% BLOCK jsinclude %] |
| 64 |
[% Asset.js("js/overdrive.js") | $raw %] |
58 |
[% Asset.js("js/overdrive.js") | $raw %] |
| 65 |
[% Asset.js("lib/jquery/plugins/jquery.rating.js") | $raw %] |
|
|
| 66 |
<script> |
59 |
<script> |
| 67 |
var OD_password_required = [% IF Koha.Preference('OverDrivePasswordRequired') %]1[% ELSE %]0[% END %]; |
60 |
var OD_password_required = [% IF Koha.Preference('OverDrivePasswordRequired') %]1[% ELSE %]0[% END %]; |
| 68 |
var querystring = "[% q |replace( "'", "\'" ) |replace( '\n', '\\n' ) |replace( '\r', '\\r' ) | html %]"; |
61 |
var querystring = "[% q |replace( "'", "\'" ) |replace( '\n', '\\n' ) |replace( '\r', '\\r' ) | html %]"; |
|
Lines 124-134
function search( offset ) {
Link Here
|
| 124 |
results.push( '<span class="results_summary mediatype"><span class="label">' + _("Type:") + ' </span>', prod.mediaType, '</span>' ); |
117 |
results.push( '<span class="results_summary mediatype"><span class="label">' + _("Type:") + ' </span>', prod.mediaType, '</span>' ); |
| 125 |
|
118 |
|
| 126 |
if ( prod.starRating ) { |
119 |
if ( prod.starRating ) { |
|
|
120 |
var rating_value = Math.round( prod.starRating ); |
| 127 |
results.push( '<div class="results_summary ratings">' ); |
121 |
results.push( '<div class="results_summary ratings">' ); |
|
|
122 |
results.push( '<div class="br-wrapper br-theme-fontawesome-stars">'); |
| 123 |
results.push( '<div class="br-widget br-readonly">'); |
| 128 |
for ( var rating = 1; rating <= 5; rating++ ) { |
124 |
for ( var rating = 1; rating <= 5; rating++ ) { |
| 129 |
results.push( '<input class="star" type="radio" name="rating-' + i + '" value="' + rating + '"' + ( rating == Math.round( prod.starRating ) ? ' checked="checked"' : '' ) + ' disabled="disabled" />' ); |
125 |
|
|
|
126 |
results.push( '<a href="#"' ); |
| 127 |
if( rating == rating_value ){ |
| 128 |
results.push( ' class="br-selected br-current"></a>' ); |
| 129 |
} else if( rating_value > rating ){ |
| 130 |
results.push( ' class="br-selected"></a>' ); |
| 131 |
} else { |
| 132 |
results.push( '></a>'); |
| 133 |
} |
| 130 |
} |
134 |
} |
| 131 |
results.push( '</div>' ); |
135 |
results.push( '</div>' ); |
|
|
136 |
results.push( '</div>' ); |
| 137 |
results.push( '</div>' ); |
| 132 |
} |
138 |
} |
| 133 |
|
139 |
|
| 134 |
results.push( '</td>' ); |
140 |
results.push( '</td>' ); |