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

(-)a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js (-5 / +2 lines)
Lines 487-497 $(document).ready(function() { Link Here
487
                            span_style = "display: none";
487
                            span_style = "display: none";
488
                            span_class = "renewals-allowed";
488
                            span_class = "renewals-allowed";
489
                        } else if ( oObj.can_renew_error == "too_unseen" ) {
489
                        } else if ( oObj.can_renew_error == "too_unseen" ) {
490
                            msg += "<span class='renewals-disabled'>"
490
                            msg += "<span>"
491
                                    + __("Must be renewed at the library")
491
                                    + __("Must be renewed at the library")
492
                                    + "</span>";
492
                                    + "</span>";
493
494
                            span_style = "display: none";
495
                            span_class = "renewals-allowed";
493
                            span_class = "renewals-allowed";
496
                        } else if ( oObj.can_renew_error == "restriction" ) {
494
                        } else if ( oObj.can_renew_error == "restriction" ) {
497
                            msg += "<span class='renewals-disabled'>"
495
                            msg += "<span class='renewals-disabled'>"
Lines 570-576 $(document).ready(function() { Link Here
570
                        var can_force_renew = ( oObj.onsite_checkout == 0 ) &&
568
                        var can_force_renew = ( oObj.onsite_checkout == 0 ) &&
571
                            ( oObj.can_renew_error != "on_reserve" || (oObj.can_renew_error == "on_reserve" && AllowRenewalOnHoldOverride))
569
                            ( oObj.can_renew_error != "on_reserve" || (oObj.can_renew_error == "on_reserve" && AllowRenewalOnHoldOverride))
572
                            ? true : false;
570
                            ? true : false;
573
                        var can_renew = ( oObj.renewals_remaining > 0  && !oObj.can_renew_error );
571
                        var can_renew = ( oObj.renewals_remaining > 0 && ( !oObj.can_renew_error || oObj.can_renew_error == "too_unseen" ));
574
                        content += "<span>";
572
                        content += "<span>";
575
                        if ( can_renew || can_force_renew ) {
573
                        if ( can_renew || can_force_renew ) {
576
                            content += "<span style='padding: 0 1em;'>" + oObj.renewals_count + "</span>";
574
                            content += "<span style='padding: 0 1em;'>" + oObj.renewals_count + "</span>";
577
- 

Return to bug 29051