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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt (-222 / +240 lines)
Lines 1-222 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Koha %]
2
[% USE Koha %]
3
[% USE KohaDates %]
3
[% USE KohaDates %]
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
[% BLOCK cssinclude %]
7
[% BLOCK cssinclude %]
8
    <style>ul.ui-tabs-nav li a, ul.ui-tabs-nav li span.a  { padding:0.6em 1em; }</style>
8
    <style>ul.ui-tabs-nav li a, ul.ui-tabs-nav li span.a  { padding:0.6em 1em; }</style>
9
[% END %]
9
[% END %]
10
</head>
10
</head>
11
[% INCLUDE 'bodytag.inc' bodyid='opac-readingrecord' %]
11
[% INCLUDE 'bodytag.inc' bodyid='opac-readingrecord' %]
12
[% INCLUDE 'masthead.inc' %]
12
[% INCLUDE 'masthead.inc' %]
13
[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
13
[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
14
[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
14
[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
15
15
16
[% IF Koha.Preference('AmazonAssocTag') %]
16
[% IF Koha.Preference('AmazonAssocTag') %]
17
    [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
17
    [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
18
[% ELSE %]
18
[% ELSE %]
19
    [% AmazonAssocTag = '' %]
19
    [% AmazonAssocTag = '' %]
20
[% END %]
20
[% END %]
21
21
22
<div class="main">
22
<div class="main">
23
    <ul class="breadcrumb">
23
    <ul class="breadcrumb">
24
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
24
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
25
        <li><a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a> <span class="divider">&rsaquo;</span></li>
25
        <li><a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a> <span class="divider">&rsaquo;</span></li>
26
        <li><a href="#">Your checkout history</a></li>
26
        <li><a href="#">Your checkout history</a></li>
27
    </ul>
27
    </ul>
28
28
29
    <div class="container-fluid">
29
    <div class="container-fluid">
30
        <div class="row-fluid">
30
        <div class="row-fluid">
31
            <div class="span2">
31
            <div class="span2">
32
                <div id="navigation">
32
                <div id="navigation">
33
                    [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
33
                    [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
34
                </div>
34
                </div>
35
            </div>
35
            </div>
36
            <div class="span10">
36
            <div class="span10">
37
                <div id="userreadingrecord">
37
                <div id="userreadingrecord">
38
                    <h3>Checkout history</h3>
38
                    <h3>Checkout history</h3>
39
39
40
                    [% IF READING_RECORD.size == 0 %]
40
                    [% IF READING_RECORD.size == 0 %]
41
                        You have never borrowed anything from this library.
41
                        You have never borrowed anything from this library.
42
                    [% ELSE %]
42
                    [% ELSE %]
43
                        <div id="opac-user-readingrec">
43
                        <div id="opac-user-readingrec">
44
                            <div class="resultscontrol resort">
44
                            <div class="resultscontrol resort">
45
                                <form id="sortform" action="/cgi-bin/koha/opac-readingrecord.pl" method="get">
45
                                <form id="sortform" action="/cgi-bin/koha/opac-readingrecord.pl" method="get">
46
                                    [% UNLESS ( limit ) %]<input type="hidden" name="limit" value="full" />[% END %]
46
                                    [% UNLESS ( limit ) %]<input type="hidden" name="limit" value="full" />[% END %]
47
                                    <select name="order" id="order">
47
                                    <select name="order" id="order">
48
                                        [% IF ( orderbydate ) %]<option value="" selected="selected">Order by date</option>[% ELSE %]<option value="">Order by date</option>[% END %]
48
                                        [% IF ( orderbydate ) %]<option value="" selected="selected">Order by date</option>[% ELSE %]<option value="">Order by date</option>[% END %]
49
                                        [% IF ( orderbytitle ) %]<option value="title" selected="selected">Order by title</option>[% ELSE %]<option value="title">Order by title</option>[% END %]
49
                                        [% IF ( orderbytitle ) %]<option value="title" selected="selected">Order by title</option>[% ELSE %]<option value="title">Order by title</option>[% END %]
50
                                        [% IF ( orderbyauthor ) %]<option value="author" selected="selected">Order by author</option>[% ELSE %]<option value="author">Order by author</option>[% END %]
50
                                        [% IF ( orderbyauthor ) %]<option value="author" selected="selected">Order by author</option>[% ELSE %]<option value="author">Order by author</option>[% END %]
51
                                    </select>
51
                                    </select>
52
                                    <input type="submit" value="Go" id="sortsubmit" class="submit clearfix" />
52
                                    <input type="submit" value="Go" id="sortsubmit" class="submit clearfix" />
53
                                </form>
53
                                </form>
54
                            </div>
54
                            </div>
55
55
56
                            [% IF limit %]
56
                            [% IF limit %]
57
                                <p>
57
                                <p>
58
                                    Showing last 50 items. <a href="/cgi-bin/koha/opac-readingrecord.pl?limit=full[% IF ( orderbytitle ) %]&amp;order=title[% END %]">Show all items</a>
58
                                    Showing last 50 items. <a href="/cgi-bin/koha/opac-readingrecord.pl?limit=full[% IF ( orderbytitle ) %]&amp;order=title[% END %]">Show all items</a>
59
                                </p>
59
                                </p>
60
                            [% ELSE %]
60
                            [% ELSE %]
61
                                <p>
61
                                <p>
62
                                    Showing all items. <a href="/cgi-bin/koha/opac-readingrecord.pl?limit=50[% IF ( orderbytitle ) %]&amp;order=title[% END %]">Show last 50 items</a>
62
                                    Showing all items. <a href="/cgi-bin/koha/opac-readingrecord.pl?limit=50[% IF ( orderbytitle ) %]&amp;order=title[% END %]">Show last 50 items</a>
63
                                </p>
63
                                </p>
64
                            [% END %]
64
                            [% END %]
65
65
66
                            [% IF Koha.Preference( 'OnSiteCheckouts' ) == 1 %]
66
                            [% IF Koha.Preference( 'OnSiteCheckouts' ) == 1 %]
67
                            <div id="tabs" class="toptabs">
67
                            <div id="tabs" class="toptabs">
68
                                <ul>
68
                                <ul>
69
                                    <li><a href="#tabs-container" id="tab_all">All</a></li>
69
                                    <li><a href="#tabs-container" id="tab_all">All</a></li>
70
                                    <li><a href="#tabs-container" id="tab_checkout">Checkouts</a></li>
70
                                    <li><a href="#tabs-container" id="tab_checkout">Checkouts</a></li>
71
                                    <li><a href="#tabs-container" id="tab_onsite_checkout">On-site checkouts</a></li>
71
                                    <li><a href="#tabs-container" id="tab_onsite_checkout">On-site checkouts</a></li>
72
                                </ul>
72
                                </ul>
73
                            [% END %]
73
                            [% END %]
74
                                <div id="tabs-container" style="overflow:hidden">
74
                                <div id="tabs-container" style="overflow:hidden">
75
                                    <table id="readingrec" class="table table-bordered table-striped">
75
                                    <table id="readingrec" class="table table-bordered table-striped">
76
                                        <thead>
76
                                        <thead>
77
                                            <tr>
77
                                            <tr>
78
                                                <th style="display:none;">Type</th>
78
                                                <th style="display:none;">Type</th>
79
                                                <th class="nosort"></th>
79
                                                <th class="nosort"></th>
80
                                                <th class="anti-the">Title</th>
80
                                                <th class="anti-the">Title</th>
81
                                                <th>Item type</th>
81
                                                <th>Item type</th>
82
                                                <th>Call no.</th>
82
                                                <th>Call no.</th>
83
                                                <th class="title-string">Date</th>
83
                                                <th class="title-string">Date</th>
84
                                                [% IF ( OPACMySummaryHTML ) %]
84
                                                [% IF ( OPACMySummaryHTML ) %]
85
                                                    <th>Links</th>
85
                                                    <th>Links</th>
86
                                                [% END %]
86
                                                [% END %]
87
                                            </tr>
87
                                            </tr>
88
                                        </thead>
88
                                        </thead>
89
                                        <tbody>
89
                                        <tbody>
90
                                            [% FOREACH issue IN READING_RECORD %]
90
                                            [% FOREACH issue IN READING_RECORD %]
91
                                                <tr>
91
                                                <tr>
92
                                                    <td style="display:none;">
92
                                                    <td style="display:none;">
93
                                                      [% IF issue.onsite_checkout %][% issuetype = 'onsite_checkout' %]
93
                                                      [% IF issue.onsite_checkout %][% issuetype = 'onsite_checkout' %]
94
                                                      [% ELSE %][% issuetype = 'standard_checkout' %]
94
                                                      [% ELSE %][% issuetype = 'standard_checkout' %]
95
                                                      [% END %]
95
                                                      [% END %]
96
                                                      [% issuetype | html %]
96
                                                      [% issuetype | html %]
97
                                                    </td>
97
                                                    </td>
98
                                                <td>
98
                                                <td>
99
                                                    [% IF ( AdlibrisEnabled && issue.normalized_isbn ) %]
99
                                                    [% IF ( AdlibrisEnabled && issue.normalized_isbn ) %]
100
                                                        [% IF issue.BiblioDefaultViewmarc %]
100
                                                        [% IF issue.BiblioDefaultViewmarc %]
101
                                                            <a href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% issue.biblionumber |url %]">
101
                                                            <a href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% issue.biblionumber |url %]">
102
                                                        [% ELSIF issue.BiblioDefaultViewisbd %]
102
                                                        [% ELSIF issue.BiblioDefaultViewisbd %]
103
                                                            <a href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% issue.biblionumber |url %]">
103
                                                            <a href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% issue.biblionumber |url %]">
104
                                                        [% ELSE %]
104
                                                        [% ELSE %]
105
                                                            <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% issue.biblionumber |url %]">
105
                                                            <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% issue.biblionumber |url %]">
106
                                                        [% END %]
106
                                                        [% END %]
107
                                                        <img src="[% AdlibrisURL | html %]?isbn=[% issue.normalized_isbn | html %]" class="adlibris-cover" alt="Adlibris cover image" /></a>
107
                                                        <img src="[% AdlibrisURL | html %]?isbn=[% issue.normalized_isbn | html %]" class="adlibris-cover" alt="Adlibris cover image" /></a>
108
                                                    [% END %]
108
                                                    [% END %]
109
                                                    [% IF  OPACAmazonCoverImages %]
109
                                                    [% IF  OPACAmazonCoverImages %]
110
                                                        [% IF  issue.normalized_isbn %]
110
                                                        [% 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>
111
                                                            <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 %]
112
                                                        [% ELSE %]
113
                                                             <span class="no-image">No cover image available</span>
113
                                                             <span class="no-image">No cover image available</span>
114
                                                        [% END %]
114
                                                        [% END %]
115
                                                    [% END %]
115
                                                    [% END %]
116
116
117
                                                [% IF GoogleJackets %]
117
                                                [% IF GoogleJackets %]
118
                                                    [% IF  issue.normalized_isbn %]
118
                                                    [% IF  issue.normalized_isbn %]
119
                                                        <div title="[% issue.biblionumber |url %]" class="[% issue.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
119
                                                        <div title="[% issue.biblionumber |url %]" class="[% issue.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
120
                                                    [% ELSE %]
120
                                                    [% ELSE %]
121
                                                       <span class="no-image">No cover image available</span>
121
                                                       <span class="no-image">No cover image available</span>
122
                                                    [% END %]
122
                                                    [% END %]
123
                                                [% END %]
123
                                                [% END %]
124
124
125
                                                [% IF BakerTaylorEnabled %]
125
                                                [% IF BakerTaylorEnabled %]
126
                                                    [% bt_id = ( issue.normalized_upc || issue.normalized_isbn ) %]
126
                                                    [% bt_id = ( issue.normalized_upc || issue.normalized_isbn ) %]
127
                                                    [% IF ( bt_id ) %]
127
                                                    [% IF ( bt_id ) %]
128
                                                       <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
128
                                                       <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
129
                                                    [% ELSE %]
129
                                                    [% ELSE %]
130
                                                       <span class="no-image">No cover image available</span>
130
                                                       <span class="no-image">No cover image available</span>
131
                                                    [% END %]
131
                                                    [% END %]
132
                                                [% END %]
132
                                                [% END %]
133
133
134
                                                [% IF SyndeticsEnabled && SyndeticsCoverImages %]
134
                                                [% IF SyndeticsEnabled && SyndeticsCoverImages %]
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" />
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" />
136
                                                [% END %]
136
                                                [% END %]
137
                                                </td>
137
                                                </td>
138
                                                <td>
138
                                                <td>
139
                                                [% IF  issue.BiblioDefaultViewmarc %]
139
                                                [% 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>
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>
141
                                                [% ELSIF issue.BiblioDefaultViewisbd %]
141
                                                [% ELSIF issue.BiblioDefaultViewisbd %]
142
                                                     <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% issue.biblionumber |url %]">[% issue.title | html %] [% IF issue.subtitle %][% FOREACH subtitl IN issue.subtitle %][% subtitl.subfield | html %][% END %][% END %]</a>
142
                                                     <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% issue.biblionumber |url %]">[% issue.title | html %] [% IF issue.subtitle %][% FOREACH subtitl IN issue.subtitle %][% subtitl.subfield | html %][% END %][% END %]</a>
143
                                                [% ELSE %]
143
                                                [% 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>
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>
145
                                                [% END %]
145
                                                [% END %]
146
                                                <span class="item-details">[% issue.author | html %]</span>
146
                                                <p class="results-summary item-details">[% issue.author | html %]</p>
147
                                                </td>
147
148
                                                <td>
148
                                                    [% IF ( Koha.Preference( 'OpacStarRatings' ) == 'all' && issue.my_rating ) %]
149
                                                [% UNLESS ( noItemTypeImages ) %]
149
                                                        <div class="results_summary ratings">
150
                                                    [% IF ( issue.imageurl ) %]
150
                                                            <div class="br-wrapper br-theme-fontawesome-stars">
151
                                                        <img src="[% issue.imageurl | html %]" alt="" />
151
                                                                <div class="br-widget br-readonly">
152
                                                    [% END %]
152
                                                                    [% FOREACH i IN [ 1 2 3 4 5  ] %]
153
                                                [% END %]
153
                                                                        [% IF issue.my_rating.rating_value == i %]
154
                                                <span class="tdlabel">Item type:</span>
154
                                                                            <a href="#" class="br-selected br-current"></a>
155
                                                [% issue.translated_description | html %]</td>
155
                                                                        [% ELSIF issue.my_rating.rating_value > i %]
156
                                                <td>
156
                                                                            <a href="#" class="br-selected"></a>
157
                                                <span class="tdlabel">Call number:</span>
157
                                                                        [% ELSE %]
158
                                                [% issue.itemcallnumber | html %]
158
                                                                            <a href="#"></a>
159
                                                </td>
159
                                                                        [% END %]
160
                                                <td>
160
                                                                    [% END %]
161
                                                    [% IF issue.returndate %]
161
                                                                </div>
162
                                                        <span class="tdlabel">Check-in date:</span>
162
                                                            </div>
163
                                                        <span title="[% issue.returndate | html %]">[% issue.returndate | $KohaDates %]</span>
163
                                                            Rated on [% issue.my_rating.timestamp | $KohaDates %]
164
                                                    [% ELSE %]
164
                                                        </div> <!-- / .results_summary -->
165
                                                        <span title="Checked out"><em>(Checked out)</em></span>
165
                                                    [% END # / IF OpacStarRatings %]
166
                                                    [% END %]
166
167
                                                </td>
167
                                                </td>
168
                                                [% IF OPACMySummaryHTML %]
168
                                                <td>
169
                                                    <td>[% issue.MySummaryHTML | $raw %]</td>
169
                                                [% UNLESS ( noItemTypeImages ) %]
170
                                                [% END %]
170
                                                    [% IF ( issue.imageurl ) %]
171
                                                </tr>
171
                                                        <img src="[% issue.imageurl | html %]" alt="" />
172
                                            [% END # / FOREACH issue %]
172
                                                    [% END %]
173
                                        </tbody>
173
                                                [% END %]
174
                                    </table>
174
                                                <span class="tdlabel">Item type:</span>
175
                                </div> <!-- / .tabs-container -->
175
                                                [% issue.translated_description | html %]</td>
176
                            [% IF ( Koha.Preference( 'OnSiteCheckouts' ) == 1 ) %]
176
                                                <td>
177
                                </div> <!-- /#tabs -->
177
                                                <span class="tdlabel">Call number:</span>
178
                            [% END %]
178
                                                [% issue.itemcallnumber | html %]
179
                        </div> <!-- / .opac-user-readingrec -->
179
                                                </td>
180
                    [% END # / IF READING_RECORD.size %]
180
                                                <td>
181
                </div> <!-- / .userreadingrecord -->
181
                                                    [% IF issue.returndate %]
182
            </div> <!-- / .span10 -->
182
                                                        <span class="tdlabel">Check-in date:</span>
183
        </div> <!-- / .row-fluid -->
183
                                                        <span title="[% issue.returndate | html %]">[% issue.returndate | $KohaDates %]</span>
184
    </div> <!-- / .container-fluid -->
184
                                                    [% ELSE %]
185
</div> <!-- / .main -->
185
                                                        <span title="Checked out"><em>(Checked out)</em></span>
186
186
                                                    [% END %]
187
[% INCLUDE 'opac-bottom.inc' %]
187
                                                </td>
188
[% BLOCK jsinclude %]
188
                                                [% IF OPACMySummaryHTML %]
189
[% INCLUDE 'datatables.inc' %]
189
                                                    <td>[% issue.MySummaryHTML | $raw %]</td>
190
<script>
190
                                                [% END %]
191
//<![CDATA[
191
                                                </tr>
192
    $(document).ready(function(){
192
                                            [% END # / FOREACH issue %]
193
        [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
193
                                        </tbody>
194
            $('#sortsubmit').hide();
194
                                    </table>
195
        $('#order').change(function() {
195
                                </div> <!-- / .tabs-container -->
196
            $('#sortform').submit();
196
                            [% IF ( Koha.Preference( 'OnSiteCheckouts' ) == 1 ) %]
197
        });
197
                                </div> <!-- /#tabs -->
198
198
                            [% END %]
199
        var table = $("#readingrec").dataTable($.extend(true, {}, dataTablesDefaults, {
199
                        </div> <!-- / .opac-user-readingrec -->
200
            "sPaginationType": "four_button",
200
                    [% END # / IF READING_RECORD.size %]
201
            "columnDefs": [
201
                </div> <!-- / .userreadingrecord -->
202
                { "targets": [ "nosort" ],"sortable": false,"searchable": false },
202
            </div> <!-- / .span10 -->
203
                { "type": "anti-the", "targets" : [ "anti-the" ] },
203
        </div> <!-- / .row-fluid -->
204
                { "type": "title-string", "targets" : [ "title-string" ] }
204
    </div> <!-- / .container-fluid -->
205
            ]
205
</div> <!-- / .main -->
206
        }));
206
207
        var tabs = $("#tabs").tabs({
207
[% INCLUDE 'opac-bottom.inc' %]
208
            select: function(e, ui) {
208
[% BLOCK jsinclude %]
209
                var id = $(ui.tab).attr("id");
209
[% INCLUDE 'datatables.inc' %]
210
                if ( id == "tab_checkout" ) {
210
<script>
211
                    table.fnFilter("standard_checkout", 0);
211
    $(document).ready(function(){
212
                } else if ( id == "tab_onsite_checkout" ) {
212
        [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
213
                    table.fnFilter("onsite_checkout", 0);
213
            $('#sortsubmit').hide();
214
                } else { // all
214
        $('#order').change(function() {
215
                    table.fnFilter('', 0);
215
            $('#sortform').submit();
216
                }
216
        });
217
            }
217
218
        });
218
        var table = $("#readingrec").dataTable($.extend(true, {}, dataTablesDefaults, {
219
    });
219
            "sPaginationType": "four_button",
220
//]]>
220
            "columnDefs": [
221
</script>
221
                { "targets": [ "nosort" ],"sortable": false,"searchable": false },
222
[% END %]
222
                { "type": "anti-the", "targets" : [ "anti-the" ] },
223
                { "type": "title-string", "targets" : [ "title-string" ] }
224
            ]
225
        }));
226
        var tabs = $("#tabs").tabs({
227
            select: function(e, ui) {
228
                var id = $(ui.tab).attr("id");
229
                if ( id == "tab_checkout" ) {
230
                    table.fnFilter("standard_checkout", 0);
231
                } else if ( id == "tab_onsite_checkout" ) {
232
                    table.fnFilter("onsite_checkout", 0);
233
                } else { // all
234
                    table.fnFilter('', 0);
235
                }
236
            }
237
        });
238
    });
239
</script>
240
[% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-1 lines)
Lines 613-619 Link Here
613
[% IF ( LibraryThingForLibrariesID ) %]
613
[% IF ( LibraryThingForLibrariesID ) %]
614
    <script src="https://ltfl.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID | html %]&amp;systype=koha"></script>
614
    <script src="https://ltfl.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID | html %]&amp;systype=koha"></script>
615
[% END %]
615
[% END %]
616
[% IF ( OpacStarRatings == 'all' || Koha.Preference('Babeltheque') ) %][% Asset.js("lib/jquery/plugins/jquery.rating.js") | $raw %][% END %]
617
[% IF ( OverDriveEnabled ) %][% Asset.js("js/overdrive.js") | $raw %][% END %]
616
[% IF ( OverDriveEnabled ) %][% Asset.js("js/overdrive.js") | $raw %][% END %]
618
[% IF ( RecordedBooksEnabled ) %][% Asset.js("js/recordedbooks.js") | $raw %][% END %]
617
[% IF ( RecordedBooksEnabled ) %][% Asset.js("js/recordedbooks.js") | $raw %][% END %]
619
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
618
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
(-)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(AmazonCoverImages GoogleJackets)) { # 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