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

(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 12-17 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
12
('AgeRestrictionOverride','0',NULL,'Allow staff to check out an item with age restriction.','YesNo'),
12
('AgeRestrictionOverride','0',NULL,'Allow staff to check out an item with age restriction.','YesNo'),
13
('AllFinesNeedOverride','1','0','If on, staff will be asked to override every fine, even if it is below noissuescharge.','YesNo'),
13
('AllFinesNeedOverride','1','0','If on, staff will be asked to override every fine, even if it is below noissuescharge.','YesNo'),
14
('AllowAllMessageDeletion','0','','Allow any Library to delete any message','YesNo'),
14
('AllowAllMessageDeletion','0','','Allow any Library to delete any message','YesNo'),
15
('AllowStaffToSetRelativesCheckoutsVisibility','0',NULL,'If enabled, library staff can set a patron''s checkouts to be visible to linked patrons from the opac.',  'YesNo'),
15
('AllowFineOverride','0','0','If on, staff will be able to issue books to patrons with fines greater than noissuescharge.','YesNo'),
16
('AllowFineOverride','0','0','If on, staff will be able to issue books to patrons with fines greater than noissuescharge.','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'),
17
('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'),
17
('AllowHoldPolicyOverride','0',NULL,'Allow staff to override hold policies when placing holds','YesNo'),
18
('AllowHoldPolicyOverride','0',NULL,'Allow staff to override hold policies when placing holds','YesNo'),
(-)a/installer/data/mysql/updatedatabase.pl (+8 lines)
Lines 8230-8235 if(CheckVersion($DBversion)) { Link Here
8230
        ALTER TABLE issues AUTO_INCREMENT = $max_issue_id
8230
        ALTER TABLE issues AUTO_INCREMENT = $max_issue_id
8231
    });
8231
    });
8232
8232
8233
    $dbh->do(q{
8234
        INSERT INTO systempreferences (variable, value, options, explanation, type )
8235
        VALUES (
8236
            'AllowStaffToSetRelativesCheckoutsVisibility',  '0', NULL,
8237
            'If enabled, library staff can set a patron''s checkouts to be visible to linked patrons from the opac.',  'YesNo'
8238
        )
8239
    });
8240
8233
    print "Upgrade to $DBversion done (Bug 9303 - relative's checkouts in the opac)\n";
8241
    print "Upgrade to $DBversion done (Bug 9303 - relative's checkouts in the opac)\n";
8234
    SetVersion($DBversion);
8242
    SetVersion($DBversion);
8235
}
8243
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (+6 lines)
Lines 134-139 Patrons: Link Here
134
               no: "Don't"
134
               no: "Don't"
135
         - enable the ability to upload and attach arbitrary files to a borrower record.
135
         - enable the ability to upload and attach arbitrary files to a borrower record.
136
     -
136
     -
137
         - pref: AllowStaffToSetRelativesCheckoutsVisibility
138
           choices:
139
               yes: Allow
140
               no: "Don't allow"
141
         - staff to set the ability for a patron's checkouts to be viewed by linked patrons in the OPAC.
142
     -
137
         - Card numbers for patrons must be
143
         - Card numbers for patrons must be
138
         - pref: CardnumberLength
144
         - pref: CardnumberLength
139
         - "characters long. The length can be a single number to specify an exact length, a range separated by a comma (i.e., 'Min,Max'), or a maximum with no minimum (i.e., ',Max')."
145
         - "characters long. The length can be a single number to specify an exact length, a range separated by a comma (i.e., 'Min,Max'), or a maximum with no minimum (i.e., ',Max')."
(-)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 1178-1196 Link Here
1178
			[% END %]
1179
			[% END %]
1179
	  [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %][% IF ( ERROR_password_mismatch ) %]<span class="required">Passwords do not match</span>[% END %]
1180
	  [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %][% IF ( ERROR_password_mismatch ) %]<span class="required">Passwords do not match</span>[% END %]
1180
		</li>
1181
		</li>
1181
        <li>
1182
        [% IF Koha.Preference('AllowStaffToSetRelativesCheckoutsVisibility') %]
1182
            <label for="privacy_relative_checkouts">Show checkouts to relatives</label>
1183
            <li>
1183
            <select name="privacy_relative_checkouts" id="privacy_relative_checkouts">
1184
                <label for="privacy_relative_checkouts">Show checkouts to relatives</label>
1184
                [% IF privacy_relative_checkouts %]
1185
                <select name="privacy_relative_checkouts" id="privacy_relative_checkouts">
1185
                    <option value="0">No</option>
1186
                    [% IF privacy_relative_checkouts %]
1186
                    <option value="1" selected>Yes</option>
1187
                        <option value="0">No</option>
1187
                [% ELSE %]
1188
                        <option value="1" selected>Yes</option>
1188
                    <option value="0" selected>No</option>
1189
                    [% ELSE %]
1189
                    <option value="1">Yes</option>
1190
                        <option value="0" selected>No</option>
1190
                [% END %]
1191
                        <option value="1">Yes</option>
1191
            </select>
1192
                    [% END %]
1192
            <div class="hint">Allow linked patron accounts to view this patron's checkouts from the OPAC</div>
1193
                </select>
1193
        </li>
1194
                <div class="hint">Allow linked patron accounts to view this patron's checkouts from the OPAC</div>
1195
            </li>
1196
        [% END %]
1194
		</ol>
1197
		</ol>
1195
		</fieldset>
1198
		</fieldset>
1196
        [% END # hide fieldset %][% END %]
1199
        [% END # hide fieldset %][% END %]
1197
- 

Return to bug 9303