4 [% USE TablesSettings %]
5 [% USE AdditionalContents %]
6 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>Your checkout history › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 [% BLOCK cssinclude %]
11 <style>ul.ui-tabs-nav li a, ul.ui-tabs-nav li span.a { padding:0.6em 1em; }</style>
14 [% INCLUDE 'bodytag.inc' bodyid='opac-readingrecord' %]
15 [% INCLUDE 'masthead.inc' %]
17 [% IF Koha.Preference('AmazonAssocTag') %]
18 [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
20 [% AmazonAssocTag = '' %]
24 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
25 <ol class="breadcrumb">
26 <li class="breadcrumb-item">
27 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
29 <li class="breadcrumb-item">
30 <a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a>
32 <li class="breadcrumb-item active">
33 <a href="#" aria-current="page">Your checkout history</a>
36 </nav> <!-- /#breadcrumbs -->
38 <div class="container-fluid">
40 <div class="col col-lg-2 order-2 order-lg-1">
42 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
45 <div class="col-md-12 col-lg-10 order-1">
47 <div id="userreadingrecord" class="maincontent">
48 <h1>Checkout history</h1>
50 [% IF READING_RECORD.size == 0 %]
51 You have never borrowed anything from this library.
53 <div id="opac-user-readingrec">
55 <div class="resultscontrol resort js-hide">
56 <form id="sortform" action="/cgi-bin/koha/opac-readingrecord.pl" method="get">
57 [% UNLESS ( limit ) %]<input type="hidden" name="limit" value="full" />[% END %]
58 <select name="order" id="order">
59 [% IF ( orderbydate ) %]<option value="" selected="selected">Order by date</option>[% ELSE %]<option value="">Order by date</option>[% END %]
60 [% IF ( orderbytitle ) %]<option value="title" selected="selected">Order by title</option>[% ELSE %]<option value="title">Order by title</option>[% END %]
61 [% IF ( orderbyauthor ) %]<option value="author" selected="selected">Order by author</option>[% ELSE %]<option value="author">Order by author</option>[% END %]
63 <input type="submit" value="Go" id="sortsubmit" class="submit clearfix" />
69 Showing last 50 items. <a href="/cgi-bin/koha/opac-readingrecord.pl?limit=full[% IF ( orderbytitle ) %]&order=title[% END %]">Show all items</a>
73 Showing all items. <a href="/cgi-bin/koha/opac-readingrecord.pl?limit=50[% IF ( orderbytitle ) %]&order=title[% END %]">Show last 50 items</a>
77 [% IF Koha.Preference( 'OnSiteCheckouts' ) == 1 %]
78 <div id="tabs" class="toptabs">
80 <li id="tab_all"><a href="#tabs-container">All</a></li>
81 <li id="tab_checkout"><a href="#tabs-container">Checkouts</a></li>
82 <li id="tab_onsite_checkout"><a href="#tabs-container">On-site checkouts</a></li>
85 <div id="tabs-container" style="overflow:hidden">
86 <table id="readingrec" class="table table-bordered table-striped">
87 <caption class="sr-only">Checkout history</caption>
90 <th style="display:none;" class="noExport">Type</th>
91 <th class="NoSort noExport"></th>
92 <th class="anti-the">Title</th>
96 [% IF ( OPACMySummaryHTML ) %]
97 <th class="NoSort noExport">Links</th>
102 [% FOREACH issue IN READING_RECORD %]
104 <td style="display:none;">
105 [% IF issue.onsite_checkout %][% issuetype = 'onsite_checkout' %]
106 [% ELSE %][% issuetype = 'standard_checkout' %]
108 [% issuetype | html %]
111 [% IF OPACAmazonCoverImages %]
112 [% IF issue.normalized_isbn %]
113 <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>
115 <span class="no-image">No cover image available</span>
119 [% IF GoogleJackets %]
120 [% IF issue.normalized_isbn %]
121 <div title="[% issue.biblionumber |url %]" class="[% issue.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
123 <span class="no-image">No cover image available</span>
127 [% IF BakerTaylorEnabled %]
128 [% bt_id = ( issue.normalized_upc || issue.normalized_isbn ) %]
130 <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
132 <span class="no-image">No cover image available</span>
136 [% IF SyndeticsEnabled && SyndeticsCoverImages %]
137 <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" />
141 [% IF issue.BiblioDefaultViewmarc %]
142 <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% issue.biblionumber |url %]">[% INCLUDE 'biblio-title.inc' biblio=issue %]</a>
143 [% ELSIF issue.BiblioDefaultViewisbd %]
144 <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% issue.biblionumber |url %]">[% INCLUDE 'biblio-title.inc' biblio=issue %]</a>
146 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% issue.biblionumber |url %]">[% INCLUDE 'biblio-title.inc' biblio=issue %]</a>
148 <p class="results-summary item-details">[% issue.author | html %]</p>
150 [% IF ( Koha.Preference( 'OpacStarRatings' ) == 'all' ) %]
151 [% INCLUDE 'user-star-ratings.inc' item=issue %]
156 [% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %]
157 [% IF ( issue.imageurl ) %]
158 <img src="[% issue.imageurl | html %]" alt="" />
161 <span class="tdlabel">Item type:</span>
162 [% issue.translated_description | html %]</td>
164 <span class="tdlabel">Call number:</span>
165 [% issue.itemcallnumber | html %]
167 [% IF issue.returndate %]
168 <td data-order="[% issue.returndate | html %]">
169 <span class="tdlabel">Check-in date:</span>
170 [% issue.returndate | $KohaDates %]
172 <td data-order="Checked out">
173 <em>(Checked out)</em>
176 [% IF OPACMySummaryHTML %]
177 <td>[% issue.MySummaryHTML | $raw %]</td>
180 [% END # / FOREACH issue %]
183 </div> <!-- / .tabs-container -->
184 [% IF ( Koha.Preference( 'OnSiteCheckouts' ) == 1 ) %]
185 </div> <!-- /#tabs -->
187 </div> <!-- / .opac-user-readingrec -->
188 [% END # / IF READING_RECORD.size %]
189 </div> <!-- / .userreadingrecord -->
190 </div> <!-- / .col-lg-10 -->
191 </div> <!-- / .row -->
192 </div> <!-- / .container-fluid -->
193 </div> <!-- / .main -->
195 [% INCLUDE 'opac-bottom.inc' %]
196 [% BLOCK jsinclude %]
197 [% INCLUDE 'datatables.inc' %]
198 [% INCLUDE 'columns_settings.inc' %]
200 $(document).ready(function(){
201 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
202 $('#order').change(function() {
203 $('#sortform').submit();
206 var columns_settings = []; // Empty because there are no columns we want to be configurable
207 var table = KohaTable("#readingrec", {
208 "dom": '<"top"<"table_entries"i><"table_controls"fB>>t',
212 "searchPlaceholder": _("Search")
214 }, columns_settings);
216 var tabs = $("#tabs").tabs({
217 activate: function(e, ui) {
218 var id = $(ui.newTab).attr("id");
219 if ( id == "tab_checkout" ) {
220 table.fnFilter("standard_checkout", 0);
221 } else if ( id == "tab_onsite_checkout" ) {
222 table.fnFilter("onsite_checkout", 0);
224 table.fnFilter('', 0);
229 var borrowernumber = "[% logged_in_user.borrowernumber | html %]";
230 var MSG_YOUR_RATING = _("Your rating: %s, ");
231 var MSG_AVERAGE_RATING = _("Average rating: %s (%s votes)");
233 [% IF ( Koha.Preference('OpacStarRatings') == 'all' ) %]
234 [% Asset.js("lib/jquery/plugins/jquery.barrating.min.js") | $raw %]
235 [% Asset.js("js/ratings.js") | $raw %]