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

(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 11-16 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
11
('AgeRestrictionOverride','0',NULL,'Allow staff to check out an item with age restriction.','YesNo'),
11
('AgeRestrictionOverride','0',NULL,'Allow staff to check out an item with age restriction.','YesNo'),
12
('AllFinesNeedOverride','1','0','If on, staff will be asked to override every fine, even if it is below noissuescharge.','YesNo'),
12
('AllFinesNeedOverride','1','0','If on, staff will be asked to override every fine, even if it is below noissuescharge.','YesNo'),
13
('AllowAllMessageDeletion','0','','Allow any Library to delete any message','YesNo'),
13
('AllowAllMessageDeletion','0','','Allow any Library to delete any message','YesNo'),
14
('AllowStaffToSetRelativesCheckoutsVisibility','0',NULL,'If enabled, library staff can set a patron''s checkouts to be visible to linked patrons from the opac.',  'YesNo'),
14
('AllowFineOverride','0','0','If on, staff will be able to issue books to patrons with fines greater than noissuescharge.','YesNo'),
15
('AllowFineOverride','0','0','If on, staff will be able to issue books to patrons with fines greater than noissuescharge.','YesNo'),
15
('AllowHoldDateInFuture','0','','If set a date field is displayed on the Hold screen of the Staff Interface, allowing the hold date to be set in the future.','YesNo'),
16
('AllowHoldDateInFuture','0','','If set a date field is displayed on the Hold screen of the Staff Interface, allowing the hold date to be set in the future.','YesNo'),
16
('AllowHoldPolicyOverride','0',NULL,'Allow staff to override hold policies when placing holds','YesNo'),
17
('AllowHoldPolicyOverride','0',NULL,'Allow staff to override hold policies when placing holds','YesNo'),
(-)a/installer/data/mysql/updatedatabase.pl (+8 lines)
Lines 8040-8045 if(CheckVersion($DBversion)) { Link Here
8040
        ALTER TABLE issues AUTO_INCREMENT = $max_issue_id
8040
        ALTER TABLE issues AUTO_INCREMENT = $max_issue_id
8041
    });
8041
    });
8042
8042
8043
    $dbh->do(q{
8044
        INSERT INTO systempreferences (variable, value, options, explanation, type )
8045
        VALUES (
8046
            'AllowStaffToSetRelativesCheckoutsVisibility',  '0', NULL ,  
8047
            'If enabled, library staff can set a patron''s checkouts to be visible to linked patrons from the opac.',  'YesNo'
8048
        )
8049
    });
8050
8043
    print "Upgrade to $DBversion done (Bug 9303 - relative's checkouts in the opac)\n";
8051
    print "Upgrade to $DBversion done (Bug 9303 - relative's checkouts in the opac)\n";
8044
    SetVersion($DBversion);
8052
    SetVersion($DBversion);
8045
}
8053
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (+6 lines)
Lines 139-141 Patrons: Link Here
139
               yes: Do
139
               yes: Do
140
               no: "Don't"
140
               no: "Don't"
141
         - enable the ability to upload and attach arbitrary files to a borrower record.
141
         - enable the ability to upload and attach arbitrary files to a borrower record.
142
     -
143
         - pref: AllowStaffToSetRelativesCheckoutsVisibility
144
           choices:
145
               yes: Allow
146
               no: "Don't allow"
147
         - staff to set the ability for a patron's checkouts to be viewed by linked patrons in the OPAC.
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-14 / +16 lines)
Lines 1-5 Link Here
1
[% IF ( opduplicate ) %][% SET focusAction = "clearDupe" %][% END %]
1
[% IF ( opduplicate ) %][% SET focusAction = "clearDupe" %][% END %]
2
[% USE KohaDates %]
2
[% USE KohaDates %]
3
[% USE Koha %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Patrons &rsaquo; 
5
<title>Koha &rsaquo; Patrons &rsaquo; 
5
[% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] [% IF ( categoryname ) %] [% categoryname %] patron[% ELSE %][% IF ( I ) %] Organization patron[% END %][% IF ( A ) %] Adult patron[% END %][% IF ( C ) %] Child patron[% END %][% IF ( P ) %] Professional patron[% END %][% IF ( S ) %] Staff patron[% END %][% END %][% UNLESS ( opadd ) %] [% surname %], [% firstname %][% END %]</title>
6
[% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] [% IF ( categoryname ) %] [% categoryname %] patron[% ELSE %][% IF ( I ) %] Organization patron[% END %][% IF ( A ) %] Adult patron[% END %][% IF ( C ) %] Child patron[% END %][% IF ( P ) %] Professional patron[% END %][% IF ( S ) %] Staff patron[% END %][% END %][% UNLESS ( opadd ) %] [% surname %], [% firstname %][% END %]</title>
Lines 1165-1183 Link Here
1165
			[% END %]
1166
			[% END %]
1166
	  [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %][% IF ( ERROR_password_mismatch ) %]<span class="required">Passwords do not match</span>[% END %]
1167
	  [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %][% IF ( ERROR_password_mismatch ) %]<span class="required">Passwords do not match</span>[% END %]
1167
		</li>
1168
		</li>
1168
        <li>
1169
        [% IF Koha.Preference('AllowStaffToSetRelativesCheckoutsVisibility') %]
1169
            <label for="privacy_relative_checkouts">Show checkouts to relatives</label>
1170
            <li>
1170
            <select name="privacy_relative_checkouts" id="privacy_relative_checkouts">
1171
                <label for="privacy_relative_checkouts">Show checkouts to relatives</label>
1171
                [% IF privacy_relative_checkouts %]
1172
                <select name="privacy_relative_checkouts" id="privacy_relative_checkouts">
1172
                    <option value="0">No</option>
1173
                    [% IF privacy_relative_checkouts %]
1173
                    <option value="1" selected>Yes</option>
1174
                        <option value="0">No</option>
1174
                [% ELSE %]
1175
                        <option value="1" selected>Yes</option>
1175
                    <option value="0" selected>No</option>
1176
                    [% ELSE %]
1176
                    <option value="1">Yes</option>
1177
                        <option value="0" selected>No</option>
1177
                [% END %]
1178
                        <option value="1">Yes</option>
1178
            </select>
1179
                    [% END %]
1179
            <div class="hint">Allow linked patron accounts to view this patron's checkouts from the OPAC</div>
1180
                </select>
1180
        </li>
1181
                <div class="hint">Allow linked patron accounts to view this patron's checkouts from the OPAC</div>
1182
            </li>
1183
        [% END %]
1181
		</ol>
1184
		</ol>
1182
		</fieldset>
1185
		</fieldset>
1183
        [% END # hide fieldset %][% END %]
1186
        [% END # hide fieldset %][% END %]
1184
- 

Return to bug 9303