Bug 28831: Add choose/when, and change indentation
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 9 Sep 2021 08:56:07 +0000 (08:56 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 18 Oct 2021 09:28:41 +0000 (11:28 +0200)
commitb217eab28e442d8d54cd49d860572c474ed2d44f
treed8f4583579fb18a9c3daa7ffedfa215e428ded4b
parentb34bb8fc62d4a46fae3dd1337224492ac539d44f
Bug 28831: Add choose/when, and change indentation

As a first step:
[1] Add the new pref OPACResultsUnavailableGroupingBy in the xslt,
    and pass it via C4/XSLT.
[2] Add a choose/when construction in the third part of Availability.
[3] Add indentation (8 spaces) of the inner block handling group by branch.

Test plan:
Make sure that OPACResultsUnavailableGroupingBy eq branch.
Verify that OPAC results are still untouched.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
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>
C4/XSLT.pm
koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl