10 use C4::Interface::CGI::Output;
15 my $op = $query->param('op');
16 my $dbh = C4::Context->dbh;
17 my $selectview = $query->param('selectview');
18 $selectview = C4::Context->preference("SubscriptionHistory") unless $selectview;
22 my ($template, $loggedinuser, $cookie);
23 my $biblionumber = $query->param('biblionumber');
24 if ($selectview eq "full"){
25 my $subscriptions = get_full_subscription_list_from_biblionumber($biblionumber);
27 my $title = $subscriptions->[0]{bibliotitle};
28 my $yearmin=$subscriptions->[0]{year};
29 my $yearmax=$subscriptions->[scalar(@$subscriptions)-1]{year};
31 ($template, $loggedinuser, $cookie)
32 = get_template_and_user({template_name => "serials/serial-issues-full.tmpl",
39 # replace CR by <br> in librarian note
40 # $subscription->{opacnote} =~ s/\n/\<br\/\>/g;
43 biblionumber => $query->param('biblionumber'),
44 years => $subscriptions,
47 bibliotitle => $title,
48 suggestion => C4::Context->preference("suggestion"),
49 virtualshelves => C4::Context->preference("virtualshelves"),
53 my $subscriptions = get_subscription_list_from_biblionumber($biblionumber);
55 ($template, $loggedinuser, $cookie)
56 = get_template_and_user({template_name => "serials/serial-issues.tmpl",
63 # replace CR by <br> in librarian note
64 # $subscription->{opacnote} =~ s/\n/\<br\/\>/g;
67 biblionumber => $query->param('biblionumber'),
68 subscription_LOOP => $subscriptions,
69 suggestion => C4::Context->preference("suggestion"),
70 virtualshelves => C4::Context->preference("virtualshelves"),
73 output_html_with_http_headers $query, $cookie, $template->output;