5 [% USE AuthorisedValues %]
7 [% USE TablesSettings %]
10 [% INCLUDE 'doc-head-open.inc' %]
11 <title>Holds history for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
12 [% INCLUDE 'doc-head-close.inc' %]
15 <body id="pat_holdshistory" class="pat">
16 [% WRAPPER 'header.inc' %]
17 [% INCLUDE 'patron-search-header.inc' %]
20 [% WRAPPER 'sub-header.inc' %]
21 [% WRAPPER breadcrumbs %]
22 [% WRAPPER breadcrumb_item %]
23 <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
25 [% WRAPPER breadcrumb_item %]
26 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% INCLUDE 'patron-title.inc' %]</a>
28 [% WRAPPER breadcrumb_item bc_active= 1 %]
29 <span>Holds history</span>
31 [% END #/ WRAPPER breadcrumbs %]
32 [% END #/ WRAPPER sub-header.inc %]
34 <div class="main container-fluid">
36 <div class="col-sm-10 col-sm-push-2">
39 [% INCLUDE 'members-toolbar.inc' %]
40 <h1>Holds history</h1>
42 [% UNLESS Koha.Preference('intranetreadinghistory') %]
43 <div class="dialog alert">Staff members are not allowed to access patron's holds history</div>
44 [% ELSIF is_anonymous %]
45 <div class="dialog alert">This is the anonymous patron, so no holds history is displayed.</div>
46 [% ELSIF ( !holds ) %]
47 <div class="dialog message">This patron has no holds history.</div>
50 [% SET show_itemtype_column = Koha.Preference('AllowHoldItemTypeSelection') %]
52 <div id="holdshistory" class="page-section">
53 <table id="table_holdshistory">
56 <th class="anti-the">Title</th>
61 <th>Expiration date</th>
63 <th>Cancellation date</th>
64 [% IF show_itemtype_column %]
65 <th>Requested item type</th>
71 [% FOREACH hold IN holds %]
73 <td>[% INCLUDE 'biblio-title.inc' biblio=hold.biblio link = 1 %]</td>
74 <td>[% hold.biblio.author | html %]</td>
75 <td>[% hold.item.barcode | html %]</td>
76 <td>[% Branches.GetName( hold.branchcode ) | html %]</td>
77 <td data-order="[% hold.reservedate | html %]">[% hold.reservedate | $KohaDates %]</td>
78 <td data-order="[% hold.expirationdate | html %]">
79 [% hold.expirationdate | $KohaDates %]
81 <td data-order="[% hold.waitingdate | html %]">
82 [% hold.waitingdate | $KohaDates %]
84 <td data-order="[% hold.cancellationdate | html %]">
85 [% hold.cancellationdate | $KohaDates %]
87 [% IF show_itemtype_column %]
89 [% IF hold.itemtype %]
90 [% ItemTypes.GetDescription( hold.itemtype ) | html %]
92 <span>Any item type</span>
97 [% IF hold.found == 'F' %]
98 <span>Fulfilled</span>
99 [% ELSIF hold.cancellationdate %]
100 <span>Cancelled</span>
101 [% IF hold.cancellation_reason %]
102 ([% AuthorisedValues.GetByCode('HOLD_CANCELLATION', hold.cancellation_reason) | html %])
104 [% ELSIF hold.found == 'W' %]
106 [% ELSIF hold.found == 'P' %]
107 <span>Processing</span>
108 [% ELSIF hold.found == 'T' %]
109 <span>In transit</span>
123 </div> <!-- /.col-sm-10.col-sm-push-2 -->
125 <div class="col-sm-2 col-sm-pull-10">
127 [% INCLUDE 'circ-menu.inc' %]
129 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
130 </div> <!-- /.row -->
132 [% MACRO jsinclude BLOCK %]
133 [% INCLUDE 'datatables.inc' %]
134 [% INCLUDE 'columns_settings.inc' %]
135 [% INCLUDE 'str/members-menu.inc' %]
136 [% Asset.js("js/members-menu.js") | $raw %]
138 $(document).ready(function() {
139 var table_settings = [% TablesSettings.GetTableSettings('members', 'holdshistory', 'holdshistory-table', 'json') | $raw %];
140 [% UNLESS show_itemtype_column %]
141 //Remove item type column settings
142 table_settings['columns'] = table_settings['columns'].filter(function(c){return c['columnname'] != 'itemtype';});
144 var table = KohaTable("table_holdshistory", {
145 "sPaginationType": "full",
146 "aaSorting": [[4, 'desc']]
152 [% INCLUDE 'intranet-bottom.inc' %]