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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt (-86 / +99 lines)
Lines 31-37 Link Here
31
                    [% IF READING_RECORD.size == 0 %]
31
                    [% IF READING_RECORD.size == 0 %]
32
                        You have never borrowed anything from this library.
32
                        You have never borrowed anything from this library.
33
                    [% ELSE %]
33
                    [% ELSE %]
34
                        <div id="opac-user-readingrec" class="statictabs2">
34
                        <div id="opac-user-readingrec">
35
                            <div class="resultscontrol resort">
35
                            <div class="resultscontrol resort">
36
                                <form id="sortform" action="/cgi-bin/koha/opac-readingrecord.pl" method="get">
36
                                <form id="sortform" action="/cgi-bin/koha/opac-readingrecord.pl" method="get">
37
                                    [% UNLESS ( limit ) %]<input type="hidden" name="limit" value="full" />[% END %]
37
                                    [% UNLESS ( limit ) %]<input type="hidden" name="limit" value="full" />[% END %]
Lines 44-158 Link Here
44
                            </div>
44
                            </div>
45
45
46
                            [% IF limit %]
46
                            [% IF limit %]
47
                                <a href="/cgi-bin/koha/opac-readingrecord.pl?limit=full[% IF ( orderbytitle ) %]&amp;order=title[% END %]">Show all items</a>
47
                                <p>
48
                                    Showing last 50 items. <a href="/cgi-bin/koha/opac-readingrecord.pl?limit=full[% IF ( orderbytitle ) %]&amp;order=title[% END %]">Show all items</a>
49
                                </p>
48
                            [% ELSE %]
50
                            [% ELSE %]
49
                                <a href="/cgi-bin/koha/opac-readingrecord.pl?limit=50[% IF ( orderbytitle ) %]&amp;order=title[% END %]">Showing last 50 items</a>
51
                                <p>
52
                                    Showing all items. <a href="/cgi-bin/koha/opac-readingrecord.pl?limit=50[% IF ( orderbytitle ) %]&amp;order=title[% END %]">Show last 50 items</a>
53
                                </p>
50
                            [% END %]
54
                            [% END %]
51
55
56
                            [% IF Koha.Preference( 'OnSiteCheckouts' ) == 1 %]
52
                            <div id="tabs" class="toptabs">
57
                            <div id="tabs" class="toptabs">
53
                                <ul>
58
                                <ul>
54
                                    <li><a href="#tabs-container" id="tab_all">All</a></li>
59
                                    <li><a href="#tabs-container" id="tab_all">All</a></li>
55
                                    <li><a href="#tabs-container" id="tab_checkout">Checkouts</a></li>
60
                                    <li><a href="#tabs-container" id="tab_checkout">Checkouts</a></li>
56
                                    <li><a href="#tabs-container" id="tab_onsite_checkout">On-site checkouts</a></li>
61
                                    <li><a href="#tabs-container" id="tab_onsite_checkout">On-site checkouts</a></li>
57
                                </ul>
62
                                </ul>
63
                            [% END %]
58
                                <div id="tabs-container" style="overflow:hidden">
64
                                <div id="tabs-container" style="overflow:hidden">
59
                                    <table id="readingrec" class="table table-bordered table-striped">
65
                                    <table id="readingrec" class="table table-bordered table-striped">
60
                                        <thead>
66
                                        <thead>
61
                                            <tr>
67
                                            <tr>
62
                                                <th style="display:none;">Type</th>
68
                                                <th style="display:none;">Type</th>
63
                                                <th></th>
69
                                                <th class="nosort"></th>
64
                                                <th>Title</th>
70
                                                <th class="anti-the">Title</th>
65
                                                <th>Item type</th>
71
                                                <th>Item type</th>
66
                                                <th>Call no.</th>
72
                                                <th>Call no.</th>
67
                                                <th>Date</th>
73
                                                <th class="title-string">Date</th>
68
                                                [% IF ( OPACMySummaryHTML ) %]
74
                                                [% IF ( OPACMySummaryHTML ) %]
69
                                                    <th>Links</th>
75
                                                    <th>Links</th>
70
                                                [% END %]
76
                                                [% END %]
71
                                            </tr>
77
                                            </tr>
72
                                        </thead>
78
                                        </thead>
73
                                        <tbody>
79
                                        <tbody>
74
                                    [% FOREACH issue IN READING_RECORD %]
80
                                            [% FOREACH issue IN READING_RECORD %]
75
                                        <tr>
81
                                                <tr>
76
                                            <td style="display:none;">
82
                                                    <td style="display:none;">
77
                                              [% IF issue.onsite_checkout %]
83
                                                      [% IF issue.onsite_checkout %]
78
                                                onsite
84
                                                        onsite
79
                                              [% ELSE %]
85
                                                      [% ELSE %]
