|
Lines 21-29
use CGI qw ( -utf8 );
Link Here
|
| 21 |
use C4::Members; |
21 |
use C4::Members; |
| 22 |
use C4::Auth; |
22 |
use C4::Auth; |
| 23 |
use C4::Output; |
23 |
use C4::Output; |
| 24 |
use C4::Serials; |
|
|
| 25 |
use Koha::Patrons; |
24 |
use Koha::Patrons; |
| 26 |
use Koha::Subscriptions; |
|
|
| 27 |
|
25 |
|
| 28 |
my $query = new CGI; |
26 |
my $query = new CGI; |
| 29 |
my ( $template, $borrowernumber, $cookie ) = get_template_and_user( |
27 |
my ( $template, $borrowernumber, $cookie ) = get_template_and_user( |
|
Lines 43-68
$borrower->{description} = $category->description;
Link Here
|
| 43 |
$borrower->{category_type} = $category->category_type; |
41 |
$borrower->{category_type} = $category->category_type; |
| 44 |
$template->param( BORROWER_INFO => $borrower ); |
42 |
$template->param( BORROWER_INFO => $borrower ); |
| 45 |
|
43 |
|
| 46 |
|
44 |
my @routinglists = $patron->get_routinglists(); |
| 47 |
my $count; |
|
|
| 48 |
my @borrowerSubscriptions; |
| 49 |
($count, @borrowerSubscriptions) = GetSubscriptionsFromBorrower($borrowernumber ); |
| 50 |
my @subscripLoop; |
| 51 |
|
| 52 |
foreach my $num_res (@borrowerSubscriptions) { |
| 53 |
my %getSubscrip; |
| 54 |
$getSubscrip{subscriptionid} = $num_res->{'subscriptionid'}; |
| 55 |
$getSubscrip{title} = $num_res->{'title'}; |
| 56 |
$getSubscrip{borrowernumber} = $num_res->{'borrowernumber'}; |
| 57 |
my $subscription = Koha::Subscriptions->find( $num_res->{'subscriptionid'} ); |
| 58 |
$getSubscrip{biblionumber} = $subscription->biblionumber(); |
| 59 |
push( @subscripLoop, \%getSubscrip ); |
| 60 |
} |
| 61 |
|
45 |
|
| 62 |
$template->param( |
46 |
$template->param( |
| 63 |
countSubscrip => scalar @subscripLoop, |
47 |
routinglists => \@routinglists, |
| 64 |
subscriptionLoop => \@subscripLoop, |
48 |
routinglistview => 1, |
| 65 |
routinglistview => 1 |
|
|
| 66 |
); |
49 |
); |
| 67 |
|
50 |
|
| 68 |
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 }; |
51 |
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 }; |
| 69 |
- |
|
|