https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39435
--- Comment #12 from Marcel de Rooy <[email protected]> --- Created attachment 179825 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=179825&action=edit Bug 39435: [DO NOT PUSH] Simple examples to illustrate The examples should only be used for testing the concept! Use them as a starting point for creating your own. The idea is to quickly generate an answer in the plugin module, and make it harder to get the answer from javascript. Include some heavy calculation there, obscure the code, etc. So you could add templates, css etc. in the module but just keep in mind that your response should be fast! Dont use expensive Koha calls, db hits etc. The Dumb module does not use a separate js file. The Simple module moves more or less some logic into a js file. The Text module shows the idea of a text challenge, just as an example. Test plan: Copy the three modules to your INSTANCE/plugins folder. Make sure that you can hit scripts in INSTANCE/plugins/js (see bug 39466), or put them somewhere under koha-tmpl/opac-tmpl/bootstrap/js and change the location in Simple.pm or Text.pm accordingly. Fill the Local use pref BotChallengePlugin with BotChallenge::Dumb or Simple or Text. Restart Plack and memcache. Hit some OPAC pages. Test another plugin. Restart etc. Now test your own? -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ 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/
