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 221-227 Link Here
221
221
222
            [% WRAPPER tab_panel tabname="bookings" %]
222
            [% WRAPPER tab_panel tabname="bookings" %]
223
                [% IF ( bookings_count ) %]
223
                [% IF ( bookings_count ) %]
224
                    <table id="bookings-table" style="width: 100% !Important;"></table>
224
                    <table id="bookings_table" style="width: 100% !Important;"></table>
225
                [% ELSE %]
225
                [% ELSE %]
226
                    <p>Patron has nothing booked.</p>
226
                    <p>Patron has nothing booked.</p>
227
                [% END %]
227
                [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-8 / +5 lines)
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
- 

Return to bug 33737