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 718-725 Link Here
718
    [% END %]
718
    [% END %]
719
    [% Asset.js("js/holds.js") | $raw %]
719
    [% Asset.js("js/holds.js") | $raw %]
720
    [% INCLUDE 'calendar.inc' %]
720
    [% INCLUDE 'calendar.inc' %]
721
    [% Asset.js("js/bookings.js") | $raw %]
722
    [% Asset.js("js/cancel_booking_modal.js") | $raw %]
721
    [% Asset.js("js/cancel_booking_modal.js") | $raw %]
722
    [% INCLUDE 'js-biblio-format.inc' %]
723
    [% INCLUDE 'str/members-menu.inc' %]
723
    [% INCLUDE 'str/members-menu.inc' %]
724
    [% Asset.js("js/members-menu.js") | $raw %]
724
    [% Asset.js("js/members-menu.js") | $raw %]
725
    [% Asset.js("js/recalls.js") | $raw %]
725
    [% Asset.js("js/recalls.js") | $raw %]
Lines 775-781 Link Here
775
                            "searchable": true,
775
                            "searchable": true,
776
                            "orderable": true,
776
                            "orderable": true,
777
                            "render": function(data,type,row,meta) {
777
                            "render": function(data,type,row,meta) {
778
                                return row.biblio.title;
778
                                return $biblio_to_html(row.biblio, {
779
                                    link: 'bookings'
780
                                });
779
                            }
781
                            }
780
                        },
782
                        },
781
                        {
783
                        {
Lines 786-792 Link Here
786
                            "defaultContent": "Any item",
788
                            "defaultContent": "Any item",
787
                            "render": function(data,type,row,meta) {
789
                            "render": function(data,type,row,meta) {
788
                                if ( row.item ) {
790
                                if ( row.item ) {
789
                                    return row.item.external_id;
791
                                    return row.item.external_id + " (" + row.booking_id + ")";
790
                                } else {
792
                                } else {
791
                                    return null;
793
                                    return null;
792
                                }
794
                                }
Lines 813-822 Link Here
813
                        {
815
                        {
814
                            "data": "",
816
                            "data": "",
815
                            "title": "Actions",
817
                            "title": "Actions",
818
                            "class": "actions",
816
                            "searchable": false,
819
                            "searchable": false,
817
                            "orderable": false,
820
                            "orderable": false,
818
                            "render": function(data, type, row, meta) {
821
                            "render": function(data, type, row, meta) {
819
                                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>';
822
                                let result = "";
823
                                [% IF CAN_user_circulate_manage_bookings %]
824
                                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>';
825
                                [% END %]
820
                                return result;
826
                                return result;
821
                            }
827
                            }
822
                        }]
828
                        }]
823
- 

Return to bug 33737