Lines 1668-1675
sub PrepareItemrecordDisplay {
Link Here
|
1668 |
#----- itemtypes |
1668 |
#----- itemtypes |
1669 |
} elsif ( $tagslib->{$tag}->{$subfield}->{authorised_value} eq "itemtypes" ) { |
1669 |
} elsif ( $tagslib->{$tag}->{$subfield}->{authorised_value} eq "itemtypes" ) { |
1670 |
my $itemtypes = Koha::ItemTypes->search_with_localization; |
1670 |
my $itemtypes = Koha::ItemTypes->search_with_localization; |
1671 |
push @authorised_values, "" |
1671 |
push @authorised_values, ""; |
1672 |
unless ( $tagslib->{$tag}->{$subfield}->{mandatory} ); |
|
|
1673 |
while ( my $itemtype = $itemtypes->next ) { |
1672 |
while ( my $itemtype = $itemtypes->next ) { |
1674 |
push @authorised_values, $itemtype->itemtype; |
1673 |
push @authorised_values, $itemtype->itemtype; |
1675 |
$authorised_lib{$itemtype->itemtype} = $itemtype->translated_description; |
1674 |
$authorised_lib{$itemtype->itemtype} = $itemtype->translated_description; |
Lines 1680-1686
sub PrepareItemrecordDisplay {
Link Here
|
1680 |
|
1679 |
|
1681 |
#---- class_sources |
1680 |
#---- class_sources |
1682 |
} elsif ( $tagslib->{$tag}->{$subfield}->{authorised_value} eq "cn_source" ) { |
1681 |
} elsif ( $tagslib->{$tag}->{$subfield}->{authorised_value} eq "cn_source" ) { |
1683 |
push @authorised_values, "" unless ( $tagslib->{$tag}->{$subfield}->{mandatory} ); |
1682 |
push @authorised_values, ""; |
1684 |
|
1683 |
|
1685 |
my $class_sources = GetClassSources(); |
1684 |
my $class_sources = GetClassSources(); |
1686 |
my $default_source = $defaultvalue || C4::Context->preference("DefaultClassificationSource"); |
1685 |
my $default_source = $defaultvalue || C4::Context->preference("DefaultClassificationSource"); |
Lines 1700-1707
sub PrepareItemrecordDisplay {
Link Here
|
1700 |
$tagslib->{$tag}->{$subfield}->{authorised_value}, |
1699 |
$tagslib->{$tag}->{$subfield}->{authorised_value}, |
1701 |
$branch_limit ? $branch_limit : () |
1700 |
$branch_limit ? $branch_limit : () |
1702 |
); |
1701 |
); |
1703 |
push @authorised_values, "" |
1702 |
push @authorised_values, ""; |
1704 |
unless ( $tagslib->{$tag}->{$subfield}->{mandatory} ); |
|
|
1705 |
while ( my ( $value, $lib ) = $authorised_values_sth->fetchrow_array ) { |
1703 |
while ( my ( $value, $lib ) = $authorised_values_sth->fetchrow_array ) { |
1706 |
push @authorised_values, $value; |
1704 |
push @authorised_values, $value; |
1707 |
$authorised_lib{$value} = $lib; |
1705 |
$authorised_lib{$value} = $lib; |
1708 |
- |
|
|