5 [% USE TablesSettings %]
7 [% USE AdditionalContents %]
8 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %]
9 [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %]
11 [% INCLUDE 'doc-head-open.inc' %]
12 <title>Your holds history › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
13 [% INCLUDE 'doc-head-close.inc' %]
14 [% BLOCK cssinclude %]
17 .controls .paginate_button {
18 font-family: 'FontAwesome';
19 text-decoration: none;
22 .controls .paginate_button:not(.disabled) {
26 .controls .paginate_button.disabled {
30 .controls .previous:before {
35 .controls .next:after {
42 [% INCLUDE 'bodytag.inc' bodyid='opac-holdshistory' %]
43 [% INCLUDE 'masthead.inc' %]
46 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
47 <ol class="breadcrumb">
48 <li class="breadcrumb-item">
49 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
51 <li class="breadcrumb-item">
52 <a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a>
54 <li class="breadcrumb-item active">
55 <a href="#" aria-current="page">Your holds history</a>
58 </nav> <!-- /#breadcrumbs -->
60 <div class="container-fluid">
62 <div class="col col-lg-2 order-2 order-lg-1">
64 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
67 <div class="col-md-12 col-lg-10 order-1">
68 <div id="userholdshistory">
69 <h1>Holds history</h1>
74 [% SET show_itemtype_column = Koha.Preference('AllowHoldItemTypeSelection') %]
75 <div id="opac-user-holdsrec">
76 <div id="tabs-container">
77 <div class="controls">
78 <div class="resultscontrol resort">
79 <form id="sortform" action="/cgi-bin/koha/opac-holdshistory.pl" method="get">
80 [% IF ( unlimit ) %]<input type="hidden" name="unlimit" value="1" />[% END %]
81 <select name="sort" id="sort">
82 [% IF ( sort == 'reservedate' ) %]<option value="reservedate" selected="selected">Order by date</option>[% ELSE %]<option value="reservedate">Order by date</option>[% END %]
83 [% IF ( sort == 'biblio.title' ) %]<option value="biblio.title" selected="selected">Order by title</option>[% ELSE %]<option value="biblio.title">Order by title</option>[% END %]
84 [% IF ( sort == 'biblio.author' ) %]<option value="biblio.author" selected="selected">Order by author</option>[% ELSE %]<option value="biblio.author">Order by author</option>[% END %]
86 <input type="submit" value="Go" id="sortsubmit" class="submit clearfix" />
92 Showing 50 items. <a href="/cgi-bin/koha/opac-holdshistory.pl?unlimit=1[% IF ( sort ) %]&sort=[% sort | url %][% END %]">Show all items</a>
96 Showing all items. <a href="/cgi-bin/koha/opac-holdshistory.pl[% IF ( sort ) %]?sort=[% sort | url %][% END %]">Show 50 items</a>
100 <table id="table_holdshistory" class="table table-bordered table-striped">
101 <caption class="sr-only">Holds history</caption>
104 <th class="anti-the">Title</th>
109 <th>Expiration date</th>
110 <th>Waiting date</th>
111 <th>Cancellation date</th>
112 [% IF show_itemtype_column %]
113 <th>Requested item type</th>
119 [% FOREACH hold IN holds %]
121 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% hold.biblio.biblionumber | uri %]">[% INCLUDE 'biblio-title.inc' biblio=hold.biblio %]</a></td>
122 <td>[% hold.biblio.author | html %]</td>
123 <td>[% hold.item.barcode | html %]</td>
124 <td>[% Branches.GetName( hold.branchcode ) | html %]</td>
125 <td data-order="[% hold.reservedate | html %]">[% hold.reservedate | $KohaDates %]</td>
126 <td data-order="[% hold.expirationdate | html %]">
127 [% IF hold.expirationdate %]
128 [% hold.expirationdate | $KohaDates %]
131 <td data-order="[% hold.waitingdate | html %]">
132 [% IF hold.waitingdate %]
133 [% hold.waitingdate | $KohaDates %]
136 <td data-order="[% hold.cancellationdate | html %]">
137 [% IF hold.cancellationdate %]
138 [% hold.cancellationdate | $KohaDates %]
141 [% IF show_itemtype_column %]
143 [% IF hold.itemtype %]
144 [% ItemTypes.GetDescription( hold.itemtype ) | html %]
146 <span>Any item type</span>
151 [% IF hold.found == 'F' %]
153 [% ELSIF hold.cancellationdate %]
155 [% ELSIF hold.found == 'W' %]
157 [% ELSIF hold.found == 'T' %]
167 </div> <!-- / .tabs-container -->
168 </div> <!-- / .opac-user-holdsrec -->
169 [% END # / IF old_holds_count %]
170 </div> <!-- / .userholdshistory -->
171 </div> <!-- / .span10 -->
172 </div> <!-- / .row-fluid -->
173 </div> <!-- / .container-fluid -->
174 </div> <!-- / .main -->
176 [% INCLUDE 'opac-bottom.inc' %]
177 [% BLOCK jsinclude %]
178 [% INCLUDE 'datatables.inc' %]
179 [% INCLUDE 'columns_settings.inc' %]
181 $(document).ready(function() {
182 $('#sort').change(function() {
183 $('#sortform').submit();
185 var columns_settings = []; // Empty because there are no columns we want to be configurable
186 var table = KohaTable("#table_holdshistory", {
187 "dom": '<"top"<"table_entries"i><"table_controls"fB>>t',
189 "sorting": [[4, 'desc']],
191 { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
195 "searchPlaceholder": _("Search")
197 }, columns_settings);