Bugzilla – Attachment 50675 Details for
Bug 15581
Add a circ rule to not allow auto-renewals after defined loan period
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15581: Display the generic "schedule for auto renew" message on the checkouts table
Bug-15581-Display-the-generic-schedule-for-auto-re.patch (text/plain), 2.19 KB, created by
Jonathan Druart
on 2016-04-25 21:49:48 UTC
(
hide
)
Description:
Bug 15581: Display the generic "schedule for auto renew" message on the checkouts table
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-04-25 21:49:48 UTC
Size:
2.19 KB
patch
obsolete
>From b9971a0e81237faff1b57d7d0c604dfe46b510d0 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 18 Apr 2016 16:33:42 +0100 >Subject: [PATCH] Bug 15581: Display the generic "schedule for auto renew" > message on the checkouts table > >--- > koha-tmpl/intranet-tmpl/prog/en/includes/strings.inc | 1 + > koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js | 7 +++++++ > 2 files changed, 8 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/strings.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/strings.inc >index 62af2a3..6a69b68 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/strings.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/strings.inc >@@ -17,6 +17,7 @@ > var NOT_RENEWABLE = _("Not renewable"); > var NOT_RENEWABLE_TOO_SOON = _("No renewal before %s"); > var NOT_RENEWABLE_AUTO_TOO_SOON = _("Scheduled for automatic renewal"); >+ var NOT_RENEWABLE_AUTO_TOO_LATE = _("Scheduled for automatic renewal"); > var NOT_RENEWABLE_AUTO_RENEW = _("Scheduled for automatic renewal"); > var RENEWALS_REMAINING = _("%s of %s renewals remaining"); > var HOLD_IS_SUSPENDED = _("Hold is <strong>suspended</strong>"); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js >index 5137b7d..5ea8dd7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js >+++ b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js >@@ -348,6 +348,13 @@ $(document).ready(function() { > > span_style = "display: none"; > span_class = "renewals-allowed"; >+ } else if ( oObj.can_renew_error == "auto_too_late" ) { >+ content += "<span class='renewals-disabled'>" >+ + NOT_RENEWABLE_AUTO_TOO_LATE >+ + "</span>"; >+ >+ span_style = "display: none"; >+ span_class = "renewals-allowed"; > } else if ( oObj.can_renew_error == "auto_renew" ) { > content += "<span class='renewals-disabled'>" > + NOT_RENEWABLE_AUTO_RENEW >-- >2.7.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 15581
:
46690
|
46691
|
46692
|
50330
|
50331
|
50332
|
50347
|
50672
|
50673
|
50674
|
50675
|
50742
|
50743
|
50744
|
50745
|
53424
|
53425
|
53426
|
53427
|
55504
|
55505
|
55506
|
55507
|
56746
|
56747
|
56748
|
56749
|
56961
|
56962
|
56963
|
56964
|
56982
|
57034
|
57035
|
57036
|
57037
|
57038