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 758-764 Link Here
758
                if ( !bookings_table ) {
758
                if ( !bookings_table ) {
759
                    var today = new Date();
759
                    var today = new Date();
760
                    var bookings_table_url = "/api/v1/bookings";
760
                    var bookings_table_url = "/api/v1/bookings";
761
                    bookings_table = $('#bookings-table').kohaTable({
761
                    bookings_table = $('#bookings_table').kohaTable({
762
                        "ajax": {
762
                        "ajax": {
763
                            "url": bookings_table_url
763
                            "url": bookings_table_url
764
                        },
764
                        },
Lines 770-778 Link Here
770
                        "columns": [{
770
                        "columns": [{
771
                            "data": "booking_id",
771
                            "data": "booking_id",
772
                            "title": "Booking ID",
772
                            "title": "Booking ID",
773
                            "visible": false,
773
                            "visible": false
774
                            "searchable": false,
775
                            "orderable": false
776
                        },
774
                        },
777
                        {
775
                        {
778
                            "data": "biblio.title",
776
                            "data": "biblio.title",
Lines 803-809 Link Here
803
                            "searchable": true,
801
                            "searchable": true,
804
                            "orderable": true,
802
                            "orderable": true,
805
                            "render": function(data, type, row, meta) {
803
                            "render": function(data, type, row, meta) {
806
                                return $datetime(row.start_date);
804
                                return $date(row.start_date);
807
                            }
805
                            }
808
                        },
806
                        },
809
                        {
807
                        {
Lines 812-818 Link Here
812
                            "searchable": true,
810
                            "searchable": true,
813
                            "orderable": true,
811
                            "orderable": true,
814
                            "render": function(data, type, row, meta) {
812
                            "render": function(data, type, row, meta) {
815
                                return $datetime(row.end_date);
813
                                return $date(row.end_date);
816
                            }
814
                            }
817
                        },
815
                        },
818
                        {
816
                        {
Lines 825-831 Link Here
825
                                return result;
823
                                return result;
826
                            }
824
                            }
827
                        }]
825
                        }]
828
                    }, [], 1, { patron_id: "[% patron.borrowernumber | html %]", end_date: { ">=": today.toISOString() } });
826
                    }, [], 0, { patron_id: "[% patron.borrowernumber | html %]", end_date: { ">=": today.toISOString() } });
829
                };
827
                };
830
            });
828
            });
831
            // Bookings
829
            // Bookings
832
- 

Return to bug 33737