Do an OPAC search and see that the availability line looks something like this: Availability: Items available for loan: 1 , 1 , 2 . Instead of like this: Availability: Items available for loan: Midway (1), Centerville (1), Fairview (2) This is beacuse singebranchmode is always set to 1: <xsl:variable name="singleBranchMode" select="1"/> It needs to honor the system preference.
Created attachment 119326 [details] [review] Bug 28114: Fix error in MARC21slim2OPACResults To test: -Look at search results and see something like: Availability: Items available for loan: 1 , 1 , 2 . -Apply patch -See something like: Availability: Items available for loan: Midway (1), Centerville (1), Fairview (2)
Created attachment 119340 [details] [review] Bug 28114: Fix error in MARC21slim2OPACResults To test: -Look at search results and see something like: Availability: Items available for loan: 1 , 1 , 2 . -Apply patch -See something like: Availability: Items available for loan: Midway (1), Centerville (1), Fairview (2) Signed-off-by: David Nind <david@davidnind.com>
Created attachment 119538 [details] [review] Bug 28114: Fix error in MARC21slim2OPACResults To test: -Look at search results and see something like: Availability: Items available for loan: 1 , 1 , 2 . -Apply patch -See something like: Availability: Items available for loan: Midway (1), Centerville (1), Fairview (2) Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Trivial obvious fix, passing QA
Created attachment 119576 [details] [review] Bug 28114: Fix error in MARC21slim2OPACResults - correctly select singleBranchMode To test: -Look at search results and see something like: Availability: Items available for loan: 1 , 1 , 2 . -Apply patch -See something like: Availability: Items available for loan: Midway (1), Centerville (1), Fairview (2) Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Pushed to master for 21.05, thanks to everybody involved!
Depends on Bug 21260 not in 20.11.x