Lines 755-761
Link Here
|
755 |
if ( !bookings_table ) { |
755 |
if ( !bookings_table ) { |
756 |
var today = new Date(); |
756 |
var today = new Date(); |
757 |
var bookings_table_url = "/api/v1/bookings"; |
757 |
var bookings_table_url = "/api/v1/bookings"; |
758 |
bookings_table = $('#bookings-table').kohaTable({ |
758 |
bookings_table = $('#bookings_table').kohaTable({ |
759 |
"ajax": { |
759 |
"ajax": { |
760 |
"url": bookings_table_url |
760 |
"url": bookings_table_url |
761 |
}, |
761 |
}, |
Lines 767-775
Link Here
|
767 |
"columns": [{ |
767 |
"columns": [{ |
768 |
"data": "booking_id", |
768 |
"data": "booking_id", |
769 |
"title": "Booking ID", |
769 |
"title": "Booking ID", |
770 |
"visible": false, |
770 |
"visible": false |
771 |
"searchable": false, |
|
|
772 |
"orderable": false |
773 |
}, |
771 |
}, |
774 |
{ |
772 |
{ |
775 |
"data": "biblio.title", |
773 |
"data": "biblio.title", |
Lines 800-806
Link Here
|
800 |
"searchable": true, |
798 |
"searchable": true, |
801 |
"orderable": true, |
799 |
"orderable": true, |
802 |
"render": function(data, type, row, meta) { |
800 |
"render": function(data, type, row, meta) { |
803 |
return $datetime(row.start_date); |
801 |
return $date(row.start_date); |
804 |
} |
802 |
} |
805 |
}, |
803 |
}, |
806 |
{ |
804 |
{ |
Lines 809-815
Link Here
|
809 |
"searchable": true, |
807 |
"searchable": true, |
810 |
"orderable": true, |
808 |
"orderable": true, |
811 |
"render": function(data, type, row, meta) { |
809 |
"render": function(data, type, row, meta) { |
812 |
return $datetime(row.end_date); |
810 |
return $date(row.end_date); |
813 |
} |
811 |
} |
814 |
}, |
812 |
}, |
815 |
{ |
813 |
{ |
Lines 822-828
Link Here
|
822 |
return result; |
820 |
return result; |
823 |
} |
821 |
} |
824 |
}] |
822 |
}] |
825 |
}, [], 1, { patron_id: "[% patron.borrowernumber | html %]", end_date: { ">=": today.toISOString() } }); |
823 |
}, [], 0, { patron_id: "[% patron.borrowernumber | html %]", end_date: { ">=": today.toISOString() } }); |
826 |
}; |
824 |
}; |
827 |
}); |
825 |
}); |
828 |
// Bookings |
826 |
// Bookings |
829 |
- |
|
|