|
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-205
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 tabid= "all_checkouts" tabname="tabs-container" 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 tabid= "checkout" tabname="tabs-container" %] |
| 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 tabid= "onsite_checkout" tabname="tabs-container" %] |
| 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 |
[% WRAPPER tab_panel tabname="tabs-container" bt_active= 1 %] |
| 99 |
[% PROCESS checkout_history_table %] |
| 100 |
[% END # /tab_panel# %] |
| 101 |
[% END # /WRAPPER tab_panels %] |
| 102 |
[% END # /WRAPPER tabs %] |
| 103 |
[% ELSE %] |
| 104 |
[% PROCESS checkout_history_table %] |
| 98 |
[% END %] |
105 |
[% END %] |
| 99 |
<div class="tab-pane active" role="tabpanel" id="tabs-container"> |
|
|
| 100 |
<table id="readingrec" class="table table-bordered table-striped"> |
| 101 |
<caption class="sr-only">Checkout history</caption> |
| 102 |
<thead> |
| 103 |
<tr> |
| 104 |
<th style="display:none;" class="noExport">Type</th> |
| 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 |
<th></th> |
| 116 |
</tr> |
| 117 |
</thead> |
| 118 |
<tbody> |
| 119 |
[% FOREACH issue IN READING_RECORD %] |
| 120 |
<tr> |
| 121 |
<td style="display:none;"> |
| 122 |
[% IF issue.onsite_checkout %][% issuetype = 'onsite_checkout' %] |
| 123 |
[% ELSE %][% issuetype = 'standard_checkout' %] |
| 124 |
[% END %] |
| 125 |
[% issuetype | html %] |
| 126 |
</td> |
| 127 |
<td> |
| 128 |
[% IF OPACAmazonCoverImages %] |
| 129 |
[% IF issue.normalized_isbn %] |
| 130 |
<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> |
| 131 |
[% ELSE %] |
| 132 |
<span class="no-image">No cover image available</span> |
| 133 |
[% END %] |
| 134 |
[% END %] |
| 135 |
|
106 |
|
| 136 |
[% IF GoogleJackets %] |
|
|
| 137 |
[% IF issue.normalized_isbn %] |
| 138 |
<div title="[% issue.biblionumber |url %]" class="[% issue.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div> |
| 139 |
[% ELSE %] |
| 140 |
<span class="no-image">No cover image available</span> |
| 141 |
[% END %] |
| 142 |
[% END %] |
| 143 |
|
| 144 |
[% IF BakerTaylorEnabled %] |
| 145 |
[% bt_id = ( issue.normalized_upc || issue.normalized_isbn ) %] |
| 146 |
[% IF ( bt_id ) %] |
| 147 |
<a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a> |
| 148 |
[% ELSE %] |
| 149 |
<span class="no-image">No cover image available</span> |
| 150 |
[% END %] |
| 151 |
[% END %] |
| 152 |
|
| 153 |
[% IF SyndeticsEnabled && SyndeticsCoverImages %] |
| 154 |
<img src="https://secure.syndetics.com/index.aspx?isbn=[% issue.normalized_isbn | html %]/[% SyndeticsCoverImageSize | uri %].GIF&client=[% SyndeticsClientCode | html %]&type=xw10&upc=[% issue.normalized_upc | html %]&oclc=[% issue.normalized_oclc | html %]" alt="" class="item-thumbnail" /> |
| 155 |
[% END %] |
| 156 |
</td> |
| 157 |
<td> |
| 158 |
[% INCLUDE 'biblio-title.inc' biblio=issue, link => 1 %] |
| 159 |
[% IF ( Koha.Preference( 'OpacStarRatings' ) == 'all' ) %] |
| 160 |
[% INCLUDE 'user-star-ratings.inc' item=issue %] |
| 161 |
[% END %] |
| 162 |
</td> |
| 163 |
<td>[% issue.author | html %]</td> |
| 164 |
<td> |
| 165 |
[% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %] |
| 166 |
[% IF ( issue.imageurl ) %] |
| 167 |
<img src="[% issue.imageurl | html %]" alt="" /> |
| 168 |
[% END %] |
| 169 |
[% END %] |
| 170 |
<span class="itypetext"><span class="tdlabel">Item type:</span> |
| 171 |
[% issue.translated_description | html %]</span></td> |
| 172 |
<td> |
| 173 |
<span class="tdlabel">Call number:</span> |
| 174 |
[% issue.itemcallnumber | html %] |
| 175 |
</td> |
| 176 |
<td> |
| 177 |
[% IF issue.enumchron %] |
| 178 |
[% issue.enumchron | html %] |
| 179 |
[% END %] |
| 180 |
</td> |
| 181 |
[% IF issue.returndate %] |
| 182 |
<td data-order="[% issue.returndate | html %]"> |
| 183 |
<span class="tdlabel">Check-in date:</span> |
| 184 |
[% issue.returndate | $KohaDates %] |
| 185 |
[% ELSE %] |
| 186 |
<td data-order="Checked out"> |
| 187 |
<em>(Checked out)</em> |
| 188 |
[% END %] |
| 189 |
</td> |
| 190 |
[% IF OPACMySummaryHTML %] |
| 191 |
<td>[% issue.MySummaryHTML | $raw %]</td> |
| 192 |
[% END %] |
| 193 |
<td></td> |
| 194 |
</tr> |
| 195 |
[% END # / FOREACH issue %] |
| 196 |
</tbody> |
| 197 |
</table> |
| 198 |
</div> <!-- / .tabs-container --> |
| 199 |
[% IF ( Koha.Preference( 'OnSiteCheckouts' ) == 1 ) %] |
| 200 |
</div> <!-- /.tab-content --> |
| 201 |
</div> <!-- /#tabs --> |
| 202 |
[% END %] |
| 203 |
</div> <!-- / .opac-user-readingrec --> |
107 |
</div> <!-- / .opac-user-readingrec --> |
| 204 |
[% END # / IF READING_RECORD.size %] |
108 |
[% END # / IF READING_RECORD.size %] |
| 205 |
</div> <!-- / .userreadingrecord --> |
109 |
</div> <!-- / .userreadingrecord --> |
|
Lines 208-213
Link Here
|
| 208 |
</div> <!-- / .container-fluid --> |
112 |
</div> <!-- / .container-fluid --> |
| 209 |
</div> <!-- / .main --> |
113 |
</div> <!-- / .main --> |
| 210 |
|
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 |
<th></th> |
| 132 |
</tr> |
| 133 |
</thead> |
| 134 |
<tbody> |
| 135 |
[% FOREACH issue IN READING_RECORD %] |
| 136 |
<tr> |
| 137 |
<td style="display:none;"> |
| 138 |
[% IF issue.onsite_checkout %][% issuetype = 'onsite_checkout' %] |
| 139 |
[% ELSE %][% issuetype = 'standard_checkout' %] |
| 140 |
[% END %] |
| 141 |
[% issuetype | html %] |
| 142 |
</td> |
| 143 |
<td> |
| 144 |
[% IF OPACAmazonCoverImages %] |
| 145 |
[% IF issue.normalized_isbn %] |
| 146 |
<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> |
| 147 |
[% ELSE %] |
| 148 |
<span class="no-image">No cover image available</span> |
| 149 |
[% END %] |
| 150 |
[% END %] |
| 151 |
|
| 152 |
[% IF GoogleJackets %] |
| 153 |
[% IF issue.normalized_isbn %] |
| 154 |
<div title="[% issue.biblionumber |url %]" class="[% issue.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div> |
| 155 |
[% ELSE %] |
| 156 |
<span class="no-image">No cover image available</span> |
| 157 |
[% END %] |
| 158 |
[% END %] |
| 159 |
|
| 160 |
[% IF BakerTaylorEnabled %] |
| 161 |
[% bt_id = ( issue.normalized_upc || issue.normalized_isbn ) %] |
| 162 |
[% IF ( bt_id ) %] |
| 163 |
<a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a> |
| 164 |
[% ELSE %] |
| 165 |
<span class="no-image">No cover image available</span> |
| 166 |
[% END %] |
| 167 |
[% END %] |
| 168 |
|
| 169 |
[% IF SyndeticsEnabled && SyndeticsCoverImages %] |
| 170 |
<img src="https://secure.syndetics.com/index.aspx?isbn=[% issue.normalized_isbn | html %]/[% SyndeticsCoverImageSize | uri %].GIF&client=[% SyndeticsClientCode | html %]&type=xw10&upc=[% issue.normalized_upc | html %]&oclc=[% issue.normalized_oclc | html %]" alt="" class="item-thumbnail" /> |
| 171 |
[% END %] |
| 172 |
</td> |
| 173 |
<td> |
| 174 |
[% INCLUDE 'biblio-title.inc' biblio=issue, link => 1 %] |
| 175 |
[% IF ( Koha.Preference( 'OpacStarRatings' ) == 'all' ) %] |
| 176 |
[% INCLUDE 'user-star-ratings.inc' item=issue %] |
| 177 |
[% END %] |
| 178 |
</td> |
| 179 |
<td>[% issue.author | html %]</td> |
| 180 |
<td> |
| 181 |
[% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %] |
| 182 |
[% IF ( issue.imageurl ) %] |
| 183 |
<img src="[% issue.imageurl | html %]" alt="" /> |
| 184 |
[% END %] |
| 185 |
[% END %] |
| 186 |
<span class="itypetext"><span class="tdlabel">Item type:</span> |
| 187 |
[% issue.translated_description | html %]</span> |
| 188 |
</td> |
| 189 |
<td> |
| 190 |
<span class="tdlabel">Call number:</span> |
| 191 |
[% issue.itemcallnumber | html %] |
| 192 |
</td> |
| 193 |
<td> |
| 194 |
[% IF issue.enumchron %] |
| 195 |
[% issue.enumchron | html %] |
| 196 |
[% END %] |
| 197 |
</td> |
| 198 |
[% IF issue.returndate %] |
| 199 |
<td data-order="[% issue.returndate | html %]"> |
| 200 |
<span class="tdlabel">Check-in date:</span> |
| 201 |
[% issue.returndate | $KohaDates %] |
| 202 |
[% ELSE %] |
| 203 |
<td data-order="Checked out"> |
| 204 |
<em>(Checked out)</em> |
| 205 |
[% END %] |
| 206 |
</td> |
| 207 |
[% IF OPACMySummaryHTML %] |
| 208 |
<td>[% issue.MySummaryHTML | $raw %]</td> |
| 209 |
[% END %] |
| 210 |
<td></td> |
| 211 |
</tr> |
| 212 |
[% END # / FOREACH issue %] |
| 213 |
</tbody> |
| 214 |
</table> |
| 215 |
[% END %] |
| 216 |
|
| 211 |
[% INCLUDE 'opac-bottom.inc' %] |
217 |
[% INCLUDE 'opac-bottom.inc' %] |
| 212 |
[% BLOCK jsinclude %] |
218 |
[% BLOCK jsinclude %] |
| 213 |
[% INCLUDE 'datatables.inc' %] |
219 |
[% INCLUDE 'datatables.inc' %] |
|
Lines 239-247
Link Here
|
| 239 |
|
245 |
|
| 240 |
$("#tabs a[data-toggle='tab']").on("shown.bs.tab", function (e) { |
246 |
$("#tabs a[data-toggle='tab']").on("shown.bs.tab", function (e) { |
| 241 |
var id = e.target.id; |
247 |
var id = e.target.id; |
| 242 |
if ( id == "tab_checkout" ) { |
248 |
if ( id == "checkout-tab" ) { |
| 243 |
table.fnFilter("standard_checkout", 0); |
249 |
table.fnFilter("standard_checkout", 0); |
| 244 |
} else if ( id == "tab_onsite_checkout" ) { |
250 |
} else if ( id == "onsite_checkout-tab" ) { |
| 245 |
table.fnFilter("onsite_checkout", 0); |
251 |
table.fnFilter("onsite_checkout", 0); |
| 246 |
} else { // all |
252 |
} else { // all |
| 247 |
table.fnFilter('', 0); |
253 |
table.fnFilter('', 0); |
| 248 |
- |
|
|