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 625-631
$template->param(
Link Here
|
625 |
my $item_from_barcode = Koha::Items->find({barcode => $barcode }); # How many times do we fetch this item?!? |
624 |
my $item_from_barcode = Koha::Items->find({barcode => $barcode }); # How many times do we fetch this item?!? |
626 |
if ( $item_from_barcode ) { |
625 |
if ( $item_from_barcode ) { |
627 |
$itemnumber = $item_from_barcode->itemnumber; |
626 |
$itemnumber = $item_from_barcode->itemnumber; |
628 |
my ( $holdingBranch, $collectionBranch ) = GetCollectionItemBranches( $itemnumber ); |
627 |
my $holdingBranch = $item_from_barcode->holdingbranch; |
|
|
628 |
my $collection = $item_from_barcode->rotating_collection; |
629 |
my $collectionBranch; |
630 |
$collectionBranch = $collection->colBranchcode if $collection; |
629 |
if ( $holdingBranch and $collectionBranch ) { |
631 |
if ( $holdingBranch and $collectionBranch ) { |
630 |
$holdingBranch //= ''; |
632 |
$holdingBranch //= ''; |
631 |
$collectionBranch //= $returnbranch; |
633 |
$collectionBranch //= $returnbranch; |
632 |
- |
|
|