|
Lines 246-251
sub GetRecords {
Link Here
|
| 246 |
$item{'homebranchname'} = $home_library ? $home_library->branchname : ''; |
246 |
$item{'homebranchname'} = $home_library ? $home_library->branchname : ''; |
| 247 |
$item{'holdingbranchname'} = $holding_library ? $holding_library->branchname : ''; |
247 |
$item{'holdingbranchname'} = $holding_library ? $holding_library->branchname : ''; |
| 248 |
|
248 |
|
|
|
249 |
if ($item->location) { |
| 250 |
my $authorised_value = Koha::AuthorisedValues->find_by_koha_field({ kohafield => 'items.location', authorised_value => $item->location }); |
| 251 |
if ($authorised_value) { |
| 252 |
$item{location_description} = $authorised_value->opac_description; |
| 253 |
} |
| 254 |
} |
| 255 |
|
| 256 |
if ($item->itype) { |
| 257 |
my $itemtype = Koha::ItemTypes->find($item->itype); |
| 258 |
if ($itemtype) { |
| 259 |
$item{itype_description} = $itemtype->description; |
| 260 |
} |
| 261 |
} |
| 262 |
|
| 249 |
my $transfer = $item->get_transfer; |
263 |
my $transfer = $item->get_transfer; |
| 250 |
if ($transfer) { |
264 |
if ($transfer) { |
| 251 |
$item{transfer} = { |
265 |
$item{transfer} = { |
| 252 |
- |
|
|