Lines 46-55
my ($template, $loggedinuser, $cookie) = get_template_and_user({
Link Here
|
46 |
my $operations = GetOfflineOperations; |
46 |
my $operations = GetOfflineOperations; |
47 |
|
47 |
|
48 |
for (@$operations) { |
48 |
for (@$operations) { |
49 |
my $item = Koha::Items->find({ barcode => $_->{barcode} }); |
49 |
my $item = $_->{barcode} ? Koha::Items->find({ barcode => $_->{barcode} }) : undef; |
50 |
my $biblio = $item->biblio; |
50 |
if ($item) { |
51 |
$_->{'bibliotitle'} = $biblio->title; |
51 |
my $biblio = $item->biblio; |
52 |
$_->{'biblionumber'} = $biblio->biblionumber; |
52 |
$_->{'bibliotitle'} = $biblio->title; |
|
|
53 |
$_->{'biblionumber'} = $biblio->biblionumber; |
54 |
} |
53 |
my $patron = $_->{cardnumber} ? Koha::Patrons->find( { cardnumber => $_->{cardnumber} } ) : undef; |
55 |
my $patron = $_->{cardnumber} ? Koha::Patrons->find( { cardnumber => $_->{cardnumber} } ) : undef; |
54 |
if ($patron) { |
56 |
if ($patron) { |
55 |
$_->{'borrowernumber'} = $patron->borrowernumber; |
57 |
$_->{'borrowernumber'} = $patron->borrowernumber; |
56 |
- |
|
|