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