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 <nav aria-label="breadcrumb">
24 <ul class="breadcrumb">
25 <li class="breadcrumb-item">
26 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
28 <li class="breadcrumb-item">
29 <a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a>
31 <li class="breadcrumb-item" aria-current="page">
32 <a href="#">Your checkout history</a>
37 <div class="container-fluid">
39 <div class="col col-lg-2 order-2 order-lg-1">
41 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
44 <div class="col-md-12 col-lg-10 order-1">
46 <div id="userreadingrecord" class="maincontent">
47 <h3>Checkout history</h3>
49 [% IF READING_RECORD.size == 0 %]
50 You have never borrowed anything from this library.
52 <div id="opac-user-readingrec">
53 <div class="resultscontrol resort">
54 <form id="sortform" action="/cgi-bin/koha/opac-readingrecord.pl" method="get">
55 [% UNLESS ( limit ) %]<input type="hidden" name="limit" value="full" />[% END %]
56 <select name="order" id="order">
57 [% IF ( orderbydate ) %]<option value="" selected="selected">Order by date</option>[% ELSE %]<option value="">Order by date</option>[% END %]
58 [% IF ( orderbytitle ) %]<option value="title" selected="selected">Order by title</option>[% ELSE %]<option value="title">Order by title</option>[% END %]
59 [% IF ( orderbyauthor ) %]<option value="author" selected="selected">Order by author</option>[% ELSE %]<option value="author">Order by author</option>[% END %]
61 <input type="submit" value="Go" id="sortsubmit" class="submit clearfix" />
67 Showing last 50 items. <a href="/cgi-bin/koha/opac-readingrecord.pl?limit=full[% IF ( orderbytitle ) %]&order=title[% END %]">Show all items</a>
71 Showing all items. <a href="/cgi-bin/koha/opac-readingrecord.pl?limit=50[% IF ( orderbytitle ) %]&order=title[% END %]">Show last 50 items</a>
75 [% IF Koha.Preference( 'OnSiteCheckouts' ) == 1 %]
76 <div id="tabs" class="toptabs">
78 <li id="tab_all"><a href="#tabs-container">All</a></li>
79 <li id="tab_checkout"><a href="#tabs-container">Checkouts</a></li>
80 <li id="tab_onsite_checkout"><a href="#tabs-container">On-site checkouts</a></li>
83 <div id="tabs-container" style="overflow:hidden">
84 <table id="readingrec" class="table table-bordered table-striped">
87 <th style="display:none;">Type</th>
88 <th class="nosort"></th>
89 <th class="anti-the">Title</th>
92 <th class="title-string">Date</th>
93 [% IF ( OPACMySummaryHTML ) %]
99 [% FOREACH issue IN READING_RECORD %]
101 <td style="display:none;">
102 [% IF issue.onsite_checkout %][% issuetype = 'onsite_checkout' %]
103 [% ELSE %][% issuetype = 'standard_checkout' %]
105 [% issuetype | html %]
108 [% IF ( AdlibrisEnabled && issue.normalized_isbn ) %]
109 [% IF issue.BiblioDefaultViewmarc %]
110 <a href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% issue.biblionumber |url %]">
111 [% ELSIF issue.BiblioDefaultViewisbd %]
112 <a href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% issue.biblionumber |url %]">
114 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% issue.biblionumber |url %]">
116 <img src="[% AdlibrisURL | html %]?isbn=[% issue.normalized_isbn | html %]" class="adlibris-cover" alt="Adlibris cover image" /></a>
118 [% IF OPACAmazonCoverImages %]
119 [% IF issue.normalized_isbn %]
120 <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>
122 <span class="no-image">No cover image available</span>
126 [% IF GoogleJackets %]
127 [% IF issue.normalized_isbn %]
128 <div title="[% issue.biblionumber |url %]" class="[% issue.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
130 <span class="no-image">No cover image available</span>
134 [% IF BakerTaylorEnabled %]
135 [% bt_id = ( issue.normalized_upc || issue.normalized_isbn ) %]
137 <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
139 <span class="no-image">No cover image available</span>
143 [% IF SyndeticsEnabled && SyndeticsCoverImages %]
144 <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" />
148 [% IF issue.BiblioDefaultViewmarc %]
149 <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% issue.biblionumber |url %]">[% INCLUDE 'biblio-title.inc' biblio=issue %]</a>
150 [% ELSIF issue.BiblioDefaultViewisbd %]
151 <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% issue.biblionumber |url %]">[% INCLUDE 'biblio-title.inc' biblio=issue %]</a>
153 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% issue.biblionumber |url %]">[% INCLUDE 'biblio-title.inc' biblio=issue %]</a>
155 <p class="results-summary item-details">[% issue.author | html %]</p>
157 [% IF ( Koha.Preference( 'OpacStarRatings' ) == 'all' ) %]
158 [% INCLUDE 'user-star-ratings.inc' item=issue %]
163 [% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %]
164 [% IF ( issue.imageurl ) %]
165 <img src="[% issue.imageurl | html %]" alt="" />
168 <span class="tdlabel">Item type:</span>
169 [% issue.translated_description | html %]</td>
171 <span class="tdlabel">Call number:</span>
172 [% issue.itemcallnumber | html %]
175 [% IF issue.returndate %]
176 <span class="tdlabel">Check-in date:</span>
177 <span title="[% issue.returndate | html %]">[% issue.returndate | $KohaDates %]</span>
179 <span title="Checked out"><em>(Checked out)</em></span>
182 [% IF OPACMySummaryHTML %]
183 <td>[% issue.MySummaryHTML | $raw %]</td>
186 [% END # / FOREACH issue %]
189 </div> <!-- / .tabs-container -->
190 [% IF ( Koha.Preference( 'OnSiteCheckouts' ) == 1 ) %]
191 </div> <!-- /#tabs -->
193 </div> <!-- / .opac-user-readingrec -->
194 [% END # / IF READING_RECORD.size %]
195 </div> <!-- / .userreadingrecord -->
196 </div> <!-- / .col-lg-10 -->
197 </div> <!-- / .row -->
198 </div> <!-- / .container-fluid -->
199 </div> <!-- / .main -->
201 [% INCLUDE 'opac-bottom.inc' %]
202 [% BLOCK jsinclude %]
203 [% INCLUDE 'datatables.inc' %]
205 $(document).ready(function(){
206 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
207 $('#order').change(function() {
208 $('#sortform').submit();
211 var table = $("#readingrec").dataTable($.extend(true, {}, dataTablesDefaults, {
212 "sPaginationType": "four_button",
214 { "targets": [ "nosort" ],"sortable": false,"searchable": false },
215 { "type": "anti-the", "targets" : [ "anti-the" ] },
216 { "type": "title-string", "targets" : [ "title-string" ] }
219 var tabs = $("#tabs").tabs({
220 activate: function(e, ui) {
221 var id = $(ui.newTab).attr("id");
222 if ( id == "tab_checkout" ) {
223 table.fnFilter("standard_checkout", 0);
224 } else if ( id == "tab_onsite_checkout" ) {
225 table.fnFilter("onsite_checkout", 0);
227 table.fnFilter('', 0);
232 var borrowernumber = "[% borrowernumber | html %]";
233 var MSG_YOUR_RATING = _("Your rating: %s, ");
234 var MSG_AVERAGE_RATING = _("Average rating: %s (%s votes)");
236 [% IF ( Koha.Preference('OpacStarRatings') == 'all' ) %]
237 [% Asset.js("lib/jquery/plugins/jquery.barrating.min.js") | $raw %]
238 [% Asset.js("js/ratings.js") | $raw %]