Lines 44-50
use C4::Items;
Link Here
|
44 |
use C4::Members; |
44 |
use C4::Members; |
45 |
use C4::Members::Messaging; |
45 |
use C4::Members::Messaging; |
46 |
use C4::Koha; # FIXME : is it still useful ? |
46 |
use C4::Koha; # FIXME : is it still useful ? |
47 |
use C4::RotatingCollections; |
|
|
48 |
use Koha::AuthorisedValues; |
47 |
use Koha::AuthorisedValues; |
49 |
use Koha::DateUtils; |
48 |
use Koha::DateUtils; |
50 |
use Koha::Calendar; |
49 |
use Koha::Calendar; |
Lines 594-610
$template->param(
Link Here
|
594 |
|
593 |
|
595 |
$itemnumber = GetItemnumberFromBarcode( $barcode ); |
594 |
$itemnumber = GetItemnumberFromBarcode( $barcode ); |
596 |
if ( $itemnumber ) { |
595 |
if ( $itemnumber ) { |
597 |
my ( $holdingBranch, $collectionBranch ) = GetCollectionItemBranches( $itemnumber ); |
596 |
my $item = Koha::Items->find( $itemnumber ); |
598 |
if ( $holdingBranch and $collectionBranch ) { |
597 |
my $holdingBranch = $item->holdingbranch; |
599 |
$holdingBranch //= ''; |
598 |
my $collection = $item->rotating_collection; |
600 |
$collectionBranch //= $returnbranch; |
599 |
my $collectionBranch; |
601 |
if ( ! ( $holdingBranch eq $collectionBranch ) ) { |
600 |
$collectionBranch = $collection->colBranchcode if $collection; |
602 |
$template->param( |
601 |
if ( $holdingBranch and $collectionBranch and ( $holdingBranch ne $collectionBranch ) ) { |
603 |
collectionItemNeedsTransferred => 1, |
602 |
$template->param( |
604 |
collectionBranch => $collectionBranch, |
603 |
collectionItemNeedsTransferred => 1, |
605 |
itemnumber => $itemnumber, |
604 |
collectionBranch => $collectionBranch, |
606 |
); |
605 |
itemnumber => $itemnumber, |
607 |
} |
606 |
); |
608 |
} |
607 |
} |
609 |
} |
608 |
} |
610 |
|
609 |
|
611 |
- |
|
|