4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Your checkout history</title>
6 [% INCLUDE 'doc-head-close.inc' %]
8 <style>ul.ui-tabs-nav li a, ul.ui-tabs-nav li span.a { padding:0.6em 1em; }</style>
11 [% INCLUDE 'bodytag.inc' bodyid='opac-readingrecord' %]
12 [% INCLUDE 'masthead.inc' %]
13 [% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
14 [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
16 [% IF Koha.Preference('AmazonAssocTag') %]
17 [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
19 [% AmazonAssocTag = '' %]
23 <ul class="breadcrumb">
24 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
25 <li><a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a> <span class="divider">›</span></li>
26 <li><a href="#">Your checkout history</a></li>
29 <div class="container-fluid">
30 <div class="row-fluid">
33 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
37 <div id="userreadingrecord">
38 <h3>Checkout history</h3>
40 [% IF READING_RECORD.size == 0 %]
41 You have never borrowed anything from this library.
43 <div id="opac-user-readingrec">
44 <div class="resultscontrol resort">
45 <form id="sortform" action="/cgi-bin/koha/opac-readingrecord.pl" method="get">
46 [% UNLESS ( limit ) %]<input type="hidden" name="limit" value="full" />[% END %]
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 %]
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 %]
52 <input type="submit" value="Go" id="sortsubmit" class="submit clearfix" />
58 Showing last 50 items. <a href="/cgi-bin/koha/opac-readingrecord.pl?limit=full[% IF ( orderbytitle ) %]&order=title[% END %]">Show all items</a>
62 Showing all items. <a href="/cgi-bin/koha/opac-readingrecord.pl?limit=50[% IF ( orderbytitle ) %]&order=title[% END %]">Show last 50 items</a>
66 [% IF Koha.Preference( 'OnSiteCheckouts' ) == 1 %]
67 <div id="tabs" class="toptabs">
69 <li><a href="#tabs-container" id="tab_all">All</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>
74 <div id="tabs-container" style="overflow:hidden">
75 <table id="readingrec" class="table table-bordered table-striped">
78 <th style="display:none;">Type</th>
79 <th class="nosort"></th>
80 <th class="anti-the">Title</th>
83 <th class="title-string">Date</th>
84 [% IF ( OPACMySummaryHTML ) %]
90 [% FOREACH issue IN READING_RECORD %]
92 <td style="display:none;">
93 [% IF issue.onsite_checkout %][% issuetype = 'onsite_checkout' %]
94 [% ELSE %][% issuetype = 'standard_checkout' %]
96 [% issuetype | html %]
99 [% IF ( AdlibrisEnabled && issue.normalized_isbn ) %]
100 [% IF issue.BiblioDefaultViewmarc %]
101 <a href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% issue.biblionumber |url %]">
102 [% ELSIF issue.BiblioDefaultViewisbd %]
103 <a href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% issue.biblionumber |url %]">
105 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% issue.biblionumber |url %]">
107 <img src="[% AdlibrisURL | html %]?isbn=[% issue.normalized_isbn | html %]" class="adlibris-cover" alt="Adlibris cover image" /></a>
109 [% IF OPACAmazonCoverImages %]
110 [% IF issue.normalized_isbn %]
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>
113 <span class="no-image">No cover image available</span>
117 [% IF GoogleJackets %]
118 [% IF issue.normalized_isbn %]
119 <div title="[% issue.biblionumber |url %]" class="[% issue.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
121 <span class="no-image">No cover image available</span>
125 [% IF BakerTaylorEnabled %]
126 [% bt_id = ( issue.normalized_upc || issue.normalized_isbn ) %]
128 <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
130 <span class="no-image">No cover image available</span>
134 [% IF SyndeticsEnabled && SyndeticsCoverImages %]
135 <img src="https://secure.syndetics.com/index.aspx?isbn=[% issue.normalized_isbn | html %]/SC.GIF&client=[% SyndeticsClientCode | html %]&type=xw10&upc=[% issue.normalized_upc | html %]&oclc=[% issue.normalized_oclc | html %]" alt="" class="item-thumbnail" />
139 [% IF issue.BiblioDefaultViewmarc %]
140 <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% issue.biblionumber |url %]">[% INCLUDE 'biblio-title.inc' biblio=issue %]</a>
141 [% ELSIF issue.BiblioDefaultViewisbd %]
142 <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% issue.biblionumber |url %]">[% INCLUDE 'biblio-title.inc' biblio=issue %]</a>
144 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% issue.biblionumber |url %]">[% INCLUDE 'biblio-title.inc' biblio=issue %]</a>
146 <p class="results-summary item-details">[% issue.author | html %]</p>
148 [% IF ( Koha.Preference( 'OpacStarRatings' ) == 'all' && issue.my_rating ) %]
149 <div class="results_summary ratings">
150 <div class="br-wrapper br-theme-fontawesome-stars">
151 <div class="br-widget br-readonly">
152 [% FOREACH i IN [ 1 2 3 4 5 ] %]
153 [% IF issue.my_rating.rating_value == i %]
154 <a href="#" class="br-selected br-current"></a>
155 [% ELSIF issue.my_rating.rating_value > i %]
156 <a href="#" class="br-selected"></a>
163 Rated on [% issue.my_rating.timestamp | $KohaDates %]
164 </div> <!-- / .results_summary -->
165 [% END # / IF OpacStarRatings %]
169 [% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %]
170 [% IF ( issue.imageurl ) %]
171 <img src="[% issue.imageurl | html %]" alt="" />
174 <span class="tdlabel">Item type:</span>
175 [% issue.translated_description | html %]</td>
177 <span class="tdlabel">Call number:</span>
178 [% issue.itemcallnumber | html %]
181 [% IF issue.returndate %]
182 <span class="tdlabel">Check-in date:</span>
183 <span title="[% issue.returndate | html %]">[% issue.returndate | $KohaDates %]</span>
185 <span title="Checked out"><em>(Checked out)</em></span>
188 [% IF OPACMySummaryHTML %]
189 <td>[% issue.MySummaryHTML | $raw %]</td>
192 [% END # / FOREACH issue %]
195 </div> <!-- / .tabs-container -->
196 [% IF ( Koha.Preference( 'OnSiteCheckouts' ) == 1 ) %]
197 </div> <!-- /#tabs -->
199 </div> <!-- / .opac-user-readingrec -->
200 [% END # / IF READING_RECORD.size %]
201 </div> <!-- / .userreadingrecord -->
202 </div> <!-- / .span10 -->
203 </div> <!-- / .row-fluid -->
204 </div> <!-- / .container-fluid -->
205 </div> <!-- / .main -->
207 [% INCLUDE 'opac-bottom.inc' %]
208 [% BLOCK jsinclude %]
209 [% INCLUDE 'datatables.inc' %]
211 $(document).ready(function(){
212 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
213 $('#order').change(function() {
214 $('#sortform').submit();
217 var table = $("#readingrec").dataTable($.extend(true, {}, dataTablesDefaults, {
218 "sPaginationType": "four_button",
220 { "targets": [ "nosort" ],"sortable": false,"searchable": false },
221 { "type": "anti-the", "targets" : [ "anti-the" ] },
222 { "type": "title-string", "targets" : [ "title-string" ] }
225 var tabs = $("#tabs").tabs({
226 select: function(e, ui) {
227 var id = $(ui.tab).attr("id");
228 if ( id == "tab_checkout" ) {
229 table.fnFilter("standard_checkout", 0);
230 } else if ( id == "tab_onsite_checkout" ) {
231 table.fnFilter("onsite_checkout", 0);
233 table.fnFilter('', 0);