|
Lines 36-42
use C4::Message;
Link Here
|
| 36 |
use C4::Debug; |
36 |
use C4::Debug; |
| 37 |
use C4::Branch; # GetBranches |
37 |
use C4::Branch; # GetBranches |
| 38 |
use C4::Log; # logaction |
38 |
use C4::Log; # logaction |
| 39 |
|
39 |
use C4::Koha qw(GetAuthorisedValueByCode); |
| 40 |
use Data::Dumper; |
40 |
use Data::Dumper; |
| 41 |
use Koha::DateUtils; |
41 |
use Koha::DateUtils; |
| 42 |
use Koha::Calendar; |
42 |
use Koha::Calendar; |
|
Lines 848-853
sub CanBookBeIssued {
Link Here
|
| 848 |
{ |
848 |
{ |
| 849 |
$issuingimpossible{RESTRICTED} = 1; |
849 |
$issuingimpossible{RESTRICTED} = 1; |
| 850 |
} |
850 |
} |
|
|
851 |
if ( $item->{'itemlost'} ) { |
| 852 |
$needsconfirmation{ITEM_LOST} = GetAuthorisedValueByCode( 'LOST', $item->{'itemlost'} ); |
| 853 |
} |
| 851 |
if ( C4::Context->preference("IndependantBranches") ) { |
854 |
if ( C4::Context->preference("IndependantBranches") ) { |
| 852 |
my $userenv = C4::Context->userenv; |
855 |
my $userenv = C4::Context->userenv; |
| 853 |
if ( ($userenv) && ( $userenv->{flags} % 2 != 1 ) ) { |
856 |
if ( ($userenv) && ( $userenv->{flags} % 2 != 1 ) ) { |