[Koha-bugs] [Bug 25416] Add information about anonymous session for XSLT use
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue May 12 14:36:38 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25416
Nick Clemens <nick at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #104719|0 |1
is obsolete| |
--- Comment #16 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 104768
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=104768&action=edit
Bug 25416: Let OPAC XSLTs know if the context is an anonymous session
This patch makes use of the 'variables' parameter in XSLTParse4Display
method in the different places that it is used in the OPAC. It does by
passing this parameter with
anonymous_session => 1|0
The value will depend on the output from get_template_and_user (i.e. if
there's a returned borrowernumber).
A special case takes place in search results, as the call to
XSLTParse4Display happens in C4::Search::searchResults. So a new
parameter 'xslt_variables' is added to it.
To test:
1. Apply the [DO NOT PUSH] patch
2. Open the OPAC in your browser
3. Try detail pages, search results, tags and lists/shelves pages with
or without an active session
=> FAIL: It always says (somewhere) 'Anonymous session: Yes'
4. Apply this patch, restart_all
5. Repeat 3
=> SUCCESS: It will tell the Yes/No correctly regarding anonymous
sessions!
6. Sign off :-D
Sponsored-by: Universidad ORT Uruguay
Signed-off-by: Victor Grousset/tuxayo <victor at tuxayo.net>
Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
https://bugs.koha-community.org/show_bug.cgi?id=24516
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list