Bugzilla – Attachment 112411 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), 6.53 KB, created by
Katrin Fischer
on 2020-10-24 23:52:03 UTC
(
hide
)
Description:
Bug 24083: Add circ rules management
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-10-24 23:52:03 UTC
Size:
6.53 KB
patch
obsolete
>From 55351cd228195309e24e76cf854ef4ab43e31024 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 > >Signed-off-by: Sally Healey <sally.Healey@cheshirewestandchester.gov.uk> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > admin/smart-rules.pl | 2 ++ > .../intranet-tmpl/prog/en/modules/admin/smart-rules.tt | 13 ++++++++++++- > 2 files changed, 14 insertions(+), 1 deletion(-) > >diff --git a/admin/smart-rules.pl b/admin/smart-rules.pl >index bdae9b5c27..0f83f6644b 100755 >--- a/admin/smart-rules.pl >+++ b/admin/smart-rules.pl >@@ -260,6 +260,7 @@ elsif ($op eq 'add') { > my $maxissueqty = strip_non_numeric( scalar $input->param('maxissueqty') ); > my $maxonsiteissueqty = strip_non_numeric( scalar $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 = '' if $norenewalbefore =~ /^\s*$/; >@@ -306,6 +307,7 @@ elsif ($op eq 'add') { > hardduedate => $hardduedate, > hardduedatecompare => $hardduedatecompare, > 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 b34d02e2fa..d60c758119 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 >@@ -112,6 +112,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> >@@ -151,6 +154,7 @@ > [% SET maxsuspensiondays = all_rules.$c.$i.maxsuspensiondays %] > [% SET suspension_chargeperiod = all_rules.$c.$i.suspension_chargeperiod %] > [% SET renewalsallowed = all_rules.$c.$i.renewalsallowed %] >+ [% SET unseenrenewalsallowed = all_rules.$c.$i.unseen_renewals_allowed %] > [% SET renewalperiod = all_rules.$c.$i.renewalperiod %] > [% SET norenewalbefore = all_rules.$c.$i.norenewalbefore %] > [% SET auto_renew = all_rules.$c.$i.auto_renew %] >@@ -164,7 +168,7 @@ > [% SET article_requests = all_rules.$c.$i.article_requests %] > [% SET rentaldiscount = all_rules.$c.$i.rentaldiscount %] > >- [% SET show_rule = note || maxissueqty || maxonsiteissueqty || issuelength || daysmode || lengthunit || hardduedate || hardduedatecompare || fine || chargeperiod || chargeperiod_charge_at || firstremind || overduefinescap || cap_fine_to_replacement_price || finedays || maxsuspensiondays || suspension_chargeperiod || renewalsallowed || renewalperiod || norenewalbefore || auto_renew || no_auto_renewal_after || no_auto_renewal_after_hard_limit || reservesallowed || holds_per_day || holds_per_record || onshelfholds || opacitemholds || article_requests || rentaldiscount %] >+ [% SET show_rule = note || maxissueqty || maxonsiteissueqty || issuelength || daysmode || lengthunit || hardduedate || hardduedatecompare || fine || chargeperiod || chargeperiod_charge_at || firstremind || overduefinescap || cap_fine_to_replacement_price || finedays || maxsuspensiondays || suspension_chargeperiod || renewalsallowed || unseenrenewalsallowed || renewalperiod || norenewalbefore || auto_renew || no_auto_renewal_after || no_auto_renewal_after_hard_limit || reservesallowed || holds_per_day || holds_per_record || onshelfholds || opacitemholds || article_requests || rentaldiscount %] > [% IF show_rule %] > [% SET row_count = row_count + 1 %] > <tr row_countd="row_[% row_count | html %]"> >@@ -258,6 +262,9 @@ > <td>[% maxsuspensiondays | html %]</td> > <td>[% suspension_chargeperiod | html %]</td> > <td>[% renewalsallowed | html %]</td> >+ [% IF Koha.Preference('UnseenRenewals') %] >+ <td>[% unseenrenewalsallowed | html %]</td> >+ [% END %] > <td>[% renewalperiod | html %]</td> > <td>[% norenewalbefore | html %]</td> > <td> >@@ -406,6 +413,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> >@@ -475,6 +483,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> >-- >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