4 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Serials subscription renew #[% subscription.subscriptionid | html %] › Koha</title>
8 <title>Serials subscription renew › Koha</title>
10 [% INCLUDE 'doc-head-close.inc' %]
13 <body id="ser_subscription-renew" class="ser">
14 <div class="container-fluid">
16 [% INCLUDE 'blocking_errors.inc' %]
18 [% IF op == 'renew' OR op =='multi_renew' %]
19 [% IF op == 'renew' %]
20 <span>Subscription renewed.<span>
22 <span>Subscriptions renewed.<span>
25 <div id="closewindow">
26 <a class="btn btn-default btn-default close" href="#">Close</a>
30 <form name="f" action="/cgi-bin/koha/serials/subscription-renew.pl" method="post">
31 <input type="hidden" name="op" value="renew" />
32 <input type="hidden" name="subscriptionid" value="[% subscription.subscriptionid | html %]" />
33 <fieldset class="rows"><legend>Subscription renewal for [% subscription.bibliotitle | html %]</legend>
36 <label for="startdate">Start date: </label>
37 <input type="text" size="10" id="startdate" name="startdate" value="[% startdate | html %]" class="datepicker"/>
38 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
41 <label>Subscription length:</label>
42 <select name="subtype" id="subtype">
43 [% FOREACH st IN [['numberlength', 'issues'], ['weeklength', 'weeks'], ['monthlength', 'months']] %]
44 [% SET subtype = st.0 %]
45 [% SET value = st.1 %]
46 [% IF subscription.$subtype %]
47 <option value="[% value | html %]" selected="selected">
49 <option value="[% value | html %]">
52 [% CASE 'numberlength'%]issues
53 [% CASE 'weeklength' %]weeks
54 [% CASE 'monthlength' %]months
59 <input type="text" name="sublength" id="sublength" size="3" value="[% subscription.numberlength || subscription.weeklength || subscription.monthlength | html %]" />(enter amount in numerals)
60 <input type="hidden" name="issuelengthcount">
63 [% IF Koha.Preference('RenewSerialAddsSuggestion') %]
65 <label for="branchcode">Library:</label>
66 <select name="branchcode" id="branchcode" style="width: 20em;">
67 [% UNLESS ( Independentbranches ) %]
68 <option value="">None</option>
70 [% IF CAN_user_serials_superserials %]
71 [% PROCESS options_for_libraries libraries => Branches.all(selected => subscription.branchcode) %]
73 </select> (select a library)
77 <label for="note">Note for the librarian that will manage your renewal request: </label>
78 <textarea name="note" id="note" rows="5" cols="50"></textarea>
83 <fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset>
87 [% MACRO jsinclude BLOCK %]
88 [% INCLUDE 'calendar.inc' %]
90 $(document).ready(function(){
91 $(".close").on("click", function(e){
93 window.opener.location.reload(false);
100 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]