diff --git a/C4/XSLT.pm b/C4/XSLT.pm index 19ce2ab75f..8f24df9e74 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -281,8 +281,8 @@ sub buildKohaItemsNamespace { } my $homebranch = $item->{homebranch}? xml_escape($branches->{$item->{homebranch}}->{'branchname'}):''; my $holdingbranch = $item->{holdingbranch}? xml_escape($branches->{$item->{holdingbranch}}->{'branchname'}):''; - $location = $item->{location}? xml_escape($shelflocations->{$item->{location}}):''; - $ccode = $item->{ccode}? xml_escape($ccodes->{$item->{ccode}}):''; + $location = $item->{location}? xml_escape($shelflocations->{$item->{location}}||$item->{location}):''; + $ccode = $item->{ccode}? xml_escape($ccodes->{$item->{ccode}}||$item->{ccode}):''; my $itemcallnumber = xml_escape($item->{itemcallnumber}); $xml.= "$homebranch". "$holdingbranch".