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