Lines 1680-1687
sub PrepareItemrecordDisplay {
Link Here
|
1680 |
#----- itemtypes |
1680 |
#----- itemtypes |
1681 |
} elsif ( $tagslib->{$tag}->{$subfield}->{authorised_value} eq "itemtypes" ) { |
1681 |
} elsif ( $tagslib->{$tag}->{$subfield}->{authorised_value} eq "itemtypes" ) { |
1682 |
my $itemtypes = Koha::ItemTypes->search_with_localization; |
1682 |
my $itemtypes = Koha::ItemTypes->search_with_localization; |
1683 |
push @authorised_values, "" |
1683 |
push @authorised_values, ""; |
1684 |
unless ( $tagslib->{$tag}->{$subfield}->{mandatory} ); |
|
|
1685 |
while ( my $itemtype = $itemtypes->next ) { |
1684 |
while ( my $itemtype = $itemtypes->next ) { |
1686 |
push @authorised_values, $itemtype->itemtype; |
1685 |
push @authorised_values, $itemtype->itemtype; |
1687 |
$authorised_lib{$itemtype->itemtype} = $itemtype->translated_description; |
1686 |
$authorised_lib{$itemtype->itemtype} = $itemtype->translated_description; |
Lines 1692-1698
sub PrepareItemrecordDisplay {
Link Here
|
1692 |
|
1691 |
|
1693 |
#---- class_sources |
1692 |
#---- class_sources |
1694 |
} elsif ( $tagslib->{$tag}->{$subfield}->{authorised_value} eq "cn_source" ) { |
1693 |
} elsif ( $tagslib->{$tag}->{$subfield}->{authorised_value} eq "cn_source" ) { |
1695 |
push @authorised_values, "" unless ( $tagslib->{$tag}->{$subfield}->{mandatory} ); |
1694 |
push @authorised_values, ""; |
1696 |
|
1695 |
|
1697 |
my $class_sources = GetClassSources(); |
1696 |
my $class_sources = GetClassSources(); |
1698 |
my $default_source = $defaultvalue || C4::Context->preference("DefaultClassificationSource"); |
1697 |
my $default_source = $defaultvalue || C4::Context->preference("DefaultClassificationSource"); |
Lines 1712-1719
sub PrepareItemrecordDisplay {
Link Here
|
1712 |
$tagslib->{$tag}->{$subfield}->{authorised_value}, |
1711 |
$tagslib->{$tag}->{$subfield}->{authorised_value}, |
1713 |
$branch_limit ? $branch_limit : () |
1712 |
$branch_limit ? $branch_limit : () |
1714 |
); |
1713 |
); |
1715 |
push @authorised_values, "" |
1714 |
push @authorised_values, ""; |
1716 |
unless ( $tagslib->{$tag}->{$subfield}->{mandatory} ); |
|
|
1717 |
while ( my ( $value, $lib ) = $authorised_values_sth->fetchrow_array ) { |
1715 |
while ( my ( $value, $lib ) = $authorised_values_sth->fetchrow_array ) { |
1718 |
push @authorised_values, $value; |
1716 |
push @authorised_values, $value; |
1719 |
$authorised_lib{$value} = $lib; |
1717 |
$authorised_lib{$value} = $lib; |
1720 |
- |
|
|