https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26890
--- Comment #7 from Mark Hofstetter <[email protected]> --- 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. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
