[Koha-bugs] [Bug 3144] anti-spam for opac-suggestions

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed May 28 04:02:43 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=3144

Mason James <mtj at kohaaloha.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #28505|0                           |1
        is obsolete|                            |

--- Comment #11 from Mason James <mtj at kohaaloha.com> ---
Created attachment 28507
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=28507&action=edit
Bug 3144 - anti-spam for opac-suggestions

this patch adds a negative-captcha feature to the purchase suggestions form

some info for the curious...
 http://nedbatchelder.com/text/stopbots.html
 https://github.com/subwindow/negative-captcha
 http://www.rubydoc.info/github/subwindow/negative-captcha/frames

to test this patch...

1/ apply patch

2/ enable 'suggestion' and 'AnonSuggestions' sysprefs

3/ attempt to add a 'purchase suggestion' in OPAC
   adding the suggestion should succeed

4/ edit the koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt file,
    to reveal the hidden 'negcap' field

   replace line 87 opac-suggestions.tt, from...
     <li id="negcap" style="position: absolute; left: -2000px;">
   to ...
     <li id="negcap">

5/ attempt to add another suggestion, and populate the 'negcap' field
   adding the suggestion should fail

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list