$template->param( course_reserves => $course_reserves );
}
my @libraries = $biblio->items({ host_items => 1 })->get_column('homebranch');
my %can_edit_items_from = map {
$_ => $patron->can_edit_items_from($_)
} @libraries;
$template->param(can_edit_items_from => \%can_edit_items_from);
$template->param(found1 => scalar $query->param('found1') );
$template->param(biblio => $biblio);
[% USE raw %]
[% USE Asset %]
[% USE To %]
[% USE Koha %]
[% USE KohaDates %]
[% USE KohaPlugins %]
searchable: false,
orderable: false,
render: function (data, type, row, meta) {
// FIXME if item.can_be_edited
if ( can_edit_items_from[row.holding_library_id] ){
return ('<input type="checkbox" value="%s" name="itemnumber" />'.format(row.item_id));
return '<input type="checkbox" value="%s" name="itemnumber" />'.format(row.item_id);
} else {
return ''
},
[% END %]
-