]> git.koha-community.org Git - koha.git/commit
Bug 8492 [ENH] Restrict OpacSuppression to IP adresses outside of an IP range
authorMirko Tietgen <5p4m@gmx.de>
Mon, 23 Jul 2012 23:31:28 +0000 (01:31 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 3 Sep 2012 09:56:21 +0000 (11:56 +0200)
commitac61b4df51586d292f7c0cd54badb8bbbe31c55a
tree3d1fd3bb05b5d4cab64a4255865699ce3b7f55a1
parent676ff1c3df38ae0fb1f3d66e4b634a92485fdde7
Bug 8492 [ENH] Restrict OpacSuppression to IP adresses outside of an IP range

This enhancement extends the OpacSuppression feature with an optional IP address range within which results are _not_ suppressed.

To test

* turn on OpacSuppression (Administration->System preferences->Cataloging) and enter an IP address range in the OpacSuppressionByIPRange field.
* set at least one bibliographic record to suppress=1 (enter '1' in 942$n)
* fully reindex your data
* do an OPAC search that should bring up your suppressed record
* try with IP ranges that match your IP and ranges that don't

Signed-off-by: Marc Veron <veron@veron.ch>
Tested following the scenario above. Works as expected.
installer/data/mysql/sysprefs.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref
opac/opac-search.pl