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

(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 28-33 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
28
('AllowRenewalLimitOverride','0',NULL,'if ON, allows renewal limits to be overridden on the circulation screen','YesNo'),
28
('AllowRenewalLimitOverride','0',NULL,'if ON, allows renewal limits to be overridden on the circulation screen','YesNo'),
29
('AllowReturnToBranch','anywhere','anywhere|homebranch|holdingbranch|homeorholdingbranch','Where an item may be returned','Choice'),
29
('AllowReturnToBranch','anywhere','anywhere|homebranch|holdingbranch|homeorholdingbranch','Where an item may be returned','Choice'),
30
('AllowSelfCheckReturns','0','','If enabled, patrons may return items through the Web-based Self Checkout','YesNo'),
30
('AllowSelfCheckReturns','0','','If enabled, patrons may return items through the Web-based Self Checkout','YesNo'),
31
('AllowStaffToSetRelativesCheckoutsVisibility','0',NULL,'If enabled, library staff can set a patron''s checkouts to be visible to linked patrons from the opac.',  'YesNo'),
31
('AllowTooManyOverride','1','','If on, allow staff to override and check out items when the patron has reached the maximum number of allowed checkouts','YesNo'),
32
('AllowTooManyOverride','1','','If on, allow staff to override and check out items when the patron has reached the maximum number of allowed checkouts','YesNo'),
32
('alphabet','A B C D E F G H I J K L M N O P Q R S T U V W X Y Z',NULL,'Alphabet than can be expanded into browse links, e.g. on Home > Patrons','free'),
33
('alphabet','A B C D E F G H I J K L M N O P Q R S T U V W X Y Z',NULL,'Alphabet than can be expanded into browse links, e.g. on Home > Patrons','free'),
33
('AlternateHoldingsField','',NULL,'The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).','free'),
34
('AlternateHoldingsField','',NULL,'The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).','free'),
(-)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