Lines 48-56
Link Here
|
48 |
<th class="title-string">Expiration date</th> |
48 |
<th class="title-string">Expiration date</th> |
49 |
<th class="title-string">Waiting date</th> |
49 |
<th class="title-string">Waiting date</th> |
50 |
<th class="title-string">Cancellation date</th> |
50 |
<th class="title-string">Cancellation date</th> |
51 |
[% IF show_itemtype_column %] |
51 |
<th>Requested item type</th> |
52 |
<th>Requested item type</th> |
|
|
53 |
[% END %] |
54 |
<th>Status</th> |
52 |
<th>Status</th> |
55 |
</tr> |
53 |
</tr> |
56 |
</thead> |
54 |
</thead> |
Lines 62-74
Link Here
|
62 |
<td>[% hold.item.barcode | html %]</td> |
60 |
<td>[% hold.item.barcode | html %]</td> |
63 |
<td>[% Branches.GetName( hold.branchcode ) | html %]</td> |
61 |
<td>[% Branches.GetName( hold.branchcode ) | html %]</td> |
64 |
<td><span title="[% hold.reservedate | html %]">[% hold.reservedate | $KohaDates %]</span></td> |
62 |
<td><span title="[% hold.reservedate | html %]">[% hold.reservedate | $KohaDates %]</span></td> |
65 |
<td> |
63 |
<td> |
66 |
[% IF hold.expirationdate %] |
64 |
[% IF hold.expirationdate %] |
67 |
<span title="[% hold.expirationdate | html %]">[% hold.expirationdate | $KohaDates %]</span> |
65 |
<span title="[% hold.expirationdate | html %]">[% hold.expirationdate | $KohaDates %]</span> |
68 |
[% ELSE %] |
66 |
[% ELSE %] |
69 |
<span title="0000-00-00"></span> |
67 |
<span title="0000-00-00"></span> |
70 |
[% END %] |
68 |
[% END %] |
71 |
</td> |
69 |
</td> |
72 |
<td> |
70 |
<td> |
73 |
[% IF hold.waitingdate %] |
71 |
[% IF hold.waitingdate %] |
74 |
<span title="[% hold.waitingdate | html %]">[% hold.waitingdate | $KohaDates %]</span> |
72 |
<span title="[% hold.waitingdate | html %]">[% hold.waitingdate | $KohaDates %]</span> |
Lines 83-89
Link Here
|
83 |
<span title="0000-00-00"></span> |
81 |
<span title="0000-00-00"></span> |
84 |
[% END %] |
82 |
[% END %] |
85 |
</td> |
83 |
</td> |
86 |
[% IF show_itemtype_column %] |
|
|
87 |
<td> |
84 |
<td> |
88 |
[% IF hold.itemtype %] |
85 |
[% IF hold.itemtype %] |
89 |
[% ItemTypes.GetDescription( hold.itemtype ) | html %] |
86 |
[% ItemTypes.GetDescription( hold.itemtype ) | html %] |
Lines 91-97
Link Here
|
91 |
<span>Any item type</span> |
88 |
<span>Any item type</span> |
92 |
[% END %] |
89 |
[% END %] |
93 |
</td> |
90 |
</td> |
94 |
[% END %] |
|
|
95 |
<td> |
91 |
<td> |
96 |
[% IF hold.found == 'F' %] |
92 |
[% IF hold.found == 'F' %] |
97 |
Fulfilled |
93 |
Fulfilled |
Lines 134-145
Link Here
|
134 |
[% INCLUDE 'str/members-menu.inc' %] |
130 |
[% INCLUDE 'str/members-menu.inc' %] |
135 |
[% Asset.js("js/members-menu.js") | $raw %] |
131 |
[% Asset.js("js/members-menu.js") | $raw %] |
136 |
<script> |
132 |
<script> |
|
|
133 |
var ReserveExpiration = [% ( Koha.Preference('ReserveExpiration') ) ? 1 : 0 | html %]; |
134 |
var show_itemtype_column = [% ( show_itemtype_column ) ? 1 : 0 | html %]; |
135 |
var columns_settings = [% TablesSettings.GetColumns('members', 'holdshistory', 'holdshistory-table', 'json') %]; |
137 |
$(document).ready(function() { |
136 |
$(document).ready(function() { |
138 |
var columns_settings = [% TablesSettings.GetColumns('members', 'holdshistory', 'holdshistory-table', 'json') %]; |
137 |
columns_settings.forEach(function(thisCol) { |
139 |
[% UNLESS show_itemtype_column %] |
138 |
if( show_itemtype_column == 0 && thisCol.columnname == "itemtype" ){ |
140 |
//Remove item type column settings |
139 |
thisCol.cannot_be_modified = 1; |
141 |
columns_settings = columns_settings.filter(function(c){return c['columnname'] != 'itemtype';}); |
140 |
thisCol.cannot_be_toggled = 1; |
142 |
[% END %] |
141 |
thisCol.is_hidden = 1; |
|
|
142 |
} |
143 |
if( ReserveExpiration == 0 && thisCol.columnname == "expirationdate" ){ |
144 |
thisCol.cannot_be_modified = 1; |
145 |
thisCol.cannot_be_toggled = 1; |
146 |
thisCol.is_hidden = 1; |
147 |
} |
148 |
}); |
149 |
|
143 |
var table = KohaTable("table_holdshistory", { |
150 |
var table = KohaTable("table_holdshistory", { |
144 |
"sPaginationType": "full", |
151 |
"sPaginationType": "full", |
145 |
"aaSorting": [[4, 'desc']], |
152 |
"aaSorting": [[4, 'desc']], |