80
                                                checkout
86
                                                        checkout
81
                                              [% END %]
87
                                                      [% END %]
82
                                            </td>
88
                                                    </td>
83
                                        <td>
89
                                                <td>
84
                                            [% IF  OPACAmazonCoverImages %]
90
                                                    [% IF  OPACAmazonCoverImages %]
85
                                                [% IF  issue.normalized_isbn %]
91
                                                        [% IF  issue.normalized_isbn %]
86
                                                    <a href="http://www.amazon.com/gp/reader/[% issue.normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% issue.normalized_isbn %].01.THUMBZZZ.jpg" alt="" class="item-thumbnail" /></a>
92
                                                            <a href="http://www.amazon.com/gp/reader/[% issue.normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% issue.normalized_isbn %].01.THUMBZZZ.jpg" alt="" class="item-thumbnail" /></a>
87
                                                [% ELSE %]
93
                                                        [% ELSE %]
88
                                                     <span class="no-image">No cover image available</span>
94
                                                             <span class="no-image">No cover image available</span>
89
                                                [% END %]
95
                                                        [% END %]
90
                                            [% END %]
96
                                                    [% END %]
91
97
92
                                        [% IF GoogleJackets %]
98
                                                [% IF GoogleJackets %]
93
                                            [% IF  issue.normalized_isbn %]
99
                                                    [% IF  issue.normalized_isbn %]
94
                                                <div title="[% issue.biblionumber |url %]" class="[% issue.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>
100
                                                        <div title="[% issue.biblionumber |url %]" class="[% issue.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>
95
                                            [% ELSE %]
101
                                                    [% ELSE %]
96
                                               <span class="no-image">No cover image available</span>
102
                                                       <span class="no-image">No cover image available</span>
97
                                            [% END %]
103
                                                    [% END %]
98
                                        [% END %]
104
                                                [% END %]
99
105
100
                                        [% IF BakerTaylorEnabled %]
106
                                                [% IF BakerTaylorEnabled %]
101
                                            [% IF issue.normalized_isbn %]
107
                                                    [% IF issue.normalized_isbn %]
102
                                              <a href="https://[% BakerTaylorBookstoreURL |html %][% issue.normalized_isbn %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |html %][% issue.normalized_isbn %]" /></a>
108
                                                      <a href="https://[% BakerTaylorBookstoreURL |html %][% issue.normalized_isbn %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |html %][% issue.normalized_isbn %]" /></a>
103
                                            [% ELSE %]
109
                                                    [% ELSE %]
104
                                               <span class="no-image">No cover image available</span>
110
                                                       <span class="no-image">No cover image available</span>
105
                                            [% END %]
111
                                                    [% END %]
106
                                        [% END %]
112
                                                [% END %]
107
113
108
                                        [% IF SyndeticsEnabled && SyndeticsCoverImages %]
114
                                                [% IF SyndeticsEnabled && SyndeticsCoverImages %]
109
                                            [% IF  using_https  %]
115
                                                    [% IF  using_https  %]
110
                                                <img src="https://secure.syndetics.com/index.aspx?isbn=[% issue.normalized_isbn %]/SC.GIF&amp;client=[% SyndeticsClientCode %]&amp;type=xw10&amp;upc=[% issue.normalized_upc %]&amp;oclc=[% issue.normalized_oclc %]" alt="" class="item-thumbnail" />
116
                                                        <img src="https://secure.syndetics.com/index.aspx?isbn=[% issue.normalized_isbn %]/SC.GIF&amp;client=[% SyndeticsClientCode %]&amp;type=xw10&amp;upc=[% issue.normalized_upc %]&amp;oclc=[% issue.normalized_oclc %]" alt="" class="item-thumbnail" />
111
                                           [% ELSE %]
117
                                                   [% ELSE %]
112
                                                <img src="http://www.syndetics.com/index.aspx?isbn=[% issue.normalized_isbn %]/SC.GIF&amp;client=[% SyndeticsClientCode %]&amp;type=xw10&amp;upc=[% issue.normalized_upc %]&amp;oclc=[% issue.normalized_oclc %]" alt="" class="item-thumbnail" />
118
                                                        <img src="http://www.syndetics.com/index.aspx?isbn=[% issue.normalized_isbn %]/SC.GIF&amp;client=[% SyndeticsClientCode %]&amp;type=xw10&amp;upc=[% issue.normalized_upc %]&amp;oclc=[% issue.normalized_oclc %]" alt="" class="item-thumbnail" />
113
                                           [% END %]
119
                                                   [% END %]
114
                                        [% END %]
120
                                                [% END %]
115
                                        </td>
121
                                                </td>
116
                                        <td>
122
                                                <td>
117
                                        [% IF  issue.BiblioDefaultViewmarc %]
