Bug 12574 - BiblioDefaultView doesn't affect XSLT results view
authorOwen Leonard <oleonard@myacpl.org>
Mon, 14 Jul 2014 16:49:27 +0000 (12:49 -0400)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Sun, 14 Sep 2014 05:02:50 +0000 (02:02 -0300)
commite261343aac9fab0b737962fe740c9f30b0d8d41b
tree958c3d10408bbd8bb4d25200da55784da62ad737
parentd968df4743a50d6ae283977e438843340597b7ca
Bug 12574 - BiblioDefaultView doesn't affect XSLT results view

The OPAC's XSLT results view does not respect the choice set in the
BiblioDefaultView system preference. This patch adds a check of the
preference to the OPAC's results view for MARC21.

To test you must have the OPAC configured to use the XSLT view for
search results. Perform any search and test the link to a title's detail
page. Switching the values of the BiblioDefaultView should be correctly
reflected in the search results links.

Signed-off-by: Nick Clemens <nick@quecheelibrary.org>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works as described for XSLT view in OPAC.

Notes:
- maybe we should change the pref text from 'simple form' to 'normal view'.
- the patch doesn't include changes to the title link generated from an 880
  field - so those links will still lead to the wrong view.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl