Lines 780-786
Link Here
|
780 |
if ( !bookings_table ) { |
780 |
if ( !bookings_table ) { |
781 |
var today = new Date(); |
781 |
var today = new Date(); |
782 |
var bookings_table_url = "/api/v1/bookings"; |
782 |
var bookings_table_url = "/api/v1/bookings"; |
783 |
bookings_table = $('#bookings-table').kohaTable({ |
783 |
bookings_table = $('#bookings_table').kohaTable({ |
784 |
"ajax": { |
784 |
"ajax": { |
785 |
"url": bookings_table_url |
785 |
"url": bookings_table_url |
786 |
}, |
786 |
}, |
Lines 792-800
Link Here
|
792 |
"columns": [{ |
792 |
"columns": [{ |
793 |
"data": "booking_id", |
793 |
"data": "booking_id", |
794 |
"title": "Booking ID", |
794 |
"title": "Booking ID", |
795 |
"visible": false, |
795 |
"visible": false |
796 |
"searchable": false, |
|
|
797 |
"orderable": false |
798 |
}, |
796 |
}, |
799 |
{ |
797 |
{ |
800 |
"data": "biblio.title", |
798 |
"data": "biblio.title", |
Lines 825-831
Link Here
|
825 |
"searchable": true, |
823 |
"searchable": true, |
826 |
"orderable": true, |
824 |
"orderable": true, |
827 |
"render": function(data, type, row, meta) { |
825 |
"render": function(data, type, row, meta) { |
828 |
return $datetime(row.start_date); |
826 |
return $date(row.start_date); |
829 |
} |
827 |
} |
830 |
}, |
828 |
}, |
831 |
{ |
829 |
{ |
Lines 834-840
Link Here
|
834 |
"searchable": true, |
832 |
"searchable": true, |
835 |
"orderable": true, |
833 |
"orderable": true, |
836 |
"render": function(data, type, row, meta) { |
834 |
"render": function(data, type, row, meta) { |
837 |
return $datetime(row.end_date); |
835 |
return $date(row.end_date); |
838 |
} |
836 |
} |
839 |
}, |
837 |
}, |
840 |
{ |
838 |
{ |
Lines 847-853
Link Here
|
847 |
return result; |
845 |
return result; |
848 |
} |
846 |
} |
849 |
}] |
847 |
}] |
850 |
}, [], 1, { patron_id: "[% patron.borrowernumber | html %]", end_date: { ">=": today.toISOString() } }); |
848 |
}, [], 0, { patron_id: "[% patron.borrowernumber | html %]", end_date: { ">=": today.toISOString() } }); |
851 |
}; |
849 |
}; |
852 |
}); |
850 |
}); |
853 |
// Bookings |
851 |
// Bookings |
854 |
- |
|
|