Lines 2-7
Link Here
|
2 |
[% USE Koha %] |
2 |
[% USE Koha %] |
3 |
[% USE Branches %] |
3 |
[% USE Branches %] |
4 |
[% USE KohaDates %] |
4 |
[% USE KohaDates %] |
|
|
5 |
[% USE TablesSettings %] |
5 |
[% INCLUDE 'doc-head-open.inc' %] |
6 |
[% INCLUDE 'doc-head-open.inc' %] |
6 |
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Your holds history</title> |
7 |
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Your holds history</title> |
7 |
[% INCLUDE 'doc-head-close.inc' %] |
8 |
[% INCLUDE 'doc-head-close.inc' %] |
Lines 58-64
Link Here
|
58 |
You have never placed a hold from this library. |
59 |
You have never placed a hold from this library. |
59 |
[% ELSE %] |
60 |
[% ELSE %] |
60 |
<div id="opac-user-holdsrec"> |
61 |
<div id="opac-user-holdsrec"> |
61 |
<div id="tabs-container" style="overflow:auto"> |
62 |
<div id="tabs-container"> |
62 |
<div class="controls"> |
63 |
<div class="controls"> |
63 |
<div class="resultscontrol resort"> |
64 |
<div class="resultscontrol resort"> |
64 |
<form id="sortform" action="/cgi-bin/koha/opac-holdshistory.pl" method="get"> |
65 |
<form id="sortform" action="/cgi-bin/koha/opac-holdshistory.pl" method="get"> |
Lines 89-98
Link Here
|
89 |
<th>Author</th> |
90 |
<th>Author</th> |
90 |
<th>Barcode</th> |
91 |
<th>Barcode</th> |
91 |
<th>Library</th> |
92 |
<th>Library</th> |
92 |
<th class="title-string">Hold date</th> |
93 |
<th>Hold date</th> |
93 |
<th class="title-string">Expiration date</th> |
94 |
<th>Expiration date</th> |
94 |
<th class="title-string">Waiting date</th> |
95 |
<th>Waiting date</th> |
95 |
<th class="title-string">Cancellation date</th> |
96 |
<th>Cancellation date</th> |
96 |
[% IF show_itemtype_column %] |
97 |
[% IF show_itemtype_column %] |
97 |
<th>Requested item type</th> |
98 |
<th>Requested item type</th> |
98 |
[% END %] |
99 |
[% END %] |
Lines 106-131
Link Here
|
106 |
<td>[% hold.biblio.author | html %]</td> |
107 |
<td>[% hold.biblio.author | html %]</td> |
107 |
<td>[% hold.item.barcode | html %]</td> |
108 |
<td>[% hold.item.barcode | html %]</td> |
108 |
<td>[% Branches.GetName( hold.branchcode ) | html %]</td> |
109 |
<td>[% Branches.GetName( hold.branchcode ) | html %]</td> |
109 |
<td><span title="[% hold.reservedate | html %]">[% hold.reservedate | $KohaDates %]</span></td> |
110 |
<td data-order="[% hold.reservedate | html %]">[% hold.reservedate | $KohaDates %]</td> |
110 |
<td> |
111 |
<td data-order="[% hold.expirationdate | html %]"> |
111 |
[% IF hold.expirationdate %] |
112 |
[% IF hold.expirationdate %] |
112 |
<span title="[% hold.expirationdate | html %]">[% hold.expirationdate | $KohaDates %]</span> |
113 |
[% hold.expirationdate | $KohaDates %] |
113 |
[% ELSE %] |
|
|
114 |
<span title="0000-00-00"></span> |
115 |
[% END %] |
114 |
[% END %] |
116 |
</td> |
115 |
</td> |
117 |
<td> |
116 |
<td data-order="[% hold.waitingdate | html %]"> |
118 |
[% IF hold.waitingdate %] |
117 |
[% IF hold.waitingdate %] |
119 |
<span title="[% hold.waitingdate | html %]">[% hold.waitingdate | $KohaDates %]</span> |
118 |
[% hold.waitingdate | $KohaDates %] |
120 |
[% ELSE %] |
|
|
121 |
<span title="0000-00-00"></span> |
122 |
[% END %] |
119 |
[% END %] |
123 |
</td> |
120 |
</td> |
124 |
<td> |
121 |
<td data-order="[% hold.cancellationdate | html %]"> |
125 |
[% IF hold.cancellationdate %] |
122 |
[% IF hold.cancellationdate %] |
126 |
<span title="[% hold.cancellationdate | html %]">[% hold.cancellationdate | $KohaDates %]</span> |
123 |
[% hold.cancellationdate | $KohaDates %] |
127 |
[% ELSE %] |
|
|
128 |
<span title="0000-00-00"></span> |
129 |
[% END %] |
124 |
[% END %] |
130 |
</td> |
125 |
</td> |
131 |
[% IF show_itemtype_column %] |
126 |
[% IF show_itemtype_column %] |
Lines 166-185
Link Here
|
166 |
[% INCLUDE 'opac-bottom.inc' %] |
161 |
[% INCLUDE 'opac-bottom.inc' %] |
167 |
[% BLOCK jsinclude %] |
162 |
[% BLOCK jsinclude %] |
168 |
[% INCLUDE 'datatables.inc' %] |
163 |
[% INCLUDE 'datatables.inc' %] |
|
|
164 |
[% INCLUDE 'columns_settings.inc' %] |
169 |
<script> |
165 |
<script> |
170 |
$(document).ready(function() { |
166 |
$(document).ready(function() { |
171 |
$('#sort').change(function() { |
167 |
$('#sort').change(function() { |
172 |
$('#sortform').submit(); |
168 |
$('#sortform').submit(); |
173 |
}); |
169 |
}); |
174 |
var table = $("table_holdshistory").dataTable($.extend(true, {}, dataTablesDefaults, { |
170 |
var columns_settings = []; // Empty because there are no columns we want to be configurable |
175 |
"sPaginationType": "four_button", |
171 |
var table = KohaTable("#table_holdshistory", { |
176 |
"aaSorting": [[4, 'desc']], |
172 |
"dom": '<"top"<"table_entries"i><"table_controls"fB>>t', |
177 |
"sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>', |
173 |
"autoWidth": false, |
178 |
"aoColumnDefs": [ |
174 |
"sorting": [[4, 'desc']], |
179 |
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }, |
175 |
"columnDefs": [ |
180 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] } |
176 |
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] } |
181 |
] |
177 |
], |
182 |
})); |
178 |
"language": { |
|
|
179 |
"search": "_INPUT_", |
180 |
"searchPlaceholder": _("Search") |
181 |
} |
182 |
}, columns_settings); |
183 |
}); |
183 |
}); |
184 |
</script> |
184 |
</script> |
185 |
[% END %] |
185 |
[% END %] |