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" class="maincontent">
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 id="tab_all"><a href="#tabs-container">All</a></li>
70 <li id="tab_checkout"><a href="#tabs-container">Checkouts</a></li>
71 <li id="tab_onsite_checkout"><a href="#tabs-container">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' ) %]
149 [% INCLUDE 'user-star-ratings.inc' item=issue %]
154 [% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %]
155 [% IF ( issue.imageurl ) %]
156 <img src="[% issue.imageurl | html %]" alt="" />
159 <span class="tdlabel">Item type:</span>
160 [% issue.translated_description | html %]</td>
162 <span class="tdlabel">Call number:</span>
163 [% issue.itemcallnumber | html %]
166 [% IF issue.returndate %]
167 <span class="tdlabel">Check-in date:</span>
168 <span title="[% issue.returndate | html %]">[% issue.returndate | $KohaDates %]</span>
170 <span title="Checked out"><em>(Checked out)</em></span>
173 [% IF OPACMySummaryHTML %]
174 <td>[% issue.MySummaryHTML | $raw %]</td>
177 [% END # / FOREACH issue %]
180 </div> <!-- / .tabs-container -->
181 [% IF ( Koha.Preference( 'OnSiteCheckouts' ) == 1 ) %]
182 </div> <!-- /#tabs -->
184 </div> <!-- / .opac-user-readingrec -->
185 [% END # / IF READING_RECORD.size %]
186 </div> <!-- / .userreadingrecord -->
187 </div> <!-- / .span10 -->
188 </div> <!-- / .row-fluid -->
189 </div> <!-- / .container-fluid -->
190 </div> <!-- / .main -->
192 [% INCLUDE 'opac-bottom.inc' %]
193 [% BLOCK jsinclude %]
194 [% INCLUDE 'datatables.inc' %]
196 $(document).ready(function(){
197 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
198 $('#order').change(function() {
199 $('#sortform').submit();
202 var table = $("#readingrec").dataTable($.extend(true, {}, dataTablesDefaults, {
203 "sPaginationType": "four_button",
205 { "targets": [ "nosort" ],"sortable": false,"searchable": false },
206 { "type": "anti-the", "targets" : [ "anti-the" ] },
207 { "type": "title-string", "targets" : [ "title-string" ] }
210 var tabs = $("#tabs").tabs({
211 activate: function(e, ui) {
212 var id = $(ui.newTab).attr("id");
213 if ( id == "tab_checkout" ) {
214 table.fnFilter("standard_checkout", 0);
215 } else if ( id == "tab_onsite_checkout" ) {
216 table.fnFilter("onsite_checkout", 0);
218 table.fnFilter('', 0);
223 var borrowernumber = "[% borrowernumber | html %]";
224 var MSG_YOUR_RATING = _("Your rating: %s, ");
225 var MSG_AVERAGE_RATING = _("Average rating: %s (%s votes)");
227 [% IF ( Koha.Preference('OpacStarRatings') == 'all' ) %]
228 [% Asset.js("lib/jquery/plugins/jquery.barrating.min.js") | $raw %]
229 [% Asset.js("js/ratings.js") | $raw %]