|
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 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 $collection = $item->rotating_collection; |
| 650 |
$collectionBranch //= $returnbranch; |
649 |
my $collectionBranch; |
| 651 |
if ( ! ( $holdingBranch eq $collectionBranch ) ) { |
650 |
$collectionBranch = $collection->colBranchcode if $collection; |
| 652 |
$template->param( |
651 |
if ( $holdingBranch and $collectionBranch and ( $holdingBranch ne $collectionBranch ) ) { |
| 653 |
collectionItemNeedsTransferred => 1, |
652 |
$template->param( |
| 654 |
collectionBranch => $collectionBranch, |
653 |
collectionItemNeedsTransferred => 1, |
| 655 |
itemnumber => $itemnumber, |
654 |
collectionBranch => $collectionBranch, |
| 656 |
); |
655 |
itemnumber => $itemnumber, |
| 657 |
} |
656 |
); |
| 658 |
} |
657 |
} |
| 659 |
} |
658 |
} |
| 660 |
|
659 |
|
| 661 |
- |
|
|