@@ -, +, @@ --- C4/Search.pm | 2 +- C4/XSLT.pm | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) --- a/C4/Search.pm +++ a/C4/Search.pm @@ -1639,7 +1639,7 @@ sub searchResults { }); #Build branchnames hash - my %branches = map { $_->branchcode => $_->branchname } Koha::Libraries->search({}, { order_by => 'branchname' })->as_list; + my %branches = map { $_->branchcode => $_->branchname } Koha::Libraries->search({}, { order_by => 'branchname' }); my $description = $is_opac ? 'opac_description' : 'lib'; my $shelflocations = --- a/C4/XSLT.pm +++ a/C4/XSLT.pm @@ -249,6 +249,7 @@ sub XSLTParse4Display { my $hidden_items = $params->{hidden_items} || []; my $variables = $params->{xslt_variables}; my $items_rs = $params->{items_rs}; + my $items = $params->{items}; die "Mandatory \$params->{xsl_syspref} was not provided, called with biblionumber $params->{biblionumber}" if not defined $params->{xsl_syspref}; @@ -369,6 +370,7 @@ sub buildKohaItemsNamespace { } my $homebranch = xml_escape( $item->{homebranch} ); my $holdingbranch = xml_escape( $item->{holdingbranch} ); + my $resultbranch = xml_escape( $item->{resultbranch}); my $location = xml_escape( $item->{location} ); my $ccode = xml_escape( $item->{ccode} ); my $itemcallnumber = xml_escape($item->{itemcallnumber}); --