Lines 81-86
sub generate_subfield_form {
Link Here
|
81 |
my $restricted_edition = $params->{restricted_editition}; |
81 |
my $restricted_edition = $params->{restricted_editition}; |
82 |
my $prefill_with_default_values = $params->{prefill_with_default_values}; |
82 |
my $prefill_with_default_values = $params->{prefill_with_default_values}; |
83 |
my $branch_limit = $params->{branch_limit}; |
83 |
my $branch_limit = $params->{branch_limit}; |
|
|
84 |
my $default_branches_empty = $params->{default_branches_empty}; |
84 |
|
85 |
|
85 |
my $item = $self->{item}; |
86 |
my $item = $self->{item}; |
86 |
my $subfield = $tagslib->{$tag}{$subfieldtag}; |
87 |
my $subfield = $tagslib->{$tag}{$subfieldtag}; |
Lines 189-194
sub generate_subfield_form {
Link Here
|
189 |
} |
190 |
} |
190 |
} |
191 |
} |
191 |
elsif ( $subfield->{authorised_value} eq "branches" ) { |
192 |
elsif ( $subfield->{authorised_value} eq "branches" ) { |
|
|
193 |
push @authorised_values, "" if $default_branches_empty; |
192 |
foreach my $thisbranch (@$libraries) { |
194 |
foreach my $thisbranch (@$libraries) { |
193 |
push @authorised_values, $thisbranch->{branchcode}; |
195 |
push @authorised_values, $thisbranch->{branchcode}; |
194 |
$authorised_lib{ $thisbranch->{branchcode} } = |
196 |
$authorised_lib{ $thisbranch->{branchcode} } = |
Lines 470-475
sub edit_form {
Link Here
|
470 |
my $subfields_to_ignore= $params->{subfields_to_ignore} || []; |
472 |
my $subfields_to_ignore= $params->{subfields_to_ignore} || []; |
471 |
my $prefill_with_default_values = $params->{prefill_with_default_values}; |
473 |
my $prefill_with_default_values = $params->{prefill_with_default_values}; |
472 |
my $branch_limit = $params->{branch_limit}; |
474 |
my $branch_limit = $params->{branch_limit}; |
|
|
475 |
my $default_branches_empty = $params->{default_branches_empty}; |
473 |
|
476 |
|
474 |
my $libraries = |
477 |
my $libraries = |
475 |
Koha::Libraries->search( {}, { order_by => ['branchname'] } )->unblessed; |
478 |
Koha::Libraries->search( {}, { order_by => ['branchname'] } )->unblessed; |
Lines 541-546
sub edit_form {
Link Here
|
541 |
restricted_edition => $restricted_edition, |
544 |
restricted_edition => $restricted_edition, |
542 |
prefill_with_default_values => $prefill_with_default_values, |
545 |
prefill_with_default_values => $prefill_with_default_values, |
543 |
branch_limit => $branch_limit, |
546 |
branch_limit => $branch_limit, |
|
|
547 |
default_branches_empty => $default_branches_empty, |
544 |
} |
548 |
} |
545 |
); |
549 |
); |
546 |
push @subfields, $subfield_data; |
550 |
push @subfields, $subfield_data; |