People who want to show the holding branch in results or details in XSLT currently cannot do it, and I think they should be able to.
Created attachment 17300 [details] XSL file to use while testing This XSLT file will show the holding branch instead of the home branch on the OPAC results. It will need to be put in the same folder with MARC21slimUtils.xsl OR you will need to update the path to MARC21slimutils.xsl in this XSLT so that it can find it's references.
Created attachment 17301 [details] [review] 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
Do note, the xslt file is *not* part of the patch. It is only for testing purposes.
Created attachment 17383 [details] [review] 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 <kyle@bywatersolutions.com>
Created attachment 17592 [details] [review] 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 <kyle@bywatersolutions.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
QA Comment: Looks good to me. Works as advertised; tested by editing opacresults. No complaints from qa tools. Passed QA
This patch has been pushed to master and 3.12.x.
Patch doesn't apply on 3.10.x please send a new patch if it is needed