123
                                                [% IF  issue.BiblioDefaultViewmarc %]
118
                                             <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 %][% END %][% END %]</a>
124
                                                     <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 %][% END %][% END %]</a>
119
                                        [% ELSIF issue.BiblioDefaultViewisbd %]
125
                                                [% ELSIF issue.BiblioDefaultViewisbd %]
120
                                             <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 %][% END %][% END %]</a>
126
                                                     <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 %][% END %][% END %]</a>
121
                                        [% ELSE %]
127
                                                [% ELSE %]
122
                                             <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 %][% END %][% END %]</a>
128
                                                     <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 %][% END %][% END %]</a>
123
                                        [% END %]
129
                                                [% END %]
124
                                        <span class="item-details">[% issue.author %]</span>
130
                                                <span class="item-details">[% issue.author %]</span>
125
                                        </td>
131
                                                </td>
126
                                        <td>
132
                                                <td>
127
                                        [% UNLESS ( noItemTypeImages ) %]
133
                                                [% UNLESS ( noItemTypeImages ) %]
128
                                            [% IF ( issue.imageurl ) %]
134
                                                    [% IF ( issue.imageurl ) %]
129
                                                <img src="[% issue.imageurl %]" alt="" />
135
                                                        <img src="[% issue.imageurl %]" alt="" />
130
                                            [% END %]
136
                                                    [% END %]
131
                                        [% END %]
137
                                                [% END %]
132
                                        <span class="tdlabel">Item type:</span>
138
                                                <span class="tdlabel">Item type:</span>
133
                                        [% issue.description %]</td>
139
                                                [% issue.description %]</td>
134
                                        <td>
140
                                                <td>
135
                                        <span class="tdlabel">Call number:</span>
141
                                                <span class="tdlabel">Call number:</span>
136
                                        [% issue.itemcallnumber %]
142
                                                [% issue.itemcallnumber %]
137
                                        </td>
143
                                                </td>
138
                                        <td>
144
                                                <td>
139
                                        [% IF issue.returndate %]
145
                                                    [% IF issue.returndate %]
140
                                            <span class="tdlabel">Check-in date:</span>
146
                                                        <span class="tdlabel">Check-in date:</span>
141
                                            [% issue.returndate | $KohaDates %]
147
                                                        <span title="[% issue.returndate %]">[% issue.returndate | $KohaDates %]</span>
142
                                        [% ELSE %]
148
                                                    [% ELSE %]
143
                                            <em>(Checked out)</em>
149
                                                        <span title="Checked out"><em>(Checked out)</em></span>
144
                                        [% END %]
150
                                                    [% END %]
145
                                        </td>
151
                                                </td>
146
                                        [% IF OPACMySummaryHTML %]
152
                                                [% IF OPACMySummaryHTML %]
147
                                            <td>[% issue.MySummaryHTML %]</td>
153
                                                    <td>[% issue.MySummaryHTML %]</td>
148
                                        [% END %]
154
                                                [% END %]
149
                                        </tr>
155
                                                </tr>
150
                                    [% END %]
156
                                            [% END # / FOREACH issue %]
151
                                </tbody>
157
                                        </tbody>
152
                            </table>
158
                                    </table>
153
                        </div> <!-- / .tabs-container -->
159
                                </div> <!-- / .tabs-container -->
154
                    </div> <!-- / .opac-user-readingrec -->
160
                            [% IF ( Koha.Preference( 'OnSiteCheckouts' ) == 1 ) %]
155
                [% END %]
161
                                </div> <!-- /#tabs -->
162
                            [% END %]
163
                        </div> <!-- / .opac-user-readingrec -->
164
                    [% END # / IF READING_RECORD.size %]
156
                </div> <!-- / .userreadingrecord -->
165
                </div> <!-- / .userreadingrecord -->
157
            </div> <!-- / .span10 -->
166
            </div> <!-- / .span10 -->
158
        </div> <!-- / .row-fluid -->
167
        </div> <!-- / .row-fluid -->
Lines 173-178 Link Here
173
182
174
        var table = $("#readingrec").dataTable($.extend(true, {}, dataTablesDefaults, {
183
        var table = $("#readingrec").dataTable($.extend(true, {}, dataTablesDefaults, {
175
            "sPaginationType": "four_button",
184
            "sPaginationType": "four_button",
185
            "aoColumnDefs": [
186
                { "aTargets": [ "nosort" ],"bSortable": false,"bSearchable": false },
187
                { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
188
                { "sType": "title-string", "aTargets" : [ "title-string" ] }
189
            ]
176
        }));
190
        }));
177
        var tabs = $("#tabs").tabs({
191
        var tabs = $("#tabs").tabs({
178
            select: function(e, ui) {
192
            select: function(e, ui) {
179
- 

Return to bug 13234