-var MSG_CONFIRM_DELETE_HOLD = _("Are you sure you want to cancel this hold?");
-$.tablesorter.addParser({
- id: 'articles',
- is: function(s) {return false; },
- format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); },
- type: 'text'
-});
- $(function() {
- $('#opac-user-views').tabs();
- $.tablesorter.defaults.widgets = ['zebra'];
- [% IF ( dateformat == 'metric' ) %]$.tablesorter.defaults.dateFormat = ['uk'];[% END %]
- $("#holdst").tablesorter({
- sortList: [[0,0]]
- });
- $("#checkoutst").tablesorter({
- [% IF ( JacketImages ) %]sortList: [[2,0]][% ELSE %]sortList: [[1,0]][% END %]
- });
- $("#overduest").tablesorter();
-[% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
- [% IF ( OpacRenewalAllowed && canrenew && !userdebarred ) %]$("#renewselected").submit(function(){
+var MSG_CONFIRM_DELETE_HOLD = _("Are you sure you want to cancel this hold?");
+var MSG_CONFIRM_SUSPEND_HOLDS = _("Are you sure you want to suspend all holds?");
+var MSG_CONFIRM_RESUME_HOLDS = _("Are you sure you want to resume all suspended holds?");
+
+ $(document).ready(function(){
+
+ $('#opac-user-views').tabs();
+
+ var dTables = $("#checkoutst,#holdst,#overduest");
+ dTables.each(function(){
+ var thIndex = $(this).find("th.psort").index();
+ $(this).dataTable($.extend(true, {}, dataTablesDefaults, {
+ "aaSorting" : [[ thIndex, 'asc' ]],
+ "aoColumnDefs": [
+ { "aTargets": [ "nosort" ],"bSortable": false,"bSearchable": false },
+ { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
+ { "sType": "title-string", "aTargets" : [ "title-string" ] }
+ ]
+ }));
+ });
+
+ [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
+
+ [% IF ( OpacRenewalAllowed && canrenew && !userdebarred ) %]
+ $("#renewselected").submit(function(){