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 743-750 Link Here
743
    [% END %]
743
    [% END %]
744
    [% Asset.js("js/holds.js") | $raw %]
744
    [% Asset.js("js/holds.js") | $raw %]
745
    [% INCLUDE 'calendar.inc' %]
745
    [% INCLUDE 'calendar.inc' %]
746
    [% Asset.js("js/bookings.js") | $raw %]
747
    [% Asset.js("js/cancel_booking_modal.js") | $raw %]
746
    [% Asset.js("js/cancel_booking_modal.js") | $raw %]
747
    [% INCLUDE 'js-biblio-format.inc' %]
748
    [% INCLUDE 'str/members-menu.inc' %]
748
    [% INCLUDE 'str/members-menu.inc' %]
749
    [% Asset.js("js/members-menu.js") | $raw %]
749
    [% Asset.js("js/members-menu.js") | $raw %]
750
    [% Asset.js("js/recalls.js") | $raw %]
750
    [% Asset.js("js/recalls.js") | $raw %]
Lines 800-806 Link Here
800
                            "searchable": true,
800
                            "searchable": true,
801
                            "orderable": true,
801
                            "orderable": true,
802
                            "render": function(data,type,row,meta) {
802
                            "render": function(data,type,row,meta) {
803
                                return row.biblio.title;
803
                                return $biblio_to_html(row.biblio, {
804
                                    link: 'bookings'
805
                                });
804
                            }
806
                            }
805
                        },
807
                        },
806
                        {
808
                        {
Lines 811-817 Link Here
811
                            "defaultContent": "Any item",
813
                            "defaultContent": "Any item",
812
                            "render": function(data,type,row,meta) {
814
                            "render": function(data,type,row,meta) {
813
                                if ( row.item ) {
815
                                if ( row.item ) {
814
                                    return row.item.external_id;
816
                                    return row.item.external_id + " (" + row.booking_id + ")";
815
                                } else {
817
                                } else {
816
                                    return null;
818
                                    return null;
817
                                }
819
                                }
Lines 838-847 Link Here
838
                        {
840
                        {
839
                            "data": "",
841
                            "data": "",
840
                            "title": "Actions",
842
                            "title": "Actions",
843
                            "class": "actions",
841
                            "searchable": false,
844
                            "searchable": false,
842
                            "orderable": false,
845
                            "orderable": false,
843
                            "render": function(data, type, row, meta) {
846
                            "render": function(data, type, row, meta) {
844
                                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>';
847
                                let result = "";
848
                                [% IF CAN_user_circulate_manage_bookings %]
849
                                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>';
850
                                [% END %]
845
                                return result;
851
                                return result;
846
                            }
852
                            }
847
                        }]
853
                        }]
848
- 

Return to bug 33737