@@ -, +, @@ --- admin/smart-rules.pl | 2 ++ .../prog/en/modules/admin/smart-rules.tt | 39 ++++++++++++++++++---- 2 files changed, 35 insertions(+), 6 deletions(-) --- a/admin/smart-rules.pl +++ a/admin/smart-rules.pl @@ -586,6 +586,7 @@ my @sorted_branch_item_rules = sort { lc $a->{translated_description} cmp lc $b- foreach my $entry (@sorted_branch_item_rules) { $entry->{holdallowed_any} = 1 if ( $entry->{holdallowed} == 2 ); $entry->{holdallowed_same} = 1 if ( $entry->{holdallowed} == 1 ); + $entry->{holdallowed_group} = 1 if ( $entry->{holdallowed} == 3 ); } $template->param(show_branch_cat_rule_form => 1); @@ -613,6 +614,7 @@ if ($defaults) { $template->param( default_holdallowed_none => 1 ) if ( $defaults->{holdallowed} == 0 ); $template->param( default_holdallowed_same => 1 ) if ( $defaults->{holdallowed} == 1 ); $template->param( default_holdallowed_any => 1 ) if ( $defaults->{holdallowed} == 2 ); + $template->param( default_holdallowed_group => 1 ) if ( $defaults->{holdallowed} == 3 ); $template->param( default_hold_fulfillment_policy => $defaults->{hold_fulfillment_policy} ); $template->param( default_maxissueqty => $defaults->{maxissueqty} ); $template->param( default_maxonsiteissueqty => $defaults->{maxonsiteissueqty} ); --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt @@ -430,6 +430,13 @@ [% END %] From any library + [% IF ( default_holdallowed_group ) %] + [% IF ( default_holdallowed_same ) %] [% END %] + [% IF default_hold_fulfillment_policy == 'holdgroup' %] + + [% ELSE %] + + [% END %] + [% IF default_hold_fulfillment_policy == 'homebranch' %]