https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41101
--- Comment #2 from CJ Lynce <[email protected]> --- Created attachment 189065 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189065&action=edit Bug 41101: Add ability to make patron extended attributes read-only in staff interface. This patch adds the ability for a Patron Extended Attrtibute to be marked as read-only in the staff interface for all staff users, except 'superlibrarian's. This allows patron attributes to be used by plugins or other features to track statuses without allow staff users to change these attributes and cause potential unintended issues, while still allowing the statuses to be visible to staff. Testing PREP WORK A. Create a new staff patron and assign the following permissions i. Staff access, allows viewing of catalogue in staff interface (catalogue) ii. Add, modify and view patron information (borrowers) B. Create a couple of new 'Patron attribute types' under Administration i. Vary the following settings a. Staff interface mandatory b. Authorized value category (include some with no authorized value) c. Set some as data values. To Test 1. Apply patches, run updatedatabase, and restart_all services. 2. Login as 'koha' in the staff interface. 3. To go Administration -> Patron attribute types 4. For various attributes, do the following: A. Check the "View-only in Staff interface:" B. Verify 'OPAC mandatory' is unchecked and disabled when 'view-only' is checked. C. Save these settings 5. Open a test patron and edit said patron. 6. Set values for various the extended patron attributes. Leave some blank to test as well. 7. Logout of the 'koha' user. 8. Login to the staff interface with the user you created in PREP WORK A., above. 9. Open the same patron, and edit the patron. 10. Verify the following things related to the extended attributes. A. Attrtibutes marked as view-only cannot be changed. B. Date attributes marked as view-only cannot be changed, and do not show a datepicker. C. Attributes marked as view-only do not have a Clear, remove, or X button to clear. 11. Change some information on the patron and save the patron. 12. In the Patron details view, verify that your attributes are unchanged and still populated. Sponsored-by: Westlake Porter Public Library <https://westlakelibrary.org> -- You are receiving this mail because: You are the assignee for the bug. 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/
