# You should have received a copy of the GNU General Public License
# along with Koha; if not, see <http://www.gnu.org/licenses>.
-use strict;
-use warnings;
+use Modern::Perl;
use CGI qw ( -utf8 );
use C4::Context;
use C4::Output;
%getransf = (
%getransf,
title => $biblio->title,
+ subtitle => $biblio->subtitle,
+ medium => $biblio->medium,
+ part_number => $biblio->part_number,
+ part_name => $biblio->part_name,
author => $biblio->author,
biblionumber => $biblio->biblionumber,
itemnumber => $item->itemnumber,
itemcallnumber => $item->itemcallnumber,
);
- my $record = GetMarcBiblio($biblio->biblionumber);
- $getransf{'subtitle'} = GetRecordValue('subtitle', $record, $biblio->frameworkcode);
-
# we check if we have a reserv for this transfer
my $holds = $item->current_holds;
if ( my $first_hold = $holds->next ) {
- my $patron = Koha::Patrons->find( $first_hold->borrowernumber );
- # FIXME The full patron object should be passed to the template
- $getransf{'borrowernum'} = $patron->borrowernumber;
- $getransf{'borrowername'} = $patron->surname;
- $getransf{'borrowerfirstname'} = $patron->firstname;
- $getransf{'borrowermail'} = $patron->email if $patron->email;
- $getransf{'borrowerphone'} = $patron->phone;
+ $getransf{patron} = Koha::Patrons->find( $first_hold->borrowernumber );
}
push( @transferloop, \%getransf );
}
$template->param(
branchesloop => \@branchesloop,
show_date => output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }),
- TransfersMaxDaysWarning => C4::Context->preference('TransfersMaxDaysWarning'),
- latetransfers => $latetransfers ? 1 : 0,
+ TransfersMaxDaysWarning => C4::Context->preference('TransfersMaxDaysWarning'),
+ latetransfers => $latetransfers ? 1 : 0,
);
# Checking if there is a Fast Cataloging Framework