Lines 477-483
foreach my $startrange (sort keys %$lost) {
Link Here
|
477 |
$patron ||= Koha::Patrons->find( $row->{borrowernumber} ); |
477 |
$patron ||= Koha::Patrons->find( $row->{borrowernumber} ); |
478 |
$lib = $patron->branchcode(); |
478 |
$lib = $patron->branchcode(); |
479 |
} elsif ( $_ eq 'PickupLibrary' ) { |
479 |
} elsif ( $_ eq 'PickupLibrary' ) { |
480 |
$lib = C4::Context->userenv->{'branch'}; |
480 |
pod2usage( |
|
|
481 |
'-exitval' => 1, |
482 |
'-message' => "Use of --library flag not permitted when the CircControl system preference set to 'the library you are logged in at'", |
483 |
) |
481 |
} else { # ( $_ eq 'ItemHomeLibrary' ) |
484 |
} else { # ( $_ eq 'ItemHomeLibrary' ) |
482 |
if ($home_holding_pref eq 'homebranch') { |
485 |
if ($home_holding_pref eq 'homebranch') { |
483 |
$lib = Koha::Items->find( $row->{itemnumber} )->homebranch(); |
486 |
$lib = Koha::Items->find( $row->{itemnumber} )->homebranch(); |
484 |
- |
|
|