Bugzilla – Attachment 95866 Details for
Bug 24083
Koha should support "seen" vs "unseen" renewals
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24083: Add circ rules management
Bug-24083-Add-circ-rules-management.patch (text/plain), 3.99 KB, created by
Andrew Isherwood
on 2019-11-28 16:09:26 UTC
(
hide
)
Description:
Bug 24083: Add circ rules management
Filename:
MIME Type:
Creator:
Andrew Isherwood
Created:
2019-11-28 16:09:26 UTC
Size:
3.99 KB
patch
obsolete
>From 19d9f19d2fc76d3c5967bd0760f0d944cf5ec4ef Mon Sep 17 00:00:00 2001 >From: Andrew Isherwood <andrew.isherwood@ptfs-europe.com> >Date: Thu, 21 Nov 2019 14:37:05 +0000 >Subject: [PATCH] Bug 24083: Add circ rules management > >This patch adds the ability to set the "Unseen renewals allowed" value >in the circulation rules >--- > admin/smart-rules.pl | 2 ++ > koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt | 8 ++++++++ > 2 files changed, 10 insertions(+) > >diff --git a/admin/smart-rules.pl b/admin/smart-rules.pl >index 403f425e54..afbed52e36 100755 >--- a/admin/smart-rules.pl >+++ b/admin/smart-rules.pl >@@ -230,6 +230,7 @@ elsif ($op eq 'add') { > my $maxissueqty = $input->param('maxissueqty'); > my $maxonsiteissueqty = $input->param('maxonsiteissueqty'); > my $renewalsallowed = $input->param('renewalsallowed'); >+ my $unseen_renewals_allowed = $input->param('unseen_renewals_allowed'); > my $renewalperiod = $input->param('renewalperiod'); > my $norenewalbefore = $input->param('norenewalbefore'); > $norenewalbefore = undef if $norenewalbefore =~ /^\s*$/; >@@ -276,6 +277,7 @@ elsif ($op eq 'add') { > chargeperiod => $chargeperiod, > chargeperiod_charge_at => $chargeperiod_charge_at, > renewalsallowed => $renewalsallowed, >+ unseen_renewals_allowed => $unseen_renewals_allowed, > renewalperiod => $renewalperiod, > norenewalbefore => $norenewalbefore, > auto_renew => $auto_renew, >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >index 79b002c00a..ba6f2cbe85 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >@@ -96,6 +96,9 @@ > <th>Max. suspension duration (day)</th> > <th>Suspension charging interval</th> > <th>Renewals allowed (count)</th> >+ [% IF Koha.Preference('UnseenRenewals') %] >+ <th>Unseen renewals allowed (count)</th> >+ [% END %] > <th>Renewal period</th> > <th>No renewal before</th> > <th>Automatic renewal</th> >@@ -200,6 +203,9 @@ > <td>[% rule.maxsuspensiondays | html %]</td> > <td>[% rule.suspension_chargeperiod | html %]</td> > <td>[% rule.renewalsallowed | html %]</td> >+ [% IF Koha.Preference('UnseenRenewals') %] >+ <td>[% rule.unseen_renewals_allowed | html %]</td> >+ [% END %] > <td>[% rule.renewalperiod | html %]</td> > <td>[% rule.norenewalbefore | html %]</td> > <td> >@@ -312,6 +318,7 @@ > <td><input type="text" name="maxsuspensiondays" id="maxsuspensiondays" size="3" /> </td> > <td><input type="text" name="suspension_chargeperiod" id="suspension_chargeperiod" size="3" /> </td> > <td><input type="text" name="renewalsallowed" id="renewalsallowed" size="2" /></td> >+ <td><input type="text" name="unseen_renewals_allowed" id="unseen_renewals_allowed" size="2" /></td> > <td><input type="text" name="renewalperiod" id="renewalperiod" size="3" /></td> > <td><input type="text" name="norenewalbefore" id="norenewalbefore" size="3" /></td> > <td> >@@ -378,6 +385,7 @@ > <th>Max. suspension duration (day)</th> > <th>Suspension charging interval</th> > <th>Renewals allowed (count)</th> >+ <th>Unseen renewals allowed (count)</th> > <th>Renewal period</th> > <th>No renewal before</th> > <th>Automatic renewal</th> >-- >2.11.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 24083
:
95861
|
95862
|
95863
|
95864
|
95865
|
95866
|
95867
|
95868
|
98749
|
98750
|
98751
|
98752
|
98765
|
98766
|
98767
|
98768
|
100244
|
100245
|
100246
|
100247
|
100380
|
100381
|
100382
|
100383
|
100392
|
110607
|
110608
|
110609
|
110610
|
110611
|
111147
|
111148
|
111149
|
111150
|
111151
|
111152
|
111283
|
111284
|
111285
|
111286
|
111287
|
111288
|
111289
|
111290
|
111291
|
111292
|
111293
|
111849
|
111850
|
111851
|
111852
|
111853
|
111854
|
111855
|
111856
|
111857
|
111858
|
111859
|
111860
|
112230
|
112231
|
112232
|
112233
|
112234
|
112235
|
112236
|
112237
|
112238
|
112239
|
112240
|
112241
|
112242
|
112243
|
112410
|
112411
|
112412
|
112413
|
112414
|
112415
|
112416
|
112417
|
112418
|
112419
|
112420
|
112421
|
112422
|
112423
|
113073
|
113074
|
113075
|
113076
|
113077
|
113078
|
113079
|
113080
|
113314
|
113315
|
113484
|
113485
|
113486
|
113487
|
113488
|
113489
|
113490
|
113491
|
113492
|
113493
|
113494
|
113546
|
113556
|
113557
|
113814