Lines 355-360
sub longoverdue_sth {
Link Here
|
355 |
|
355 |
|
356 |
my $dbh = C4::Context->dbh; |
356 |
my $dbh = C4::Context->dbh; |
357 |
my $circ_control_pref = C4::Context->preference('CircControl'); |
357 |
my $circ_control_pref = C4::Context->preference('CircControl'); |
|
|
358 |
my $home_holding_pref = C4::Context->preference('HomeOrHoldingBranch'); |
358 |
|
359 |
|
359 |
my @available_categories = Koha::Patron::Categories->search()->get_column('categorycode'); |
360 |
my @available_categories = Koha::Patron::Categories->search()->get_column('categorycode'); |
360 |
$borrower_category = [ map { uc $_ } @$borrower_category ]; |
361 |
$borrower_category = [ map { uc $_ } @$borrower_category ]; |
Lines 478-484
foreach my $startrange (sort keys %$lost) {
Link Here
|
478 |
} elsif ( $_ eq 'PickupLibrary' ) { |
479 |
} elsif ( $_ eq 'PickupLibrary' ) { |
479 |
$lib = C4::Context->userenv->{'branch'}; |
480 |
$lib = C4::Context->userenv->{'branch'}; |
480 |
} else { # ( $_ eq 'ItemHomeLibrary' ) |
481 |
} else { # ( $_ eq 'ItemHomeLibrary' ) |
481 |
$lib = Koha::Items->find( $row->{itemnumber} )->homebranch(); |
482 |
if ($home_holding_pref eq 'homebranch') { |
|
|
483 |
$lib = Koha::Items->find( $row->{itemnumber} )->homebranch(); |
484 |
} else { # ( $home_holding_pref eq 'holdingbranch' ) |
485 |
$lib = Koha::Items->find( $row->{itemnumber} )->holdingbranch(); |
486 |
} |
482 |
} |
487 |
} |
483 |
} |
488 |
} |
484 |
next ITEM unless ( $branches_to_process{$lib} ); |
489 |
next ITEM unless ( $branches_to_process{$lib} ); |
485 |
- |
|
|