if (@$barcodes) {
my $checkout_infos;
for my $barcode ( @$barcodes ) {
+
my $template_params = { barcode => $barcode };
+ $template_params->{onsite_checkout} = $onsite_checkout;
+
# always check for blockers on issuing
my ( $error, $question, $alerts, $messages ) = CanBookBeIssued(
$patron,
$template_params->{getTitleMessageIteminfo} = $biblio->title;
$template_params->{getBarcodeMessageIteminfo} = $item->barcode;
$template_params->{NEEDSCONFIRMATION} = 1;
- $template_params->{onsite_checkout} = $onsite_checkout;
$template_params->{auto_renew} = $session->param('auto_renew');
$confirm_required = 1;
}
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
<input type="hidden" name="branch" value="[% branch | html %]" />
<input type="hidden" name="barcode" value="[% book.barcode | html %]" />
+ <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
<button class="btn btn-default btn-xs" type="submit" name="x"><i class="fa fa-check"></i> Check out</button>
</form>
</td>