View | Details | Raw Unified | Return to bug 12949
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_12949-add_syspref_to_control_display_of_unlinked_guarantor.sql (+1 lines)
Line 0 Link Here
1
INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) VALUES ('GuarantorsMustBeLinkedToPatronAccount', 1, NULL, 'When adding a guarantor to a borrower Koha will enforce that the guarantor must be linked to a patron account', 'YesNo');
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 199-204 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
199
('GoogleOpenIDConnectDefaultBranch',  '','','This branch code will be used to create Google OpenID Connect patrons.','Textarea'),
199
('GoogleOpenIDConnectDefaultBranch',  '','','This branch code will be used to create Google OpenID Connect patrons.','Textarea'),
200
('GoogleOpenIDConnectDefaultCategory','','','This category code will be used to create Google OpenID Connect patrons.','Textarea'),
200
('GoogleOpenIDConnectDefaultCategory','','','This category code will be used to create Google OpenID Connect patrons.','Textarea'),
201
('GoogleOpenIDConnectDomain', '', NULL, 'Restrict Google OpenID Connect to this domain (or subdomains of this domain). Leave blank for all Google domains', 'Free'),
201
('GoogleOpenIDConnectDomain', '', NULL, 'Restrict Google OpenID Connect to this domain (or subdomains of this domain). Leave blank for all Google domains', 'Free'),
202
('GuarantorsMustBeLinkedToPatronAccount', 1, NULL, 'When adding a guarantor to a borrower Koha will enforce that the guarantor must be linked to a patron account', 'YesNo'),
202
('hidelostitems','0','','If ON, disables display of\"lost\" items in OPAC.','YesNo'),
203
('hidelostitems','0','','If ON, disables display of\"lost\" items in OPAC.','YesNo'),
203
('HidePatronName','0','','If this is switched on, patron\'s cardnumber will be shown instead of their name on the holds and catalog screens','YesNo'),
204
('HidePatronName','0','','If this is switched on, patron\'s cardnumber will be shown instead of their name on the holds and catalog screens','YesNo'),
204
('hide_marc','0',NULL,'If ON, disables display of MARC fields, subfield codes & indicators (still shows data)','YesNo'),
205
('hide_marc','0',NULL,'If ON, disables display of MARC fields, subfield codes & indicators (still shows data)','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (+6 lines)
Lines 227-232 Patrons: Link Here
227
               no: Allow all permitted users
227
               no: Allow all permitted users
228
         - "to access/change superlibrarian privileges."
228
         - "to access/change superlibrarian privileges."
229
         - "<br><strong>NOTE:</strong> A permitted user needs to have the 'permissions' flag (if no superlibrarian)."
229
         - "<br><strong>NOTE:</strong> A permitted user needs to have the 'permissions' flag (if no superlibrarian)."
230
     -
231
         - pref: GuarantorsMustBeLinkedToPatronAccount
232
           choices:
233
               yes: 'Enable'
234
               no: 'Disable'
235
         - When adding a guarantor to a borrower Koha will enforce that the guarantor must be linked to a patron account
230
236
231
    Privacy:
237
    Privacy:
232
     -
238
     -
(-)a/members/moremember.pl (-2 / +1 lines)
Lines 103-109 if ( my $guarantor = $patron->guarantor ) { Link Here
103
    $template->param( guarantor => $guarantor );
103
    $template->param( guarantor => $guarantor );
104
    push @relatives, $guarantor->borrowernumber;
104
    push @relatives, $guarantor->borrowernumber;
105
    push @relatives, $_->borrowernumber for $patron->siblings;
105
    push @relatives, $_->borrowernumber for $patron->siblings;
106
} elsif ( $patron->contactname || $patron->contactfirstname ) {
106
} elsif (( !C4::Context->preference('GuarantorsMustBeLinkedToPatronAccount')) && ( $patron->contactname || $patron->contactfirstname )) {
107
    $template->param(
107
    $template->param(
108
        guarantor => {
108
        guarantor => {
109
            firstname => $patron->contactfirstname,
109
            firstname => $patron->contactfirstname,
110
- 

Return to bug 12949