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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/js-biblio-format.inc (+2 lines)
Lines 41-46 Link Here
41
                    title = '<a href="/cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=' + encodeURIComponent(biblio.biblio_id) + '" class="title">' + title + '</a>';
41
                    title = '<a href="/cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=' + encodeURIComponent(biblio.biblio_id) + '" class="title">' + title + '</a>';
42
                } else if (config.link === 'isbd') {
42
                } else if (config.link === 'isbd') {
43
                    title = '<a href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=' + encodeURIComponent(biblio.biblio_id) + '" class="title">' + title + '</a>';
43
                    title = '<a href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=' + encodeURIComponent(biblio.biblio_id) + '" class="title">' + title + '</a>';
44
                } else if (config.link === 'bookings') {
45
                    title = '<a href="/cgi-bin/koha/bookings/list.pl?biblionumber=' + encodeURIComponent(biblio.biblio_id) + '" class="title">' + title + '</a>';
44
                } else {
46
                } else {
45
                    title = '<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=' + encodeURIComponent(biblio.biblio_id) + '" class="title">' + title + '</a>';
47
                    title = '<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=' + encodeURIComponent(biblio.biblio_id) + '" class="title">' + title + '</a>';
46
                }
48
                }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-5 / +10 lines)
Lines 747-754 Link Here
747
    [% END %]
747
    [% END %]
748
    [% Asset.js("js/holds.js") | $raw %]
748
    [% Asset.js("js/holds.js") | $raw %]
749
    [% INCLUDE 'calendar.inc' %]
749
    [% INCLUDE 'calendar.inc' %]
750
    [% Asset.js("js/bookings.js") | $raw %]
751
    [% Asset.js("js/cancel_booking_modal.js") | $raw %]
750
    [% Asset.js("js/cancel_booking_modal.js") | $raw %]
751
    [% INCLUDE 'js-biblio-format.inc' %]
752
    [% INCLUDE 'str/members-menu.inc' %]
752
    [% INCLUDE 'str/members-menu.inc' %]
753
    [% Asset.js("js/members-menu.js") | $raw %]
753
    [% Asset.js("js/members-menu.js") | $raw %]
754
    [% Asset.js("js/recalls.js") | $raw %]
754
    [% Asset.js("js/recalls.js") | $raw %]
Lines 804-810 Link Here
804
                            "searchable": true,
804
                            "searchable": true,
805
                            "orderable": true,
805
                            "orderable": true,
806
                            "render": function(data,type,row,meta) {
806
                            "render": function(data,type,row,meta) {
807
                                return row.biblio.title;
807
                                return $biblio_to_html(row.biblio, {
808
                                    link: 'bookings'
809
                                });
808
                            }
810
                            }
809
                        },
811
                        },
810
                        {
812
                        {
Lines 815-821 Link Here
815
                            "defaultContent": "Any item",
817
                            "defaultContent": "Any item",
816
                            "render": function(data,type,row,meta) {
818
                            "render": function(data,type,row,meta) {
817
                                if ( row.item ) {
819
                                if ( row.item ) {
818
                                    return row.item.external_id;
820
                                    return row.item.external_id + " (" + row.booking_id + ")";
819
                                } else {
821
                                } else {
820
                                    return null;
822
                                    return null;
821
                                }
823
                                }
Lines 842-851 Link Here
842
                        {
844
                        {
843
                            "data": "",
845
                            "data": "",
844
                            "title": "Actions",
846
                            "title": "Actions",
847
                            "class": "actions",
845
                            "searchable": false,
848
                            "searchable": false,
846
                            "orderable": false,
849
                            "orderable": false,
847
                            "render": function(data, type, row, meta) {
850
                            "render": function(data, type, row, meta) {
848
                                var result = '<button type="button" class="btn btn-default btn-xs cancel-action" data-toggle="modal" data-target="#cancelBookingModal" data-booking="'+row.booking_id+'"><i class="fa fa-trash" aria-hidden="true"></i> '+_("Cancel")+'</button>';
851
                                let result = "";
852
                                [% IF CAN_user_circulate_manage_bookings %]
853
                                result += '<button type="button" class="btn btn-default btn-xs cancel-action" data-toggle="modal" data-target="#cancelBookingModal" data-booking="'+row.booking_id+'"><i class="fa fa-trash" aria-hidden="true"></i> '+_("Cancel")+'</button>';
854
                                [% END %]
849
                                return result;
855
                                return result;
850
                            }
856
                            }
851
                        }]
857
                        }]
852
- 

Return to bug 33737