https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27734
David Nind <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188256|0 |1 is obsolete| | --- Comment #28 from David Nind <[email protected]> --- Created attachment 190815 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=190815&action=edit Bug 27734: Add OpacHiddenRecordRedirect system preference This patch adds option analogous to OpacSuppressionRedirect for OpacHiddtenItems Test plan: 1. Apply patch 2. Create a bibiliographic record and add an item to it. Note down its biblionumber. It will be later reffered to as <biblionumber>. 3. Set system preference OpacHiddenRecordRedirect on 4. Create HTML customization OpacHiddenRecordMessage. Add some placeholder content in it. 5. Enable OpacHiddenItemsHidesRecord and hide a biblio using OpacHiddenItems: biblionumber: [<biblionumber>] e.g. biblionumber: [123] 6. Test OpacHiddenRecordRedirect and OpacHiddenRecordMessage to ensure they work as expected 7. Hit these links: http://koha/cgi-bin/koha/opac-detail.pl?biblionumber=<biblionumber> http://koha/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=<biblionumber> http://koha/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=<biblionumber> 8. When OpacHiddenRecordRedirect set to 404 you get a 404 9. When OpacHiddenRecordRedirect set to 'an explanatory page' you get 'opac-blocked.pl' 10. If you set a message in OpacHiddenRecordMessage it displays on opac-blocked.pl 11. Using preference OpacHiddenItemsExceptions, exclude your patron category 12. Observe the record is no longer blocked when your patron category is excluded Signed-off-by: David Nind <[email protected]> -- 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/
