View | Details | Raw Unified | Return to bug 35977
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt (-1 / +1 lines)
Lines 288-294 Link Here
288
                                                [% IF ( reserve_in_future ) %]
288
                                                [% IF ( reserve_in_future ) %]
289
                                                    <li>
289
                                                    <li>
290
                                                        <label for="from[% bibitemloo.biblionumber | html %]">Hold starts on date:</label>
290
                                                        <label for="from[% bibitemloo.biblionumber | html %]">Hold starts on date:</label>
291
                                                        <input type="text" name="reserve_date_[% bibitemloo.biblionumber | html %]" id="from[% bibitemloo.biblionumber | html %]" data-start_for="to[% bibitemloo.biblionumber | html %]" data-flatpickr-futureinclusive="true" size="10" class="flatpickr holddatefrom" />
291
                                                        <input type="text" name="reserve_date_[% bibitemloo.biblionumber | html %]" id="from[% bibitemloo.biblionumber | html %]" data-start_for="to[% bibitemloo.biblionumber | html %]" data-flatpickr-futureinclusive="true" size="10" class="flatpickr holddatefrom" value="[% today | $raw %]" />
292
                                                        <span class="date-format from" data-biblionumber="[% bibitemloo.biblionumber | html %]">[% INCLUDE 'date-format.inc' %]</span>
292
                                                        <span class="date-format from" data-biblionumber="[% bibitemloo.biblionumber | html %]">[% INCLUDE 'date-format.inc' %]</span>
293
                                                        <div class="required_label" style="display:none;">Required</div>
293
                                                        <div class="required_label" style="display:none;">Required</div>
294
                                                    </li>
294
                                                    </li>
(-)a/opac/opac-reserve.pl (-6 / +6 lines)
Lines 35-40 use C4::Overdues; Link Here
35
use Koha::AuthorisedValues;
35
use Koha::AuthorisedValues;
36
use Koha::Biblios;
36
use Koha::Biblios;
37
use Koha::CirculationRules;
37
use Koha::CirculationRules;
38
use Koha::DateUtils qw( dt_from_string );
38
use Koha::Items;
39
use Koha::Items;
39
use Koha::ItemTypes;
40
use Koha::ItemTypes;
40
use Koha::Checkouts;
41
use Koha::Checkouts;
Lines 618-629 $template->param(OpacHoldNotes=>$show_notes); Link Here
618
# display infos
619
# display infos
619
$template->param(bibitemloop => $biblioLoop);
620
$template->param(bibitemloop => $biblioLoop);
620
# can set reserve date in future
621
# can set reserve date in future
621
if (
622
if (   C4::Context->preference('AllowHoldDateInFuture')
622
    C4::Context->preference( 'AllowHoldDateInFuture' ) &&
623
    && C4::Context->preference('OPACAllowHoldDateInFuture') )
623
    C4::Context->preference( 'OPACAllowHoldDateInFuture' )
624
{
624
    ) {
625
    $template->param(
625
    $template->param(
626
	    reserve_in_future         => 1,
626
        reserve_in_future => 1,
627
        today             => dt_from_string,
627
    );
628
    );
628
}
629
}
629
630
630
- 

Return to bug 35977