[% INCLUDE 'blocking_errors.inc' %] [% IF subscriptionid and ( CAN_user_serials_edit_subscription || CAN_user_serials_create_subscription || CAN_user_serials_delete_subscription || CAN_user_serials_receive_serials ) %]
[% IF CAN_user_serials_create_subscription %] [% IF biblionumber_for_new_subscription %]
New subscription
[% ELSE %]
New subscription
[% END %] [% END %] [% IF ( CAN_user_serials_edit_subscription || CAN_user_serials_create_subscription || CAN_user_serials_delete_subscription ) %] [% UNLESS ( cannotedit ) %]
[% END %] [% END %] [% IF not cannotedit or CAN_user_serials_receive_serials %] [% IF CAN_user_serials_renew_subscription and not closed %]
Renew
[% END %] [% IF CAN_user_serials_receive_serials and not closed %]
Receive
[% END %] [% UNLESS cannotedit %] [% IF closed %]
Reopen
[% ELSE %]
Close
[% END %] [% END %] [% END %]
[% ELSIF CAN_user_serials_create_subscription %]
[% IF ( biblionumber_for_new_subscription ) %]
New subscription
[% ELSE %]
New subscription
[% END %]
[% END %]