Lines 354-359
sub buildKohaItemsNamespace {
Link Here
|
354 |
else { |
354 |
else { |
355 |
$status = "available"; |
355 |
$status = "available"; |
356 |
} |
356 |
} |
|
|
357 |
|
358 |
my $itemtype; |
359 |
if ( exists $itemtypes->{ $item->effective_itemtype } ) { |
360 |
$itemtype = $item->effective_itemtype; |
361 |
} |
362 |
|
357 |
my $homebranch = C4::Koha::xml_escape($branches{$item->homebranch}); |
363 |
my $homebranch = C4::Koha::xml_escape($branches{$item->homebranch}); |
358 |
my $holdingbranch = C4::Koha::xml_escape($branches{$item->holdingbranch}); |
364 |
my $holdingbranch = C4::Koha::xml_escape($branches{$item->holdingbranch}); |
359 |
my $resultbranch = C4::Context->preference('OPACResultsLibrary') eq 'homebranch' ? $homebranch : $holdingbranch; |
365 |
my $resultbranch = C4::Context->preference('OPACResultsLibrary') eq 'homebranch' ? $homebranch : $holdingbranch; |
Lines 372-377
sub buildKohaItemsNamespace {
Link Here
|
372 |
. "<substatus>$substatus</substatus>" |
378 |
. "<substatus>$substatus</substatus>" |
373 |
. "<itemcallnumber>$itemcallnumber</itemcallnumber>" |
379 |
. "<itemcallnumber>$itemcallnumber</itemcallnumber>" |
374 |
. "<stocknumber>$stocknumber</stocknumber>" |
380 |
. "<stocknumber>$stocknumber</stocknumber>" |
|
|
381 |
. "<itemtype>$itemtype</itemtype>" |
375 |
. "</item>"; |
382 |
. "</item>"; |
376 |
} |
383 |
} |
377 |
$xml = "<items xmlns=\"http://www.koha-community.org/items\">".$xml."</items>"; |
384 |
$xml = "<items xmlns=\"http://www.koha-community.org/items\">".$xml."</items>"; |
378 |
- |
|
|