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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt (-123 / +127 lines)
Lines 53-63 Link Here
53
                    [% ELSE %]
53
                    [% ELSE %]
54
                        <div id="opac-user-readingrec">
54
                        <div id="opac-user-readingrec">
55
55
56
                        [% IF savings %]
56
                            [% IF savings %]
57
                            <div class="alert alert-info" id="savings">
57
                                <div class="alert alert-info" id="savings">
58
                                Congratulations, you have saved a total of [% savings | $Price with_symbol => 1 %] by using the library.
58
                                    Congratulations, you have saved a total of [% savings | $Price with_symbol => 1 %] by using the library.
59
                            </div>
59
                                </div>
60
                        [% END %]
60
                            [% END %]
61
61
62
                            <div class="resultscontrol resort js-hide">
62
                            <div class="resultscontrol resort js-hide">
63
                                <form id="sortform" action="/cgi-bin/koha/opac-readingrecord.pl" method="get">
63
                                <form id="sortform" action="/cgi-bin/koha/opac-readingrecord.pl" method="get">
Lines 82-203 Link Here
82
                            [% END %]
82
                            [% END %]
83
83
84
                            [% IF Koha.Preference( 'OnSiteCheckouts' ) == 1 %]
84
                            [% IF Koha.Preference( 'OnSiteCheckouts' ) == 1 %]
85
                                <div id="tabs" class="toptabs">
85
                                [% WRAPPER tabs id= "tabs" %]
86
                                    <ul class="nav nav-tabs" role="tablist">
86
                                    [% WRAPPER tabs_nav %]
87
                                        <li class="nav-item" role="presentation">
87
                                        [% WRAPPER tab_item tabname= "all_checkouts" bt_active= 1 %]
88
                                            <a id="tab_all" class="nav-link active" data-toggle="tab" role="tab" aria-controls="tabs-container" aria-selected="true"  href="#tabs-container">All</a>
88
                                            <span>All</span>
89
                                        </li>
89
                                        [% END %]
90
                                        <li class="nav-item" role="presentation">
90
                                        [% WRAPPER tab_item tabname= "checkout" %]
91
                                            <a id="tab_checkout" class="nav-link" data-toggle="tab" role="tab" aria-controls="tabs-container" aria-selected="false"  href="#tabs-container">Checkouts</a>
91
                                            <span>Checkouts</span>
92
                                        </li>
92
                                        [% END %]
93
                                        <li class="nav-item" role="presentation">
93
                                        [% WRAPPER tab_item tabname= "onsite_checkout" %]
94
                                            <a id="tab_onsite_checkout" class="nav-link" data-toggle="tab" role="tab" aria-controls="tabs-container" aria-selected="false"  href="#tabs-container">On-site checkouts</a>
94
                                            <span>On-site checkouts</span>
95
                                        </li>
95
                                        [% END %]
96
                                    </ul>
