5 [% USE TablesSettings %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Your holds history › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
8 [% INCLUDE 'doc-head-close.inc' %]
12 .controls .paginate_button {
13 font-family: 'FontAwesome';
14 text-decoration: none;
17 .controls .paginate_button:not(.disabled) {
21 .controls .paginate_button.disabled {
25 .controls .previous:before {
30 .controls .next:after {
37 [% INCLUDE 'bodytag.inc' bodyid='opac-holdshistory' %]
38 [% INCLUDE 'masthead.inc' %]
41 <ul class="breadcrumb">
42 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
43 <li><a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a> <span class="divider">›</span></li>
44 <li><a href="#">Your holds history</a></li>
47 <div class="container-fluid">
49 <div class="col col-lg-2 order-2 order-lg-1">
51 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
54 <div class="col-md-12 col-lg-10 order-1">
55 <div id="userholdshistory">
56 <h1>Holds history</h1>
59 You have never placed a hold from this library.
61 <div id="opac-user-holdsrec">
62 <div id="tabs-container">
63 <div class="controls">
64 <div class="resultscontrol resort">
65 <form id="sortform" action="/cgi-bin/koha/opac-holdshistory.pl" method="get">
66 [% IF ( unlimit ) %]<input type="hidden" name="unlimit" value="1" />[% END %]
67 <select name="sort" id="sort">
68 [% IF ( sort == 'reservedate' ) %]<option value="reservedate" selected="selected">Order by date</option>[% ELSE %]<option value="reservedate">Order by date</option>[% END %]
69 [% IF ( sort == 'biblio.title' ) %]<option value="biblio.title" selected="selected">Order by title</option>[% ELSE %]<option value="biblio.title">Order by title</option>[% END %]
70 [% IF ( sort == 'biblio.author' ) %]<option value="biblio.author" selected="selected">Order by author</option>[% ELSE %]<option value="biblio.author">Order by author</option>[% END %]
72 <input type="submit" value="Go" id="sortsubmit" class="submit clearfix" />
78 Showing 50 items. <a href="/cgi-bin/koha/opac-holdshistory.pl?unlimit=1[% IF ( sort ) %]&sort=[% sort | url %][% END %]">Show all items</a>
82 Showing all items. <a href="/cgi-bin/koha/opac-holdshistory.pl[% IF ( sort ) %]?sort=[% sort | url %][% END %]">Show 50 items</a>
86 <table id="table_holdshistory" class="table table-bordered table-striped">
89 <th class="anti-the">Title</th>
94 <th>Expiration date</th>
96 <th>Cancellation date</th>
97 [% IF show_itemtype_column %]
98 <th>Requested item type</th>
104 [% FOREACH hold IN holds %]
106 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% hold.biblio.biblionumber | uri %]">[% INCLUDE 'biblio-title.inc' biblio=hold.biblio %]</a></td>
107 <td>[% hold.biblio.author | html %]</td>
108 <td>[% hold.item.barcode | html %]</td>
109 <td>[% Branches.GetName( hold.branchcode ) | html %]</td>
110 <td data-order="[% hold.reservedate | html %]">[% hold.reservedate | $KohaDates %]</td>
111 <td data-order="[% hold.expirationdate | html %]">
112 [% IF hold.expirationdate %]
113 [% hold.expirationdate | $KohaDates %]
116 <td data-order="[% hold.waitingdate | html %]">
117 [% IF hold.waitingdate %]
118 [% hold.waitingdate | $KohaDates %]
121 <td data-order="[% hold.cancellationdate | html %]">
122 [% IF hold.cancellationdate %]
123 [% hold.cancellationdate | $KohaDates %]
126 [% IF show_itemtype_column %]
128 [% IF hold.itemtype %]
129 [% ItemTypes.GetDescription( hold.itemtype ) | html %]
131 <span>Any item type</span>
136 [% IF hold.found == 'F' %]
138 [% ELSIF hold.cancellationdate %]
140 [% ELSIF hold.found == 'W' %]
142 [% ELSIF hold.found == 'T' %]
152 </div> <!-- / .tabs-container -->
153 </div> <!-- / .opac-user-holdsrec -->
154 [% END # / IF old_holds_count %]
155 </div> <!-- / .userholdshistory -->
156 </div> <!-- / .span10 -->
157 </div> <!-- / .row-fluid -->
158 </div> <!-- / .container-fluid -->
159 </div> <!-- / .main -->
161 [% INCLUDE 'opac-bottom.inc' %]
162 [% BLOCK jsinclude %]
163 [% INCLUDE 'datatables.inc' %]
164 [% INCLUDE 'columns_settings.inc' %]
166 $(document).ready(function() {
167 $('#sort').change(function() {
168 $('#sortform').submit();
170 var columns_settings = []; // Empty because there are no columns we want to be configurable
171 var table = KohaTable("#table_holdshistory", {
172 "dom": '<"top"<"table_entries"i><"table_controls"fB>>t',
174 "sorting": [[4, 'desc']],
176 { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
180 "searchPlaceholder": _("Search")
182 }, columns_settings);