|
Lines 46-52
use C4::Items;
Link Here
|
| 46 |
use C4::Members; |
46 |
use C4::Members; |
| 47 |
use C4::Members::Messaging; |
47 |
use C4::Members::Messaging; |
| 48 |
use C4::Koha; # FIXME : is it still useful ? |
48 |
use C4::Koha; # FIXME : is it still useful ? |
| 49 |
use C4::RotatingCollections; |
|
|
| 50 |
use Koha::AuthorisedValues; |
49 |
use Koha::AuthorisedValues; |
| 51 |
use Koha::DateUtils; |
50 |
use Koha::DateUtils; |
| 52 |
use Koha::Calendar; |
51 |
use Koha::Calendar; |
|
Lines 644-660
$template->param(
Link Here
|
| 644 |
|
643 |
|
| 645 |
$itemnumber = GetItemnumberFromBarcode( $barcode ); |
644 |
$itemnumber = GetItemnumberFromBarcode( $barcode ); |
| 646 |
if ( $itemnumber ) { |
645 |
if ( $itemnumber ) { |
| 647 |
my ( $holdingBranch, $collectionBranch ) = GetCollectionItemBranches( $itemnumber ); |
646 |
my $item = Koha::Items->find( $itemnumber ); |
| 648 |
if ( $holdingBranch and $collectionBranch ) { |
647 |
my $holdingBranch = $item->holdingbranch; |
| 649 |
$holdingBranch //= ''; |
648 |
my $collectionBranch = $item->rotating_collection->colBranchcode; |
| 650 |
$collectionBranch //= $returnbranch; |
649 |
if ( $holdingBranch and $collectionBranch and ( $holdingBranch ne $collectionBranch ) ) { |
| 651 |
if ( ! ( $holdingBranch eq $collectionBranch ) ) { |
650 |
$template->param( |
| 652 |
$template->param( |
651 |
collectionItemNeedsTransferred => 1, |
| 653 |
collectionItemNeedsTransferred => 1, |
652 |
collectionBranch => $collectionBranch, |
| 654 |
collectionBranch => $collectionBranch, |
653 |
itemnumber => $itemnumber, |
| 655 |
itemnumber => $itemnumber, |
654 |
); |
| 656 |
); |
|
|
| 657 |
} |
| 658 |
} |
655 |
} |
| 659 |
} |
656 |
} |
| 660 |
|
657 |
|
| 661 |
- |
|
|