Bug 16274

Summary: Make the selfregistration branchcode selection configurable
Product: Koha Reporter: Nicolas Legrand <nicolas.legrand>
Component: PatronsAssignee: Jonathan Druart <jonathan.druart>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, jonathan.druart, kyle.m.hall, kyle, nick
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: Sponsored Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on:    
Bug Blocks: 27604, 27618    
Attachments: Bug 16274: Add the new pref PatronSelfRegistrationLibraryList
Bug 16274: Limit the patron self registration to some libraries
Bug 16274: Add the new pref PatronSelfRegistrationLibraryList
Bug 16274: Limit the patron self registration to some libraries
Bug 16274: Add the new pref PatronSelfRegistrationLibraryList
Bug 16274: Limit the patron self registration to some libraries
Bug 16274: Add the new pref PatronSelfRegistrationLibraryList
Bug 16274: Limit the patron self registration to some libraries

Description Nicolas Legrand 2016-04-15 13:08:42 UTC
We would like to set the list of branchcodes available for selfregistration and not having all of them.

A syspref containing a string with branchcode separated by a pipe should be fine.
Comment 1 Jonathan Druart 2016-04-25 08:59:48 UTC Comment hidden (obsolete)
Comment 2 Jonathan Druart 2016-04-25 08:59:52 UTC Comment hidden (obsolete)
Comment 3 Nicolas Legrand 2016-05-04 08:51:25 UTC Comment hidden (obsolete)
Comment 4 Nicolas Legrand 2016-05-04 08:52:28 UTC Comment hidden (obsolete)
Comment 5 Nick Clemens (kidclamp) 2016-08-12 15:59:32 UTC Comment hidden (obsolete)
Comment 6 Nick Clemens (kidclamp) 2016-08-12 15:59:38 UTC Comment hidden (obsolete)
Comment 7 Nick Clemens (kidclamp) 2016-08-12 16:02:07 UTC
Cleared small conflict (removal of GetTitles() )
Comment 8 Kyle M Hall 2016-09-09 12:55:52 UTC
GetBranchesLoop has been removed, this patch set will need to be updated.
Comment 9 Jonathan Druart 2016-09-12 14:50:15 UTC
Created attachment 55492 [details] [review]
Bug 16274: Add the new pref PatronSelfRegistrationLibraryList

Sponsored-by: BULAC - http://www.bulac.fr/
Signed-off-by: Nicolas Legrand <nicolas.legrand@bulac.fr>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Comment 10 Jonathan Druart 2016-09-12 14:50:18 UTC
Created attachment 55493 [details] [review]
Bug 16274: Limit the patron self registration to some libraries

Currently a patron can select a home library in the list of all
libraries defined in the system.
However some of these libraries might not accept self registration.
This patch adds a new pref to display only the allowed libraries.

Test plan:
0/ Apply the patch, do not fill the new pref
1/ Self register a new patron
=> All the libraries defined should be displayed in the "Home library"
dropwdown list
2/ Fill the pref PatronSelfRegistrationLibraryList with some of the
branchcode defined in the system
=> Self register a new patron and confirm that the dropdown list has
been filtered.

Sponsored-by: BULAC - http://www.bulac.fr/
Signed-off-by: Nicolas Legrand <nicolas.legrand@bulac.fr>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Comment 11 Kyle M Hall 2016-09-12 16:39:21 UTC
Pushed to master for 16.11, thanks Jonathan!