+my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
+ {
+ template_name => 'serials/routing.tt',
+ query => $query,
+ type => 'intranet',
+ authnotrequired => 0,
+ flagsrequired => { serials => 'routing' },
+ }
+);
+
+my $subs = GetSubscription($subscriptionid);
+
+output_and_exit( $query, $cookie, $template, 'unknown_subscription')
+ unless $subs;
+