[Koha-bugs] [Bug 26890] opac-detail plugin like intranet/cgi-bin/catalogue/detail.pl
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sun Nov 15 21:35:40 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26890
--- Comment #7 from Mark Hofstetter <koha at trust-box.at> ---
thanks so far, the idea seems to work but some minor and one major
notes/questions_
+ compared to a normal perl script which returns JSON (eg opac-ratings-ajax.pl)
the API calls are extremly slow
+ using sub opac_js plugin hook puts the js on every page ...
one major gotcha remains
how do I access local script/template variables (like biblionumber) in the
plugin hook
modifying opac-details.tt directly I'm able to write
$.ajax({
url: '/api/v1/contrib/subordinateitems/biblionumber/[% biblio.biblionumber
| uri %]',
but how to handle this in the opac_js
thx
Mark
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list