@@ -, +, @@ smart-rules.pl --- .../prog/en/modules/admin/smart-rules.tt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt @@ -262,7 +262,13 @@ Unlimited [% END %] - [% holds_per_record | html %] + + [% IF holds_per_record.defined && holds_per_record != '' %] + [% holds_per_record | html %] + [% ELSE %] + Unlimited + [% END %] + [% IF onshelfholds == 1 %] Yes @@ -1016,11 +1022,13 @@ // Remove potential previous input added $(current_column).find("input").remove(); $(current_column).append(""); - } else if ( i == 4 || i == 5 || i == 25 ) { + } else if ( i == 4 || i == 5 || i == 24 || i == 25 || i == 26 ) { // If the value is not an integer for // - "Current checkouts allowed" // - "Current on-site checkouts allowed" + // - "Holds allowed (total)" // - "Holds allowed (daily)" + // - "Holds per record (count)" // The value is "Unlimited" (or an equivalent translated string) // an it should be set to an empty string if( !((parseFloat(itm) == parseInt(itm)) && !isNaN(itm)) ) { --