Lines 97-102
sub _get_label_item {
Link Here
|
97 |
my $data1 = $sth1->fetchrow_hashref; |
97 |
my $data1 = $sth1->fetchrow_hashref; |
98 |
$data->{'itemtype'} = $data1->{'description'}; |
98 |
$data->{'itemtype'} = $data1->{'description'}; |
99 |
$data->{'itype'} = $data1->{'description'}; |
99 |
$data->{'itype'} = $data1->{'description'}; |
|
|
100 |
# add *_description fields |
101 |
if ($data->{'homebranch'} || $data->{'holdingbranch'}){ |
102 |
require C4::Branch; |
103 |
$data->{'homebranch_description'} = C4::Branch::GetBranchName($data->{'homebranch'}) if $data->{'homebranch'}; |
104 |
$data->{'holdingbranch_description'} = C4::Branch::GetBranchName($data->{'holdingbranch'}) if $data->{'holdingbranch'}; |
105 |
} |
106 |
$data->{'ccode_description'} = C4::Biblio::GetAuthorisedValueDesc('','', $data->{'ccode'} ,'','','CCODE', 1) if $data->{'ccode'}; |
107 |
$data->{'location_description'} = C4::Biblio::GetAuthorisedValueDesc('','', $data->{'location'} ,'','','LOC', 1) if $data->{'location'}; |
108 |
$data->{'permanent_location_description'} = C4::Biblio::GetAuthorisedValueDesc('','', $data->{'permanent_location'} ,'','','LOC', 1) if $data->{'permanent_location'}; |
109 |
|
100 |
$barcode_only ? return $data->{'barcode'} : return $data; |
110 |
$barcode_only ? return $data->{'barcode'} : return $data; |
101 |
} |
111 |
} |
102 |
|
112 |
|
103 |
- |
|
|