Bug 18541 - Patron card creator: Add a grid to support layout design
[koha.git] / opac / opac-readingrecord.pl
index a7b67ce..879a31e 100755 (executable)
@@ -31,6 +31,9 @@ use MARC::Record;
 
 use C4::Output;
 use C4::Charset qw(StripNonXmlChars);
+use Koha::Patrons;
+
+use Koha::ItemTypes;
 
 my $query = new CGI;
 
@@ -50,12 +53,11 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
     }
 );
 
-# get borrower information ....
-my ( $borr ) = GetMember( borrowernumber => $borrowernumber );
+my $borr = Koha::Patrons->find( $borrowernumber )->unblessed;
 
 $template->param(%{$borr});
 
-my $itemtypes = GetItemTypes();
+my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search_with_localization->unblessed } };
 
 # get the record
 my $order = $query->param('order') || '';