Kyle M Hall
e8e327e47f
This patch gives patrons the option of allowing other linked relatives to view his or her checkouts from opac-user.pl in a manner similiar to the patron's own checkouts tab. By default the setting is not enabled. Test Plan: 1) Apply this patch 2) Run updatedatabase.pl 3) Create three borrowers, link them as relatives 4) In the OPAC, go to "my privacy" and choose to allow relatives to view current checkouts for borrowers A and B 5) Check out some items to each borrower 6) Log into the OPAC as borrower A, you should see a "Relatives' checkouts" tab. In this tab you should see the checkouts for borrower B 7) Log into the OPAC as borrower C, you should be able to view the current checkouts for both borrower A and borrower B Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Nick Clemens <nick@quecheelibrary.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
12 lines
654 B
SQL
12 lines
654 B
SQL
ALTER TABLE borrowers ADD privacy_guarantor_checkouts BOOLEAN NOT NULL DEFAULT '0' AFTER privacy;
|
|
|
|
ALTER TABLE deletedborrowers ADD privacy_guarantor_checkouts BOOLEAN NOT NULL DEFAULT '0' AFTER privacy;
|
|
|
|
INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type )
|
|
VALUES (
|
|
'AllowStaffToSetCheckoutsVisibilityForGuarantor', '0', NULL,
|
|
'If enabled, library staff can set a patron''s checkouts to be visible to linked patrons from the opac.', 'YesNo'
|
|
), (
|
|
'AllowPatronToSetCheckoutsVisibilityForGuarantor', '0', NULL,
|
|
'If enabled, the patron can set checkouts to be visible to his or her guarantor', 'YesNo'
|
|
);
|