From 0942cac72e8910b3ed6e557c42f6665060c14bd0 Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Tue, 9 Apr 2013 13:20:09 +1200 Subject: [PATCH] Bug 10006 - holding branch is not available to XSLT display To test: Use attached XSLT stylesheet for OPAC Results * set your OPACXSLTResultsDisplay to use the attached stylesheet. The path is the FULL PATH, from /, to the file. * be sure to copy MARC21slimUtils.xsl to the same folder, or change the path in the attached one to point to the correct path on your filesystem. Verify that the OPAC results now show the holding branch instead of the home branch. Possible fail states: * no branch is shown (only call numbers, if given) * the wrong branch is shown Signed-off-by: Kyle M Hall Signed-off-by: Marcel de Rooy Signed-off-by: Jared Camins-Esakov --- C4/XSLT.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/C4/XSLT.pm b/C4/XSLT.pm index dd1967acf6..19ce2ab75f 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -280,10 +280,12 @@ sub buildKohaItemsNamespace { $status = "available"; } 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}}):''; my $itemcallnumber = xml_escape($item->{itemcallnumber}); $xml.= "$homebranch". + "$holdingbranch". "$location". "$ccode". "$status". -- 2.39.5