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

(-)a/catalogue/detail.pl (+6 lines)
Lines 634-639 if ( C4::Context->preference('UseCourseReserves') ) { Link Here
634
    $template->param( course_reserves => $course_reserves );
634
    $template->param( course_reserves => $course_reserves );
635
}
635
}
636
636
637
my @libraries = $biblio->items({ host_items => 1 })->get_column('homebranch');
638
my %can_edit_items_from = map {
639
    $_ => $patron->can_edit_items_from($_)
640
} @libraries;
641
$template->param(can_edit_items_from => \%can_edit_items_from);
642
637
$template->param(found1 => scalar $query->param('found1') );
643
$template->param(found1 => scalar $query->param('found1') );
638
644
639
$template->param(biblio => $biblio);
645
$template->param(biblio => $biblio);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-3 / +6 lines)
Lines 1-5 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE To %]
3
[% USE Koha %]
4
[% USE Koha %]
4
[% USE KohaDates %]
5
[% USE KohaDates %]
5
[% USE KohaPlugins %]
6
[% USE KohaPlugins %]
Lines 2504-2511 Link Here
2504
                searchable: false,
2505
                searchable: false,
2505
                orderable: false,
2506
                orderable: false,
2506
                render: function (data, type, row, meta) {
2507
                render: function (data, type, row, meta) {
2507
                    // FIXME if item.can_be_edited
2508
                    if ( can_edit_items_from[row.holding_library_id] ){
2508
                    return ('<input type="checkbox" value="%s" name="itemnumber" />'.format(row.item_id));
2509
                        return '<input type="checkbox" value="%s" name="itemnumber" />'.format(row.item_id);
2510
                    } else {
2511
                        return ''
2512
                    }
2509
                }
2513
                }
2510
            },
2514
            },
2511
            [% END %]
2515
            [% END %]
2512
- 

Return to bug 33568