Re: [Koha] How to copy patron permissions?
Michael, I've had some jQuery in the Koha library for quite a while. You should take a look at https://wiki.koha-community.org/wiki/JQuery_Library#Add_clear_and_preset_per... There are 3 versions of this for different versions of Koha, but this latest one includes a clear permissions button, a couple of preset permission buttons, and a copy permissions button. Please check it out. We also did a video tutorial on this enhancement in season one of The Terrific Every-Other-Thursday Training Videos. You can find that here: https://youtu.be/M6aQITCJY0U. ___________________________ Christopher Brannon IT Coordinator 702 E Front Ave Coeur d'Alene, ID 83814 (208)769-2315 Ext. 456 cbrannon@cdalibrary.org www.cdalibrary.org Keep tabs on us at: Date: Tue, 26 Apr 2022 10:39:58 +0200 From: Michael Kuhn <mik@adminkuhn.ch> To: Koha <koha@lists.katipo.co.nz> Subject: [Koha] How to copy patron permissions? Message-ID: <abc69231-a587-77d5-01d2-7f98e5b16174@adminkuhn.ch> Content-Type: text/plain; charset=UTF-8; format=flowed Hi Is it possible to copy the permissions of another patron when creating a new one? I always thought this would happen when copying/duplicating an existing patron. But when I actually tried it today the permissions were not there with the new patron and I had to set them manually. Best wishes: Michael Kuhn
Hi Christopher You wrote:
I've had some jQuery in the Koha library for quite a while. You should take a look at https://wiki.koha-community.org/wiki/JQuery_Library#Add_clear_and_preset_per...
There are 3 versions of this for different versions of Koha, but this latest one includes a clear permissions button, a couple of preset permission buttons, and a copy permissions button. Please check it out. We also did a video tutorial on this enhancement in season one of The Terrific Every-Other-Thursday Training Videos. You can find that here: https://youtu.be/M6aQITCJY0U.
Thank you very much for the information! I have noted it for a possible other use case in the future. As I have written in an earlier post of this thread the current library is trying to avoid non-Koha-standard methods like (ever-changing) external Javascript or plugins. It doesn't need to copy patron permissions very often, so it will wait until Koha implements a proper way to copy patron permissions, e. g. according to https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30623 Best wishes: Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch
Hi Michael Kuhn notes:
As I have written in an earlier post of this thread the current library is trying to avoid non-Koha-standard methods like (ever-changing) external Javascript or plugins.
From the perspective of a sys admin that needs to maintain and upgrade a Koha instance, the minimisation of complex and rapidly changing Javascript libraries is more than much appreciated. Javascript libs pull in libs that pull in libs and one is then forever patching. Security vulnerabilities go up as well. Some amount of Javascript is needed and useful for end users but minimising external dependencies is prudent in the long term. Mike -- Mike
Hi all, We use Christopher's "copy permissions" to JS and I just wanted to add a note for those running into trouble under 23.05: the "save" button has changed its classes which causes the 20.x version of the script from the wiki to fail. If you change this line: $('#pat_member-flags #permissions_toolbar button.btn-default').click(); to $('#pat_member-flags #permissions_toolbar button.btn-primary').click(); (note change in last selector) then it works again. It's a fabulous tool and I'm hoping to save others some time troubleshooting! Best, ERIC PHETTEPLACE Systems Librarian, Libraries (he/him) ephetteplace@cca.edu *CCA is situated on the traditional unceded lands of the **Chochenyo and Ramaytush Ohlone** peoples.* Black-owned bookstores in Oakland: Ashay by the Bay <https://ashaybythebay.com/>, Marcus Books <https://www.facebook.com/marcus.books/> :(){ :|: & };: On Wed, Apr 27, 2022 at 5:09 PM Mike Lake <mikel@speleonics.com.au> wrote:
Hi
Michael Kuhn notes:
As I have written in an earlier post of this thread the current library is trying to avoid non-Koha-standard methods like (ever-changing) external Javascript or plugins.
From the perspective of a sys admin that needs to maintain and upgrade a Koha instance, the minimisation of complex and rapidly changing Javascript libraries is more than much appreciated. Javascript libs pull in libs that pull in libs and one is then forever patching. Security vulnerabilities go up as well. Some amount of Javascript is needed and useful for end users but minimising external dependencies is prudent in the long term.
Mike
-- Mike _______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
participants (4)
-
BRANNON, CHRISTOPHER -
Eric Phetteplace -
Michael Kuhn -
Mike Lake