View | Details | Raw Unified | Return to bug 33737
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-detail-tabs.inc (-1 / +1 lines)
Lines 228-234 Link Here
228
228
229
            [% WRAPPER tab_panel tabname="bookings" %]
229
            [% WRAPPER tab_panel tabname="bookings" %]
230
                [% IF ( bookings_count ) %]
230
                [% IF ( bookings_count ) %]
231
                    <table id="bookings-table" style="width: 100% !Important;"></table>
231
                    <table id="bookings_table" style="width: 100% !Important;"></table>
232
                [% ELSE %]
232
                [% ELSE %]
233
                    <p>Patron has nothing booked.</p>
233
                    <p>Patron has nothing booked.</p>
234
                [% END %]
234
                [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-8 / +5 lines)
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
- 

Return to bug 33737