Lines 75-81
my ($template, $loggedinuser, $cookie)
Link Here
|
75 |
$template->param( searchid => scalar $input->param('searchid'), ); |
75 |
$template->param( searchid => scalar $input->param('searchid'), ); |
76 |
|
76 |
|
77 |
# Does the user have a restricted item edition permission? |
77 |
# Does the user have a restricted item edition permission? |
78 |
my $uid = $loggedinuser ? Koha::Patrons->find( $loggedinuser )->userid : undef; |
78 |
my $patron = Koha::Patrons->find( $loggedinuser ); |
|
|
79 |
my $uid = $loggedinuser ? $patron->userid : undef; |
79 |
my $restrictededition = $uid ? haspermission($uid, {'tools' => 'items_batchmod_restricted'}) : undef; |
80 |
my $restrictededition = $uid ? haspermission($uid, {'tools' => 'items_batchmod_restricted'}) : undef; |
80 |
# In case user is a superlibrarian, edition is not restricted |
81 |
# In case user is a superlibrarian, edition is not restricted |
81 |
$restrictededition = 0 if ($restrictededition != 0 && C4::Context->IsSuperLibrarian()); |
82 |
$restrictededition = 0 if ($restrictededition != 0 && C4::Context->IsSuperLibrarian()); |
Lines 296-302
if ($op eq "show"){
Link Here
|
296 |
if ( $display_items ) { |
297 |
if ( $display_items ) { |
297 |
my $items_table = |
298 |
my $items_table = |
298 |
Koha::UI::Table::Builder::Items->new( { itemnumbers => \@itemnumbers } ) |
299 |
Koha::UI::Table::Builder::Items->new( { itemnumbers => \@itemnumbers } ) |
299 |
->build_table; |
300 |
->build_table( { patron => $patron } );; |
300 |
$template->param( |
301 |
$template->param( |
301 |
items => $items_table->{items}, |
302 |
items => $items_table->{items}, |
302 |
item_header_loop => $items_table->{headers}, |
303 |
item_header_loop => $items_table->{headers}, |
303 |
- |
|
|