96
                                    [% END # /WRAPPER tabs_nav %]
97
                                    <div class="tab-content">
97
                                    [% WRAPPER tab_panels %]
98
                            [% END %]
98
                                        [% WRAPPER tab_panel tabname="tabs-container" bt_active= 1 %]
99
                                <div class="tab-pane active" role="tabpanel" id="tabs-container">
99
                                            [% PROCESS checkout_history_table %]
100
                                    <table id="readingrec" class="table table-bordered table-striped">
100
                                        [% END # /tab_panel# %]
101
                                        <caption class="sr-only">Checkout history</caption>
101
                                    [% END # /WRAPPER tab_panels %]
102
                                        <thead>
102
                                [% END # /WRAPPER tabs %]
103
                                            <tr>
103
                            [% ELSE %]
104
                                                <th style="display:none;" class="noExport">Type</th>
104
                                [% PROCESS checkout_history_table %]
105
                                                <th class="NoSort noExport"></th>
106
                                                <th class="anti-the">Title</th>
107
                                                <th>Author</th>
108
                                                <th>Item type</th>
109
                                                <th>Call number</th>
110
                                                <th>Vol info</th>
111
                                                <th>Date</th>
112
                                                [% IF ( OPACMySummaryHTML ) %]
113
                                                    <th class="NoSort noExport">Links</th>
114
                                                [% END %]
115
                                            </tr>
116
                                        </thead>
117
                                        <tbody>
118
                                            [% FOREACH issue IN READING_RECORD %]
119
                                                <tr>
120
                                                    <td style="display:none;">
121
                                                      [% IF issue.onsite_checkout %][% issuetype = 'onsite_checkout' %]
122
                                                      [% ELSE %][% issuetype = 'standard_checkout' %]
123
                                                      [% END %]
124
                                                      [% issuetype | html %]
125
                                                    </td>
126
                                                <td>
127
                                                    [% IF  OPACAmazonCoverImages %]
128
                                                        [% IF  issue.normalized_isbn %]
129
                                                            <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>
130
                                                        [% ELSE %]
131
                                                             <span class="no-image">No cover image available</span>
132
                                                        [% END %]
133
                                                    [% END %]
134
135
                                                [% IF GoogleJackets %]
136
                                                    [% IF  issue.normalized_isbn %]
137
                                                        <div title="[% issue.biblionumber |url %]" class="[% issue.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
138
                                                    [% ELSE %]
139
                                                       <span class="no-image">No cover image available</span>
140
                                                    [% END %]
141
                                                [% END %]
142
143
                                                [% IF BakerTaylorEnabled %]
144
                                                    [% bt_id = ( issue.normalized_upc || issue.normalized_isbn ) %]
145
                                                    [% IF ( bt_id ) %]
146
                                                       <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
147
                                                    [% ELSE %]
148
                                                       <span class="no-image">No cover image available</span>
149
                                                    [% END %]
150
                                                [% END %]
151
152
                                                [% IF SyndeticsEnabled && SyndeticsCoverImages %]
153
                                                    <img src="https://secure.syndetics.com/index.aspx?isbn=[% issue.normalized_isbn | html %]/[% SyndeticsCoverImageSize | uri %].GIF&amp;client=[% SyndeticsClientCode | html %]&amp;type=xw10&amp;upc=[% issue.normalized_upc | html %]&amp;oclc=[% issue.normalized_oclc | html %]" alt="" class="item-thumbnail" />
154
                                                [% END %]
155
                                                </td>
156
                                                <td>
157
                                                [% INCLUDE 'biblio-title.inc' biblio=issue, link => 1 %]
158
                                                    [% IF ( Koha.Preference( 'OpacStarRatings' ) == 'all' ) %]
159
                                                        [% INCLUDE 'user-star-ratings.inc' item=issue %]
160
                                                    [% END %]
161
                                                </td>
162
                                                <td>[% issue.author | html %]</td>
163
                                                <td>
164
                                                [% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %]
165
                                                    [% IF ( issue.imageurl ) %]
166
                                                        <img src="[% issue.imageurl | html %]" alt="" />
167
                                                    [% END %]
168
                                                [% END %]
169
                                                <span class="itypetext"><span class="tdlabel">Item type:</span>
170
                                                [% issue.translated_description | html %]</span></td>
171
                                                <td>
172
                                                <span class="tdlabel">Call number:</span>
173
                                                [% issue.itemcallnumber | html %]
174
                                                </td>
175
                                                <td>
176
                                                    [% IF issue.enumchron %]
177
                                                        [% issue.enumchron | html %]
178
                                                    [% END %]
179
                                                </td>
180
                                                [% IF issue.returndate %]
181
                                                    <td data-order="[% issue.returndate | html %]">
182
                                                        <span class="tdlabel">Check-in date:</span>
183
                                                        [% issue.returndate | $KohaDates %]
184
                                                [% ELSE %]
185
                                                    <td data-order="Checked out">
186
                                                        <em>(Checked out)</em>
187
                                                [% END %]
188
                                                </td>
189
                                                [% IF OPACMySummaryHTML %]
190
                                                    <td>[% issue.MySummaryHTML | $raw %]</td>
191
                                                [% END %]
192
                                                </tr>
193
                                            [% END # / FOREACH issue %]
194
                                        </tbody>
195
                                    </table>
196
                                </div> <!-- / .tabs-container -->
197
                            [% IF ( Koha.Preference( 'OnSiteCheckouts' ) == 1 ) %]
198
                                    </div> <!-- /.tab-content -->
199
                                </div> <!-- /#tabs -->
200
                            [% END %]
105
                            [% END %]
106
201
                        </div> <!-- / .opac-user-readingrec -->
107
                        </div> <!-- / .opac-user-readingrec -->
202
                    [% END # / IF READING_RECORD.size %]
108
                    [% END # / IF READING_RECORD.size %]
203
                </div> <!-- / .userreadingrecord -->
109
                </div> <!-- / .userreadingrecord -->
Lines 206-211 Link Here
206
    </div> <!-- / .container-fluid -->
112
    </div> <!-- / .container-fluid -->
207
</div> <!-- / .main -->
113
</div> <!-- / .main -->
208
114
115
[% BLOCK checkout_history_table %]
116
    <table id="readingrec" class="table table-bordered table-striped">
117
        <caption class="sr-only">Checkout history</caption>
118
        <thead>
119
            <tr>
120
                <th style="display:none;" class="noExport">Type</th>
121
                <th class="NoSort noExport"></th>
122
                <th class="anti-the">Title</th>
123
                <th>Author</th>
124
                <th>Item type</th>
125
                <th>Call number</th>
126
                <th>Vol info</th>
127
                <th>Date</th>
128
                [% IF ( OPACMySummaryHTML ) %]
129
                    <th class="NoSort noExport">Links</th>
130
                [% END %]
131
            </tr>
132
        </thead>
133
        <tbody>
134
            [% FOREACH issue IN READING_RECORD %]
135
                <tr>
136
                    <td style="display:none;">
137
                    [% IF issue.onsite_checkout %][% issuetype = 'onsite_checkout' %]
138
                    [% ELSE %][% issuetype = 'standard_checkout' %]
139
                    [% END %]
140
                    [% issuetype | html %]
141
                    </td>
142
                <td>
143
                    [% IF  OPACAmazonCoverImages %]
144
                        [% IF  issue.normalized_isbn %]
145
                            <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>
146
                        [% ELSE %]
147
                            <span class="no-image">No cover image available</span>
148
                        [% END %]
149
                    [% END %]
150
151
                [% IF GoogleJackets %]
152
                    [% IF  issue.normalized_isbn %]
153
                        <div title="[% issue.biblionumber |url %]" class="[% issue.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
154
                    [% ELSE %]
155
                    <span class="no-image">No cover image available</span>
156
                    [% END %]
157
                [% END %]
158
159
                [% IF BakerTaylorEnabled %]
160
                    [% bt_id = ( issue.normalized_upc || issue.normalized_isbn ) %]
161
                    [% IF ( bt_id ) %]
162
                    <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
163
                    [% ELSE %]
164
                    <span class="no-image">No cover image available</span>
165
                    [% END %]
166
                [% END %]
167
168
                [% IF SyndeticsEnabled && SyndeticsCoverImages %]
169
                    <img src="https://secure.syndetics.com/index.aspx?isbn=[% issue.normalized_isbn | html %]/[% SyndeticsCoverImageSize | uri %].GIF&amp;client=[% SyndeticsClientCode | html %]&amp;type=xw10&amp;upc=[% issue.normalized_upc | html %]&amp;oclc=[% issue.normalized_oclc | html %]" alt="" class="item-thumbnail" />
170
                [% END %]
171
                </td>
172
                <td>
173
                [% INCLUDE 'biblio-title.inc' biblio=issue, link => 1 %]
174
                    [% IF ( Koha.Preference( 'OpacStarRatings' ) == 'all' ) %]
175
                        [% INCLUDE 'user-star-ratings.inc' item=issue %]
176
                    [% END %]
177
                </td>
178
                <td>[% issue.author | html %]</td>
179
                <td>
180
                [% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %]
181
                    [% IF ( issue.imageurl ) %]
182
                        <img src="[% issue.imageurl | html %]" alt="" />
183
                    [% END %]
184
                [% END %]
185
                <span class="itypetext"><span class="tdlabel">Item type:</span>
186
                [% issue.translated_description | html %]</span></td>
187
                <td>
188
                <span class="tdlabel">Call number:</span>
189
                [% issue.itemcallnumber | html %]
190
                </td>
191
                <td>
192
                    [% IF issue.enumchron %]
193
                        [% issue.enumchron | html %]
194
                    [% END %]
195
                </td>
196
                [% IF issue.returndate %]
197
                    <td data-order="[% issue.returndate | html %]">
198
                        <span class="tdlabel">Check-in date:</span>
199
                        [% issue.returndate | $KohaDates %]
200
                [% ELSE %]
201
                    <td data-order="Checked out">
202
                        <em>(Checked out)</em>
203
                [% END %]
204
                </td>
205
                [% IF OPACMySummaryHTML %]
206
                    <td>[% issue.MySummaryHTML | $raw %]</td>
207
                [% END %]
208
                </tr>
209
            [% END # / FOREACH issue %]
210
        </tbody>
211
    </table>
212
[% END %]
213
209
[% INCLUDE 'opac-bottom.inc' %]
214
[% INCLUDE 'opac-bottom.inc' %]
210
[% BLOCK jsinclude %]
215
[% BLOCK jsinclude %]
211
[% INCLUDE 'datatables.inc' %]
216
[% INCLUDE 'datatables.inc' %]
Lines 229-237 Link Here
229
234
230
        $("#tabs a[data-toggle='tab']").on("shown.bs.tab", function (e) {
235
        $("#tabs a[data-toggle='tab']").on("shown.bs.tab", function (e) {
231
            var id = e.target.id;
236
            var id = e.target.id;
232
            if ( id == "tab_checkout" ) {
237
            if ( id == "checkout-tab" ) {
233
                table.fnFilter("standard_checkout", 0);
238
                table.fnFilter("standard_checkout", 0);
234
            } else if ( id == "tab_onsite_checkout" ) {
239
            } else if ( id == "onsite_checkout-tab" ) {
235
                table.fnFilter("onsite_checkout", 0);
240
                table.fnFilter("onsite_checkout", 0);
236
            } else { // all
241
            } else { // all
237
                table.fnFilter('', 0);
242
                table.fnFilter('', 0);
238
- 

Return to bug 33893