Bugzilla – Attachment 102092 Details for
Bug 24101
Due date to on-site loans according to the calendar and possibility to renew on-site loans
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24101: (OLD CIRC RULES GUI) Add circulation rule onsite_renewalsallowed
Bug-24101-OLD-CIRC-RULES-GUI-Add-circulation-rule-.patch (text/plain), 6.22 KB, created by
Lari Taskula
on 2020-03-30 17:40:30 UTC
(
hide
)
Description:
Bug 24101: (OLD CIRC RULES GUI) Add circulation rule onsite_renewalsallowed
Filename:
MIME Type:
Creator:
Lari Taskula
Created:
2020-03-30 17:40:30 UTC
Size:
6.22 KB
patch
obsolete
>From cb4718ce77bef94f49e646f5f88dcc59df99f2d8 Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@hypernova.fi> >Date: Thu, 26 Mar 2020 06:30:55 +0000 >Subject: [PATCH] Bug 24101: (OLD CIRC RULES GUI) Add circulation rule > onsite_renewalsallowed > >For current testing purposes this patch adds onsite renewals count to circulation >rules page. > >We plan to block Bug 24101 by Bug 15522, so this patch will eventually be dropped. >--- > admin/smart-rules.pl | 3 +++ > .../intranet-tmpl/prog/en/modules/admin/smart-rules.tt | 6 +++++- > 2 files changed, 8 insertions(+), 1 deletion(-) > >diff --git a/admin/smart-rules.pl b/admin/smart-rules.pl >index 6bea920dd9..b7e9691868 100755 >--- a/admin/smart-rules.pl >+++ b/admin/smart-rules.pl >@@ -98,6 +98,7 @@ if ($op eq 'delete') { > hardduedate => undef, > hardduedatecompare => undef, > renewalsallowed => undef, >+ onsite_renewalsallowed => undef, > renewalperiod => undef, > norenewalbefore => undef, > auto_renew => undef, >@@ -262,6 +263,7 @@ elsif ($op eq 'add') { > my $maxissueqty = strip_non_numeric($input->param('maxissueqty')); > my $maxonsiteissueqty = strip_non_numeric($input->param('maxonsiteissueqty')); > my $renewalsallowed = $input->param('renewalsallowed'); >+ my $onsite_renewalsallowed = $input->param('onsite_renewalsallowed'); > my $renewalperiod = $input->param('renewalperiod'); > my $norenewalbefore = $input->param('norenewalbefore'); > $norenewalbefore = '' if $norenewalbefore =~ /^\s*$/; >@@ -306,6 +308,7 @@ elsif ($op eq 'add') { > hardduedate => $hardduedate, > hardduedatecompare => $hardduedatecompare, > renewalsallowed => $renewalsallowed, >+ onsite_renewalsallowed => $onsite_renewalsallowed, > 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 5ae3bb94e1..6e68cd47e8 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 >@@ -105,6 +105,7 @@ > <th>Max. suspension duration (day)</th> > <th>Suspension charging interval</th> > <th>Renewals allowed (count)</th> >+ <th>On-site renewals allowed (count)</th> > <th>Renewal period</th> > <th>No renewal before</th> > <th>Automatic renewal</th> >@@ -143,6 +144,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 onsite_renewalsallowed = all_rules.$c.$i.onsite_renewalsallowed %] > [% SET renewalperiod = all_rules.$c.$i.renewalperiod %] > [% SET norenewalbefore = all_rules.$c.$i.norenewalbefore %] > [% SET auto_renew = all_rules.$c.$i.auto_renew %] >@@ -156,7 +158,7 @@ > [% SET article_requests = all_rules.$c.$i.article_requests %] > [% SET rentaldiscount = all_rules.$c.$i.rentaldiscount %] > >- [% SET show_rule = maxissueqty || maxonsiteissueqty || issuelength || lengthunit || hardduedate || hardduedatebefore || hardduedateexact || fine || chargeperiod || chargeperiod_charge_at || firstremind || overduefinescap || cap_fine_to_replacement_price || finedays || maxsuspensiondays || suspension_chargeperiod || renewalsallowed || renewalsallowed || norenewalbefore || auto_renew || no_auto_renewal_after || no_auto_renewal_after_hard_limit || reservesallowed || holds_per_day || holds_per_record || onshelfholds || opacitemholds || article_requests || article_requests %] >+ [% SET show_rule = maxissueqty || maxonsiteissueqty || issuelength || lengthunit || hardduedate || hardduedatebefore || hardduedateexact || fine || chargeperiod || chargeperiod_charge_at || firstremind || overduefinescap || cap_fine_to_replacement_price || finedays || maxsuspensiondays || suspension_chargeperiod || renewalsallowed || onsite_renewalsallowed || renewalsallowed || norenewalbefore || auto_renew || no_auto_renewal_after || no_auto_renewal_after_hard_limit || reservesallowed || holds_per_day || holds_per_record || onshelfholds || opacitemholds || article_requests || article_requests %] > [% IF show_rule %] > [% SET row_count = row_count + 1 %] > <tr row_countd="row_[% row_count | html %]"> >@@ -239,6 +241,7 @@ > <td>[% maxsuspensiondays | html %]</td> > <td>[% suspension_chargeperiod | html %]</td> > <td>[% renewalsallowed | html %]</td> >+ <td>[% onsite_renewalsallowed | html %]</td> > <td>[% renewalperiod | html %]</td> > <td>[% norenewalbefore | html %]</td> > <td> >@@ -365,6 +368,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="onsite_renewalsallowed" id="renewalsallowed" 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> >-- >2.17.1
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 24101
:
102091
|
102092
|
103254
|
103337
|
104277
|
107617