[koha-commits] main Koha release repository branch 3.16.x updated. v3.16.00-28-g644937f

Git repo owner gitmaster at git.koha-community.org
Mon Jun 9 17:35:28 CEST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, 3.16.x has been updated
       via  644937f411b309e48ce7174a787633ad0f337463 (commit)
      from  1857c444cc6666331eae34e9a99fa1eaa3f1c760 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 644937f411b309e48ce7174a787633ad0f337463
Author: Mason James <mtj at kohaaloha.com>
Date:   Wed May 28 13:59:20 2014 +1200

    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
    
    Signed-off-by: Christopher Brannon <cbrannon at cdalibrary.org>
    Signed-off-by: Jonathan Druart <jonathan.druart at biblibre.com>
    Amended patch: Remove the bug report number in the comment since git log
    cans provide the same result.
    
    Signed-off-by: Chris Cormack <chris at bigballofwax.co.nz>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>

-----------------------------------------------------------------------

Summary of changes:
 koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt |    6 ++++++
 opac/opac-suggestions.pl                                     |    8 ++++++++
 2 files changed, 14 insertions(+)


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list