Jonathan Druart
018de8802d
Warning: This area is a mess, especially with date management. For the same reasons as other "Remove C4::Dates from*" patches, this one will deal with the serials module. Note that this patch add the datepicker on 3 input fields (on serials/subscription-detail.tt and serials/subscription-renew.tt). There was also weird behavior when the dates were invalid. Now default to undefined. But with the datepicker it will reduce the number of cases even if the user is still allowed to fill invalid dates. Test plan: 1/ Create a subscription, fill the first issue pub date and the subscription start date. You can fill or not the end date. Play with the numbering pattern and confirm that there are generated as before this patch. 2/ On the check expiration page, confirm that the dates are correctly displayed. 3/ Renew the subscription and confirm that the behavior is correct. 4/ Go on the subscription history page and confirm you have now the datepicker plugin set on the 2 date fields. QA notes: The startdate, histstartdate and enddate are not used in the serials-collection template, this patch removes them from the pl script. Tested on top of 15166 15168 15171, full browser reload for date pickers. Note for 4/: It is the link in tab planning on subscription detail page, near "Manual history" (if manual history is enabled). Works as advertised. Signed-off-by: Marc Véron <veron@veron.ch> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
46 lines
2 KiB
Text
46 lines
2 KiB
Text
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Serials subscription renew #[% subscriptionid %]</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
[% INCLUDE 'calendar.inc' %]
|
|
<style type="text/css">
|
|
#custom-doc { width:39.85em;*width:38.86em;min-width:531px; margin:auto; text-align:left; }
|
|
</style>
|
|
</head>
|
|
<body id="ser_subscription-renew" class="ser">
|
|
|
|
<div id="custom-doc" class="yui-t7">
|
|
[% IF ( renew ) %]
|
|
Subscription renewed.
|
|
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
opener.document.location.reload();
|
|
self.close();
|
|
//]]>
|
|
</script>
|
|
[% ELSE %]
|
|
<div id="bd">
|
|
<form name="f" action="/cgi-bin/koha/serials/subscription-renew.pl" method="post">
|
|
<input type="hidden" name="op" value="renew" />
|
|
<input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
|
|
<fieldset class="rows"><legend>Subscription renewal for [% bibliotitle %]</legend>
|
|
<ol>
|
|
<li>
|
|
<label for="startdate">Start date: </label>
|
|
<input type="text" size="10" id="startdate" name="startdate" value="[% startdate %]" class="datepicker"/>
|
|
<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
|
|
</li>
|
|
<li><fieldset>
|
|
<legend>Subscription length:</legend>
|
|
<ol><li><label for="numberlength">Number of num:</label><input type="text" id="numberlength" name="numberlength" value="[% numberlength %]" /></li>
|
|
<li><label for="weeklength">Number of weeks: </label><input type="text" id="weeklength" name="weeklength" value="[% weeklength %]" /></li>
|
|
<li><label for="monthlength">Number of months: </label><input type="text" id="monthlength" name="monthlength" value="[% monthlength %]" /></li></ol></fieldset></li>
|
|
<li><label for="note">Note for the librarian that will manage your renewal request: </label>
|
|
<textarea name="note" id="note" rows="5" cols="50"></textarea></li></ol></fieldset>
|
|
<fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset>
|
|
</form>
|
|
</div>
|
|
[% END %]
|
|
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|
|
|