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

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js (-13 / +16 lines)
Lines 281-287 $(document).ready(function() { Link Here
281
                        if ( oObj.can_renew ) {
281
                        if ( oObj.can_renew ) {
282
                            // Do nothing
282
                            // Do nothing
283
                        } else if ( oObj.can_renew_error == "on_reserve" ) {
283
                        } else if ( oObj.can_renew_error == "on_reserve" ) {
284
                            content += "<span class='renewals-disabled'>"
284
                            content += "<span class='renewals-disabled-no-override'>"
285
                                    + "<a href='/cgi-bin/koha/reserve/request.pl?biblionumber=" + oObj.biblionumber + "'>" + ON_HOLD + "</a>"
285
                                    + "<a href='/cgi-bin/koha/reserve/request.pl?biblionumber=" + oObj.biblionumber + "'>" + ON_HOLD + "</a>"
286
                                    + "</span>";
286
                                    + "</span>";
287
287
Lines 324-341 $(document).ready(function() { Link Here
324
                            span_class = "renewals-allowed";
324
                            span_class = "renewals-allowed";
325
                        }
325
                        }
326
326
327
                        if ( oObj.renewals_remaining && oObj.onsite_checkout == 0 ) {
327
                        var can_force_renew = ( oObj.onsite_checkout == 0 ) && ( oObj.can_renew_error != "on_reserve" );
328
                            content += "<span class='" + span_class + "' style='" + span_style + "'>"
328
                        var can_renew = ( oObj.renewals_remaining > 0  && !oObj.can_renew_error );
329
                                    +  "<input type='checkbox' ";
329
                        if ( oObj.onsite_checkout == 0 ) {
330
                            if ( oObj.date_due_overdue ) {
330
                            if ( can_renew || can_force_renew ) {
331
                                content += "checked='checked' ";
331
                                content += "<span class='" + span_class + "' style='" + span_style + "'>"
332
                            }
332
                                        +  "<input type='checkbox' ";
333
                            content += "class='renew' id='renew_" + oObj.itemnumber + "' name='renew' value='" + oObj.itemnumber +"'/>"
333
                                if ( oObj.date_due_overdue && can_renew ) {
334
                                    +  "</span>";
334
                                    content += "checked='checked' ";
335
                                }
336
                                content += "class='renew' id='renew_" + oObj.itemnumber + "' name='renew' value='" + oObj.itemnumber +"'/>"
337
                                        +  "</span>";
335
338
336
                            content += "<span class='renewals'>("
339
                                content += "<span class='renewals'>("
337
                                    + RENEWALS_REMAINING.format( oObj.renewals_remaining, oObj.renewals_allowed )
340
                                        + RENEWALS_REMAINING.format( oObj.renewals_remaining, oObj.renewals_allowed )
338
                                    + ")</span>";
341
                                        + ")</span>";
342
                            }
339
                        }
343
                        }
340
344
341
                        content += "</span>";
345
                        content += "</span>";
342
- 

Return to bug 13293