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