Bug 29050: Added a punctuation between renewal messages
authorNisha Dahya <nishadahya@catalyst.net.nz>
Thu, 7 Jul 2022 23:31:38 +0000 (23:31 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 8 Jul 2022 18:09:42 +0000 (15:09 -0300)
Test plan:

1. First step is to go to administration > then system preferences
2. Set unseenrenewal to "allow"
3. Go to administatrion > circulation and fines rule
4. Set unseenrenewals count to any number
5. Check out an item to a patron and go to the checkouts tab
6. Renew the item
7. Notice that the renewal messages have no seperation
8. Apply the patch
9. Notice there is now a "&" in the spacing between renewal messages

Sponsored-by: Catalyst IT
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/checkouts.js

index 965aec6..a40190e 100644 (file)
@@ -590,7 +590,7 @@ $(document).ready(function() {
                             content += "<span class='renewals-info'>(";
                             content += __("%s of %s renewals remaining").format(oObj.renewals_remaining, oObj.renewals_allowed);
                             if (UnseenRenewals && oObj.unseen_allowed) {
-                                content += __("%s of %s unseen renewals remaining").format(oObj.unseen_remaining, oObj.unseen_allowed);
+                                content += __(" & %s of %s unseen renewals remaining").format(oObj.unseen_remaining, oObj.unseen_allowed);
                             }
                             content += ")</span>";
                         }