Koha/koha-tmpl/intranet-tmpl/prog/en/modules/members
Kyle M Hall 1ad03f5509
Bug 20691: Add ability to turn feature on and off
This patch adds two preferences
1. AllowPatronToSetFinesVisibilityForGuarantor: Allow/Don't allow patrons to choose their own privacy settings for showing the patron's fines to the patron's guarantor
2. AllowStaffToSetFinesVisibilityForGuarantor: Allow/Don't allow staff to set the ability for a patron's fines to be viewed by linked patrons in the OPAC

Also adds a tinyint, non nullable, default to 0 column in borrower and deletedborrower named privacy_guarantor_fines.
1. privacy_guarantor_fines = 0 => don't allow guarantor to see guarantee's fines
2. privacy_guarantor_fines = 1 => allow guarantor to see guarantee's fines

To test:
1) git reset --hard master
2) apply patches (including dependencies)
3) perl installer/data/mysql/updatedatabase.pl
4) dbic
5) restart_all
6) in intranet search for AllowPatronToSetFinesVisibilityForGuarantor and AllowStaffToSetFinesVisibilityForGuarantor preferences
SUCCESS => both preferences should be present
7) search for a patron with guarantor
SUCCESS => in details tab, in "Library use" section you should see a row labeled "Show fines to guarantor"
8) edit
CHECK => in Guarantor information there is no "Show fines to guarantor" select
9) set AllowStaffToSetFinesVisibilityForGuarantor preference to "Allow"
10) return to patron with guarantor and edit
SUCCESS => in Guarantor information section there is a "Show fines to guarantor" select
11) change "Show fines to guarantor" select to "Yes" and save
SUCCESS => Value is saved
12) go to details tab
SUCCESS => in "Library use" section you see a row labeled "Show fines to guarantor" with value "Yes"
13) set OPACPrivacy preference to "Allow"
14) open 2 opacs, one with a patron that has a guarantor and another that hasn't and go to "your privacy" tab.
CHECK => in both opacs you should not see a "Allow your guarantor to view your current fines?" select
15) in intranet set AllowPatronToSetFinesVisibilityForGuarantor to "Allow"
16) refresh both opacs
SUCCESS => in Patron that has guarantor you see a "Allow your guarantor to view your current fines?" select
	=> in Patron without guarantor you don't see a "Allow your guarantor to view your current fines?" select
17) in Patron with guarantor change value of select and save
SUCCESS => Value is saved
18) in intranet set OPACPrivacy preference to "Don't allow" and AllowPatronToSetFinesVisibilityForGuarantor to "Don't allow"
19) got to "your personal details" in both opacs
CHECK => in both opacs you should not see no Privacy section with a "Allow your guarantor to view your current fines?" select
20) in intranet set AllowPatronToSetFinesVisibilityForGuarantor to "Allow"
21) refresh both opacs
SUCCESS => in Patron that has guarantor you see a "Allow your guarantor to view your current fines?" select in a Privacy section
        => in Patron without guarantor there is no Privacy section
22) in Patron with guarantor change value of select and update
SUCCESS => Value is saved
23) Sign off

Signed-off-by: Agustin Moyano <agustinmoyano@theke.io>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-09-11 08:53:46 +01:00
..
tables Bug 22781: Correctly filter the emails 2019-05-15 12:10:53 +00:00
accountline-details.tt Bug 19489: Change method name issue --> checkout 2019-03-11 12:45:58 +00:00
apikeys.tt Bug 22698: Fix incorrect button classes 2019-04-16 13:17:33 +00:00
boraccount.tt Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
deletemem.tt Bug 23219: Cancel patrons holds when patron delete 2019-07-15 12:48:36 +01:00
discharge.tt Bug 21963: Update two-column templates with Bootstrap grid: Patrons part 1 2019-01-11 12:28:58 +00:00
discharges.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
files.tt Bug 21963: Update two-column templates with Bootstrap grid: Patrons part 1 2019-01-11 12:28:58 +00:00
holdshistory.tt Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
housebound.tt Bug 22698: Fix incorrect button classes 2019-04-16 13:17:33 +00:00
ill-requests.tt Bug 18589: (QA follow-up) Remove dateFormat from javascript on ill requests pages. 2019-03-22 20:21:52 +00:00
mancredit.tt Bug 21963: Update two-column templates with Bootstrap grid: Patrons part 1 2019-01-11 12:28:58 +00:00
maninvoice.tt Bug 22563: (QA follow-up) Catch LOST maninvoice cases 2019-07-15 11:28:03 +01:00
member-flags.tt Bug 22698: Fix incorrect button classes 2019-04-16 13:17:33 +00:00
member-password.tt Bug 22974: Patron password update validation broken 2019-05-30 10:01:42 +00:00
member.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
memberentrygen.tt Bug 20691: Add ability to turn feature on and off 2019-09-11 08:53:46 +01:00
members-update.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
merge-patrons.tt Bug 22698: Fix incorrect button classes 2019-04-16 13:17:33 +00:00
moremember-brief.tt Bug 14570: (follow-up) fix qa FAIL tests 2019-08-20 16:05:14 +01:00
moremember-print.tt Bug 22521: Update UI to use accountlines.status 2019-04-17 16:49:36 +00:00
moremember.tt Bug 20691: Add ability to turn feature on and off 2019-09-11 08:53:46 +01:00
notices.tt Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
pay.tt Bug 23228: (QA follow-up) Add required filters 2019-08-08 15:27:23 +01:00
paycollect.tt Bug 23228: (QA follow-up) Add required filters 2019-08-08 15:27:23 +01:00
printfeercpt.tt Bug 22716: (RM follow-up) missing filter and update description 2019-05-10 14:29:13 +00:00
printinvoice.tt Bug 22809: (RM follow-up) fix missing filter and update description 2019-05-10 14:43:11 +00:00
purchase-suggestions.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
readingrec.tt Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
routing-lists.tt Bug 21965: Update two-column templates with Bootstrap grid: Patrons part 3 2019-01-25 20:36:05 +00:00
statistics.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
update-child.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00