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

(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 29-34 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
29
('AllowRenewalLimitOverride','0',NULL,'if ON, allows renewal limits to be overridden on the circulation screen','YesNo'),
29
('AllowRenewalLimitOverride','0',NULL,'if ON, allows renewal limits to be overridden on the circulation screen','YesNo'),
30
('AllowReturnToBranch','anywhere','anywhere|homebranch|holdingbranch|homeorholdingbranch','Where an item may be returned','Choice'),
30
('AllowReturnToBranch','anywhere','anywhere|homebranch|holdingbranch|homeorholdingbranch','Where an item may be returned','Choice'),
31
('AllowSelfCheckReturns','0','','If enabled, patrons may return items through the Web-based Self Checkout','YesNo'),
31
('AllowSelfCheckReturns','0','','If enabled, patrons may return items through the Web-based Self Checkout','YesNo'),
32
('AllowStaffToSetRelativesCheckoutsVisibility','0',NULL,'If enabled, library staff can set a patron''s checkouts to be visible to linked patrons from the opac.',  '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'),
33
('AllowTooManyOverride','1','','If on, allow staff to override and check out items when the patron has reached the maximum number of allowed checkouts','YesNo'),
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'),
34
('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'),
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'),
35
('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 8493-8498 if(CheckVersion($DBversion)) { Link Here
8493
        ALTER TABLE issues AUTO_INCREMENT = $max_issue_id
8493
        ALTER TABLE issues AUTO_INCREMENT = $max_issue_id
8494
    });
8494
    });
8495
8495
8496
    $dbh->do(q{
8497
        INSERT INTO systempreferences (variable, value, options, explanation, type )
8498
        VALUES (
8499
            'AllowStaffToSetRelativesCheckoutsVisibility',  '0', NULL,
8500
            'If enabled, library staff can set a patron''s checkouts to be visible to linked patrons from the opac.',  'YesNo'
8501
        )
8502
    });
8503
8496
    print "Upgrade to $DBversion done (Bug 9303 - relative's checkouts in the opac)\n";
8504
    print "Upgrade to $DBversion done (Bug 9303 - relative's checkouts in the opac)\n";
8497
    SetVersion($DBversion);
8505
    SetVersion($DBversion);
8498
}
8506
}
(-)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 1170-1188 Link Here
1170
			[% END %]
1171
			[% END %]
1171
	  [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %][% IF ( ERROR_password_mismatch ) %]<span class="required">Passwords do not match</span>[% END %]
1172
	  [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %][% IF ( ERROR_password_mismatch ) %]<span class="required">Passwords do not match</span>[% END %]
1172
		</li>
1173
		</li>
1173
        <li>
1174
        [% IF Koha.Preference('AllowStaffToSetRelativesCheckoutsVisibility') %]
1174
            <label for="privacy_relative_checkouts">Show checkouts to relatives</label>
1175
            <li>
1175
            <select name="privacy_relative_checkouts" id="privacy_relative_checkouts">
1176
                <label for="privacy_relative_checkouts">Show checkouts to relatives</label>
1176
                [% IF privacy_relative_checkouts %]
1177
                <select name="privacy_relative_checkouts" id="privacy_relative_checkouts">
1177
                    <option value="0">No</option>
1178
                    [% IF privacy_relative_checkouts %]
1178
                    <option value="1" selected>Yes</option>
1179
                        <option value="0">No</option>
1179
                [% ELSE %]
1180
                        <option value="1" selected>Yes</option>
1180
                    <option value="0" selected>No</option>
1181
                    [% ELSE %]
1181
                    <option value="1">Yes</option>
1182
                        <option value="0" selected>No</option>
1182
                [% END %]
1183
                        <option value="1">Yes</option>
1183
            </select>
1184
                    [% END %]
1184
            <div class="hint">Allow linked patron accounts to view this patron's checkouts from the OPAC</div>
1185
                </select>
1185
        </li>
1186
                <div class="hint">Allow linked patron accounts to view this patron's checkouts from the OPAC</div>
1187
            </li>
1188
        [% END %]
1186
		</ol>
1189
		</ol>
1187
		</fieldset>
1190
		</fieldset>
1188
        [% END # hide fieldset %][% END %]
1191
        [% END # hide fieldset %][% END %]
1189
- 

Return to bug 9303