Lines 62-70
Link Here
|
62 |
<th>Expiration date</th> |
62 |
<th>Expiration date</th> |
63 |
<th>Waiting date</th> |
63 |
<th>Waiting date</th> |
64 |
<th>Cancellation date</th> |
64 |
<th>Cancellation date</th> |
65 |
[% IF show_itemtype_column %] |
65 |
<th>Requested item type</th> |
66 |
<th>Requested item type</th> |
|
|
67 |
[% END %] |
68 |
<th>Status</th> |
66 |
<th>Status</th> |
69 |
</tr> |
67 |
</tr> |
70 |
</thead> |
68 |
</thead> |
Lines 85-91
Link Here
|
85 |
<td data-order="[% hold.cancellationdate | html %]"> |
83 |
<td data-order="[% hold.cancellationdate | html %]"> |
86 |
[% hold.cancellationdate | $KohaDates %] |
84 |
[% hold.cancellationdate | $KohaDates %] |
87 |
</td> |
85 |
</td> |
88 |
[% IF show_itemtype_column %] |
|
|
89 |
<td> |
86 |
<td> |
90 |
[% IF hold.itemtype %] |
87 |
[% IF hold.itemtype %] |
91 |
[% ItemTypes.GetDescription( hold.itemtype ) | html %] |
88 |
[% ItemTypes.GetDescription( hold.itemtype ) | html %] |
Lines 93-99
Link Here
|
93 |
<span>Any item type</span> |
90 |
<span>Any item type</span> |
94 |
[% END %] |
91 |
[% END %] |
95 |
</td> |
92 |
</td> |
96 |
[% END %] |
|
|
97 |
<td> |
93 |
<td> |
98 |
[% IF hold.found == 'F' %] |
94 |
[% IF hold.found == 'F' %] |
99 |
Fulfilled |
95 |
Fulfilled |
Lines 136-147
Link Here
|
136 |
[% INCLUDE 'str/members-menu.inc' %] |
132 |
[% INCLUDE 'str/members-menu.inc' %] |
137 |
[% Asset.js("js/members-menu.js") | $raw %] |
133 |
[% Asset.js("js/members-menu.js") | $raw %] |
138 |
<script> |
134 |
<script> |
|
|
135 |
var ReserveExpiration = [% ( Koha.Preference('ReserveExpiration') ) ? 1 : 0 | html %]; |
136 |
var show_itemtype_column = [% ( show_itemtype_column ) ? 1 : 0 | html %]; |
137 |
var columns_settings = [% TablesSettings.GetColumns('members', 'holdshistory', 'holdshistory-table', 'json') %]; |
139 |
$(document).ready(function() { |
138 |
$(document).ready(function() { |
140 |
var columns_settings = [% TablesSettings.GetColumns('members', 'holdshistory', 'holdshistory-table', 'json') %]; |
139 |
columns_settings.forEach(function(thisCol) { |
141 |
[% UNLESS show_itemtype_column %] |
140 |
if( show_itemtype_column == 0 && thisCol.columnname == "itemtype" ){ |
142 |
//Remove item type column settings |
141 |
thisCol.cannot_be_modified = 1; |
143 |
columns_settings = columns_settings.filter(function(c){return c['columnname'] != 'itemtype';}); |
142 |
thisCol.cannot_be_toggled = 1; |
144 |
[% END %] |
143 |
thisCol.is_hidden = 1; |
|
|
144 |
} |
145 |
if( ReserveExpiration == 0 && thisCol.columnname == "expirationdate" ){ |
146 |
thisCol.cannot_be_modified = 1; |
147 |
thisCol.cannot_be_toggled = 1; |
148 |
thisCol.is_hidden = 1; |
149 |
} |
150 |
}); |
151 |
|
145 |
var table = KohaTable("table_holdshistory", { |
152 |
var table = KohaTable("table_holdshistory", { |
146 |
"sPaginationType": "full", |
153 |
"sPaginationType": "full", |
147 |
"aaSorting": [[4, 'desc']] |
154 |
"aaSorting": [[4, 'desc']] |