|
Lines 170-176
sub build_authorized_values_list {
Link Here
|
| 170 |
# builds list, depending on authorised value... |
170 |
# builds list, depending on authorised value... |
| 171 |
|
171 |
|
| 172 |
#---- branch |
172 |
#---- branch |
| 173 |
if ( $tagslib->{$tag}->{$subfield}->{'authorised_value'} eq "branches" ) { |
173 |
if ( $tagslib->{$tag}->{$subfield}->{'authorised_value'} =~ /branches|branches_optional/ ) { |
| 174 |
#Use GetBranches($onlymine) |
174 |
#Use GetBranches($onlymine) |
| 175 |
my $onlymine=C4::Context->preference('IndependantBranches') && |
175 |
my $onlymine=C4::Context->preference('IndependantBranches') && |
| 176 |
C4::Context->userenv && |
176 |
C4::Context->userenv && |
|
Lines 182-188
sub build_authorized_values_list {
Link Here
|
| 182 |
push @authorised_values, $thisbranch; |
182 |
push @authorised_values, $thisbranch; |
| 183 |
$authorised_lib{$thisbranch} = $branches->{$thisbranch}->{'branchname'}; |
183 |
$authorised_lib{$thisbranch} = $branches->{$thisbranch}->{'branchname'}; |
| 184 |
} |
184 |
} |
| 185 |
|
185 |
push( @authorised_values, q{} ) if ( $tagslib->{$tag}->{$subfield}->{'authorised_value'} eq 'branches_optional' ); |
| 186 |
#----- itemtypes |
186 |
#----- itemtypes |
| 187 |
} |
187 |
} |
| 188 |
elsif ( $tagslib->{$tag}->{$subfield}->{authorised_value} eq "itemtypes" ) { |
188 |
elsif ( $tagslib->{$tag}->{$subfield}->{authorised_value} eq "itemtypes" ) { |
| 189 |
- |
|
|