Lines 40-45
use C4::Serials qw( CountSubscriptionFromBiblionumber );
Link Here
|
40 |
use C4::Circulation qw( _GetCircControlBranch GetBranchItemRule ); |
40 |
use C4::Circulation qw( _GetCircControlBranch GetBranchItemRule ); |
41 |
use Koha::DateUtils qw( dt_from_string ); |
41 |
use Koha::DateUtils qw( dt_from_string ); |
42 |
use C4::Search qw( enabled_staff_search_views ); |
42 |
use C4::Search qw( enabled_staff_search_views ); |
|
|
43 |
use C4::Context; |
43 |
|
44 |
|
44 |
use Koha::Biblios; |
45 |
use Koha::Biblios; |
45 |
use Koha::Checkouts; |
46 |
use Koha::Checkouts; |
Lines 64-69
my ( $template, $borrowernumber, $cookie, $flags ) = get_template_and_user(
Link Here
|
64 |
} |
65 |
} |
65 |
); |
66 |
); |
66 |
|
67 |
|
|
|
68 |
my $is_super_librarian = C4::Context->IsSuperLibrarian(); |
69 |
my $user_branch = C4::Context->preference("IndependentBranches") ? C4::Context->userenv->{'branch'}: undef; |
70 |
|
71 |
$template->param( |
72 |
is_super_librarian => $is_super_librarian, |
73 |
user_branch => $user_branch, |
74 |
); |
75 |
|
67 |
my $showallitems = $input->param('showallitems'); |
76 |
my $showallitems = $input->param('showallitems'); |
68 |
my $pickup = $input->param('pickup'); |
77 |
my $pickup = $input->param('pickup'); |
69 |
|
78 |
|
Lines 111-120
if ( $op eq 'cud-move' ) {
Link Here
|
111 |
} |
120 |
} |
112 |
} |
121 |
} |
113 |
elsif ( $op eq 'cud-cancel' ) { |
122 |
elsif ( $op eq 'cud-cancel' ) { |
114 |
my $reserve_id = $input->param('reserve_id'); |
123 |
my $reserve_id = $input->param('reserve_id'); |
115 |
my $cancellation_reason = $input->param("cancellation-reason"); |
124 |
my $cancellation_reason = $input->param("cancellation-reason"); |
116 |
my $hold = Koha::Holds->find($reserve_id); |
125 |
my $hold = Koha::Holds->find($reserve_id); |
117 |
$hold->cancel( { cancellation_reason => $cancellation_reason } ) if $hold; |
126 |
$hold->cancel( { cancellation_reason => $cancellation_reason } ) if $hold; |
118 |
} |
127 |
} |
119 |
elsif ( $op eq 'cud-setLowestPriority' ) { |
128 |
elsif ( $op eq 'cud-setLowestPriority' ) { |
120 |
my $reserve_id = $input->param('reserve_id'); |
129 |
my $reserve_id = $input->param('reserve_id'); |
121 |
- |
|
|