-$branch = C4::Context->userenv->{'branch'};
-
-# get the borrower information.....
-my $borrower;
-if ($borrowernumber) {
- $borrower = GetMemberDetails( $borrowernumber, 0 );
-}
-
-
-##################################################################################
-# BUILD HTML
-# I'm trying to show the title of subscriptions where the borrowernumber is attached via a routing list
-
-if ($borrowernumber) {
-# new op dev
- my $count;
- my @borrowerSubscriptions;
- ($count, @borrowerSubscriptions) = GetSubscriptionsFromBorrower($borrowernumber );
- my @subscripLoop;
-
- foreach my $num_res (@borrowerSubscriptions) {
- my %getSubscrip;
- $getSubscrip{subscriptionid} = $num_res->{'subscriptionid'};
- $getSubscrip{title} = $num_res->{'title'};
- $getSubscrip{borrowernumber} = $num_res->{'borrowernumber'};
- push( @subscripLoop, \%getSubscrip );
- }
-
- $template->param(
- countSubscrip => scalar @subscripLoop,
- subscripLoop => \@subscripLoop,
- routinglistview => 1
- );
-
- $template->param( adultborrower => 1 ) if ( $borrower->{'category_type'} eq 'A' );
-}
-
-##################################################################################