Lines 69-75
my ($tag,$subfield) = GetMarcFromKohaField( 'items.location' );
Link Here
|
69 |
my $tagslib = &GetMarcStructure(1,''); |
69 |
my $tagslib = &GetMarcStructure(1,''); |
70 |
if ($tagslib->{$tag}->{$subfield}->{authorised_value}) { |
70 |
if ($tagslib->{$tag}->{$subfield}->{authorised_value}) { |
71 |
my $values= GetAuthorisedValues($tagslib->{$tag}->{$subfield}->{authorised_value}); |
71 |
my $values= GetAuthorisedValues($tagslib->{$tag}->{$subfield}->{authorised_value}); |
72 |
for (@$values) { $_->{selected} = 1 if $location eq $_->{authorised_value} } |
72 |
for (@$values) { $_->{selected} = 1 if defined $location && $location eq $_->{authorised_value} } |
73 |
$template->param(locationsloop => $values); |
73 |
$template->param(locationsloop => $values); |
74 |
} |
74 |
} |
75 |
# now display infos |
75 |
# now display infos |
76 |
- |
|
|