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 784-790 Link Here
784
                if ( !bookings_table ) {
784
                if ( !bookings_table ) {
785
                    var today = new Date();
785
                    var today = new Date();
786
                    var bookings_table_url = "/api/v1/bookings";
786
                    var bookings_table_url = "/api/v1/bookings";
787
                    bookings_table = $('#bookings-table').kohaTable({
787
                    bookings_table = $('#bookings_table').kohaTable({
788
                        "ajax": {
788
                        "ajax": {
789
                            "url": bookings_table_url
789
                            "url": bookings_table_url
790
                        },
790
                        },
Lines 796-804 Link Here
796
                        "columns": [{
796
                        "columns": [{
797
                            "data": "booking_id",
797
                            "data": "booking_id",
798
                            "title": "Booking ID",
798
                            "title": "Booking ID",
799
                            "visible": false,
799
                            "visible": false
800
                            "searchable": false,
801
                            "orderable": false
802
                        },
800
                        },
803
                        {
801
                        {
804
                            "data": "biblio.title",
802
                            "data": "biblio.title",
Lines 829-835 Link Here
829
                            "searchable": true,
827
                            "searchable": true,
830
                            "orderable": true,
828
                            "orderable": true,
831
                            "render": function(data, type, row, meta) {
829
                            "render": function(data, type, row, meta) {
832
                                return $datetime(row.start_date);
830
                                return $date(row.start_date);
833
                            }
831
                            }
834
                        },
832
                        },
835
                        {
833
                        {
Lines 838-844 Link Here
838
                            "searchable": true,
836
                            "searchable": true,
839
                            "orderable": true,
837
                            "orderable": true,
840
                            "render": function(data, type, row, meta) {
838
                            "render": function(data, type, row, meta) {
841
                                return $datetime(row.end_date);
839
                                return $date(row.end_date);
842
                            }
840
                            }
843
                        },
841
                        },
844
                        {
842
                        {
Lines 851-857 Link Here
851
                                return result;
849
                                return result;
852
                            }
850
                            }
853
                        }]
851
                        }]
854
                    }, [], 1, { patron_id: "[% patron.borrowernumber | html %]", end_date: { ">=": today.toISOString() } });
852
                    }, [], 0, { patron_id: "[% patron.borrowernumber | html %]", end_date: { ">=": today.toISOString() } });
855
                };
853
                };
856
            });
854
            });
857
            // Bookings
855
            // Bookings
858
- 

Return to bug 33737