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 <nav aria-label="breadcrumb">
42 <ul class="breadcrumb">
43 <li class="breadcrumb-item">
44 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
46 <li class="breadcrumb-item">
47 <a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a>
49 <li class="breadcrumb-item" aria-current="page">
50 <a href="#">Your holds history</a>
55 <div class="container-fluid">
57 <div class="col col-lg-2 order-2 order-lg-1">
59 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
62 <div class="col-md-12 col-lg-10 order-1">
63 <div id="userholdshistory">
64 <h1>Holds history</h1>
67 You have never placed a hold from this library.
69 <div id="opac-user-holdsrec">
70 <div id="tabs-container">
71 <div class="controls">
72 <div class="resultscontrol resort">
73 <form id="sortform" action="/cgi-bin/koha/opac-holdshistory.pl" method="get">
74 [% IF ( unlimit ) %]<input type="hidden" name="unlimit" value="1" />[% END %]
75 <select name="sort" id="sort">
76 [% IF ( sort == 'reservedate' ) %]<option value="reservedate" selected="selected">Order by date</option>[% ELSE %]<option value="reservedate">Order by date</option>[% END %]
77 [% IF ( sort == 'biblio.title' ) %]<option value="biblio.title" selected="selected">Order by title</option>[% ELSE %]<option value="biblio.title">Order by title</option>[% END %]
78 [% IF ( sort == 'biblio.author' ) %]<option value="biblio.author" selected="selected">Order by author</option>[% ELSE %]<option value="biblio.author">Order by author</option>[% END %]
80 <input type="submit" value="Go" id="sortsubmit" class="submit clearfix" />
86 Showing 50 items. <a href="/cgi-bin/koha/opac-holdshistory.pl?unlimit=1[% IF ( sort ) %]&sort=[% sort | url %][% END %]">Show all items</a>
90 Showing all items. <a href="/cgi-bin/koha/opac-holdshistory.pl[% IF ( sort ) %]?sort=[% sort | url %][% END %]">Show 50 items</a>
94 <table id="table_holdshistory" class="table table-bordered table-striped">
95 <caption class="sr-only">Holds history</caption>
98 <th class="anti-the">Title</th>
103 <th>Expiration date</th>
104 <th>Waiting date</th>
105 <th>Cancellation date</th>
106 [% IF show_itemtype_column %]
107 <th>Requested item type</th>
113 [% FOREACH hold IN holds %]
115 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% hold.biblio.biblionumber | uri %]">[% INCLUDE 'biblio-title.inc' biblio=hold.biblio %]</a></td>
116 <td>[% hold.biblio.author | html %]</td>
117 <td>[% hold.item.barcode | html %]</td>
118 <td>[% Branches.GetName( hold.branchcode ) | html %]</td>
119 <td data-order="[% hold.reservedate | html %]">[% hold.reservedate | $KohaDates %]</td>
120 <td data-order="[% hold.expirationdate | html %]">
121 [% IF hold.expirationdate %]
122 [% hold.expirationdate | $KohaDates %]
125 <td data-order="[% hold.waitingdate | html %]">
126 [% IF hold.waitingdate %]
127 [% hold.waitingdate | $KohaDates %]
130 <td data-order="[% hold.cancellationdate | html %]">
131 [% IF hold.cancellationdate %]
132 [% hold.cancellationdate | $KohaDates %]
135 [% IF show_itemtype_column %]
137 [% IF hold.itemtype %]
138 [% ItemTypes.GetDescription( hold.itemtype ) | html %]
140 <span>Any item type</span>
145 [% IF hold.found == 'F' %]
147 [% ELSIF hold.cancellationdate %]
149 [% ELSIF hold.found == 'W' %]
151 [% ELSIF hold.found == 'T' %]
161 </div> <!-- / .tabs-container -->
162 </div> <!-- / .opac-user-holdsrec -->
163 [% END # / IF old_holds_count %]
164 </div> <!-- / .userholdshistory -->
165 </div> <!-- / .span10 -->
166 </div> <!-- / .row-fluid -->
167 </div> <!-- / .container-fluid -->
168 </div> <!-- / .main -->
170 [% INCLUDE 'opac-bottom.inc' %]
171 [% BLOCK jsinclude %]
172 [% INCLUDE 'datatables.inc' %]
173 [% INCLUDE 'columns_settings.inc' %]
175 $(document).ready(function() {
176 $('#sort').change(function() {
177 $('#sortform').submit();
179 var columns_settings = []; // Empty because there are no columns we want to be configurable
180 var table = KohaTable("#table_holdshistory", {
181 "dom": '<"top"<"table_entries"i><"table_controls"fB>>t',
183 "sorting": [[4, 'desc']],
185 { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
189 "searchPlaceholder": _("Search")
191 }, columns_settings);