View | Details | Raw Unified | Return to bug 32262
Collapse All | Expand All

(-)a/Koha/Template/Plugin/CirculationRules.pm (+1 lines)
Lines 88-93 sub Search { Link Here
88
88
89
    return $rule if $params->{want_rule};
89
    return $rule if $params->{want_rule};
90
    return $rule->rule_value if $rule;
90
    return $rule->rule_value if $rule;
91
    return 'undef';
91
}
92
}
92
93
93
=head3 Renewals
94
=head3 Renewals
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-8 / +7 lines)
Lines 812-818 Link Here
812
                                [% SET patron_maxonsiteissueqty = CirculationRules.Search( branchcode, c, undef, 'patron_maxonsiteissueqty' ) %]
812
                                [% SET patron_maxonsiteissueqty = CirculationRules.Search( branchcode, c, undef, 'patron_maxonsiteissueqty' ) %]
813
                                [% SET max_holds = CirculationRules.Search( branchcode, c, undef, 'max_holds' ) %]
813
                                [% SET max_holds = CirculationRules.Search( branchcode, c, undef, 'max_holds' ) %]
814
814
815
                                [% IF  ( patron_maxissueqty.defined && patron_maxissueqty != '' ) || ( patron_maxonsiteissueqty.defined && patron_maxonsiteissueqty != '' ) || ( max_holds.defined && max_holds != '' ) %]
815
                                [% IF patron_maxissueqty != 'undef' || patron_maxonsiteissueqty != 'undef' || max_holds != 'undef' %]
816
                                <tr>
816
                                <tr>
817
                                    <td>
817
                                    <td>
818
                                        [% IF c == undef %]
818
                                        [% IF c == undef %]
Lines 822-842 Link Here
822
                                        [% END %]
822
                                        [% END %]
823
                                    </td>
823
                                    </td>
824
                                    <td>
824
                                    <td>
825
                                        [% IF patron_maxissueqty.defined && patron_maxissueqty != '' %]
825
                                        [% IF patron_maxissueqty != '' && patron_maxissueqty != 'undef' %]
826
                                            [% patron_maxissueqty | html %]
826
                                            [% patron_maxissueqty | html %]
827
                                        [% ELSE %]
827
                                        [% ELSE %]
828
                                            <span>Unlimited</span>
828
                                            <span>Unlimited</span>
829
                                        [% END %]
829
                                        [% END %]
830
                                    </td>
830
                                    </td>
831
                                    <td>
831
                                    <td>
832
                                        [% IF patron_maxonsiteissueqty.defined && patron_maxonsiteissueqty != '' %]
832
                                        [% IF patron_maxonsiteissueqty != '' && patron_maxonsiteissueqty != 'undef' %]
833
                                            [% patron_maxonsiteissueqty | html %]
833
                                            [% patron_maxonsiteissueqty | html %]
834
                                        [% ELSE %]
834
                                        [% ELSE %]
835
                                            <span>Unlimited</span>
835
                                            <span>Unlimited</span>
836
                                        [% END %]
836
                                        [% END %]
837
                                    </td>
837
                                    </td>
838
                                    <td>
838
                                    <td>
839
                                        [% IF max_holds.defined && max_holds != '' %]
839
                                        [% IF max_holds != '' && max_holds != 'undef' %]
840
                                            [% max_holds | html %]
840
                                            [% max_holds | html %]
841
                                        [% ELSE %]
841
                                        [% ELSE %]
842
                                            <span>Unlimited</span>
842
                                            <span>Unlimited</span>
Lines 891-897 Link Here
891
891
892
                                    [% SET waiting_hold_cancellation = CirculationRules.Search( current_branch, c, i, 'waiting_hold_cancellation' ) %]
892
                                    [% SET waiting_hold_cancellation = CirculationRules.Search( current_branch, c, i, 'waiting_hold_cancellation' ) %]
893
893
894
                                    [% IF ( waiting_hold_cancellation.defined && waiting_hold_cancellation != '' ) %]
894
                                    [% IF ( waiting_hold_cancellation != '' && waiting_hold_cancellation != 'undef' ) %]
895
                                        <tr>
895
                                        <tr>
896
                                            <td>
896
                                            <td>
897
                                                [% IF c == '*' %]
897
                                                [% IF c == '*' %]
Lines 971-983 Link Here
971
                                [% NEXT UNLESS c %]
971
                                [% NEXT UNLESS c %]
972
                                [% SET open_article_requests_limit = CirculationRules.Search( branchcode, c, undef, 'open_article_requests_limit' ) %]
972
                                [% SET open_article_requests_limit = CirculationRules.Search( branchcode, c, undef, 'open_article_requests_limit' ) %]
973
973
974
                                [% IF ( open_article_requests_limit.defined && open_article_requests_limit != '' ) %]
974
                                [% IF ( open_article_requests_limit != '' && open_article_requests_limit != 'undef' ) %]
975
                                <tr>
975
                                <tr>
976
                                    <td>
976
                                    <td>
977
                                        [% Categories.GetName(c) | html %]
977
                                        [% Categories.GetName(c) | html %]
978
                                    </td>
978
                                    </td>
979
                                    <td>
979
                                    <td>
980
                                        [% IF open_article_requests_limit.defined && open_article_requests_limit != '' %]
980
                                        [% IF open_article_requests_limit != '' && open_article_requests_limit != 'undef' %]
981
                                            [% open_article_requests_limit | html %]
981
                                            [% open_article_requests_limit | html %]
982
                                        [% ELSE %]
982
                                        [% ELSE %]
983
                                            <span>Unlimited</span>
983
                                            <span>Unlimited</span>
984
- 

Return to bug 32262