10 use C4::Interface::CGI::Output;
15 my $op = $query->param('op');
16 my $dbh = C4::Context->dbh;
19 my ($template, $loggedinuser, $cookie);
22 $subscriptionid = $query->param('subscriptionid');
23 my $subscription = &getsubscription($subscriptionid);
25 ($template, $loggedinuser, $cookie)
26 = get_template_and_user({template_name => "bull/serial-issues.tmpl",
30 flagsrequired => {catalogue => 1},
34 # replace CR by <br> in librarian note
35 $subscription->{librariannote} =~ s/\n/\<br\/\>/g;
38 startdate => format_date($subscription->{startdate}),
39 periodicity => $subscription->{periodicity},
40 dow => $subscription->{dow},
41 numberlength => $subscription->{numberlength},
42 weeklength => $subscription->{weeklength},
43 monthlength => $subscription->{monthlength},
44 librariannote => $subscription->{librariannote},
45 numberingmethod => $subscription->{numberingmethod},
46 arrivalplanified => $subscription->{arrivalplanified},
47 status => $subscription->{status},
48 biblionumber => $subscription->{biblionumber},
49 bibliotitle => $subscription->{bibliotitle},
50 notes => $subscription->{notes},
51 subscriptionid => $subscription->{subscriptionid}
54 "periodicity$subscription->{periodicity}" => 1,
55 "arrival$subscription->{dow}" => 1,
58 output_html_with_http_headers $query, $cookie, $template->output;