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

(-)a/admin/smart-rules.pl (+2 lines)
Lines 134-139 elsif ($op eq 'add') { Link Here
134
    $norenewalbefore = undef if $norenewalbefore =~ /^\s*$/;
134
    $norenewalbefore = undef if $norenewalbefore =~ /^\s*$/;
135
    my $auto_renew = $input->param('auto_renew') eq 'yes' ? 1 : 0;
135
    my $auto_renew = $input->param('auto_renew') eq 'yes' ? 1 : 0;
136
    my $reservesallowed  = $input->param('reservesallowed');
136
    my $reservesallowed  = $input->param('reservesallowed');
137
    my $holds_per_record  = $input->param('holds_per_record');
137
    my $onshelfholds     = $input->param('onshelfholds') || 0;
138
    my $onshelfholds     = $input->param('onshelfholds') || 0;
138
    $maxissueqty =~ s/\s//g;
139
    $maxissueqty =~ s/\s//g;
139
    $maxissueqty = undef if $maxissueqty !~ /^\d+/;
140
    $maxissueqty = undef if $maxissueqty !~ /^\d+/;
Lines 169-174 elsif ($op eq 'add') { Link Here
169
        norenewalbefore               => $norenewalbefore,
170
        norenewalbefore               => $norenewalbefore,
170
        auto_renew                    => $auto_renew,
171
        auto_renew                    => $auto_renew,
171
        reservesallowed               => $reservesallowed,
172
        reservesallowed               => $reservesallowed,
173
        holds_per_record              => $holds_per_record,
172
        issuelength                   => $issuelength,
174
        issuelength                   => $issuelength,
173
        lengthunit                    => $lengthunit,
175
        lengthunit                    => $lengthunit,
174
        hardduedate                   => $hardduedate,
176
        hardduedate                   => $hardduedate,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-1 / +4 lines)
Lines 176-181 for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde Link Here
176
                <th>No renewal before</th>
176
                <th>No renewal before</th>
177
                <th>Automatic renewal</th>
177
                <th>Automatic renewal</th>
178
                <th>Holds allowed (count)</th>
178
                <th>Holds allowed (count)</th>
179
                <th>Holds per record (count)</th>
179
                <th>On shelf holds allowed</th>
180
                <th>On shelf holds allowed</th>
180
                <th>Item level holds</th>
181
                <th>Item level holds</th>
181
                <th>Rental discount (%)</th>
182
                <th>Rental discount (%)</th>
Lines 254-259 for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde Link Here
254
                                [% END %]
255
                                [% END %]
255
                            </td>
256
                            </td>
256
							<td>[% rule.reservesallowed %]</td>
257
							<td>[% rule.reservesallowed %]</td>
258
                                                        <td>[% rule.holds_per_record %]</td>
257
                                                        <td>
259
                                                        <td>
258
                                                            [% IF rule.onshelfholds == 1 %]
260
                                                            [% IF rule.onshelfholds == 1 %]
259
                                                                Yes
261
                                                                Yes
Lines 328-333 for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde Link Here
328
                        </select>
330
                        </select>
329
                    </td>
331
                    </td>
330
                    <td><input type="text" name="reservesallowed" id="reservesallowed" size="2" /></td>
332
                    <td><input type="text" name="reservesallowed" id="reservesallowed" size="2" /></td>
333
                    <td><input type="text" name="holds_per_record" id="holds_per_record" size="2" /></td>
331
                    <td>
334
                    <td>
332
                        <select name="onshelfholds" id="onshelfholds">
335
                        <select name="onshelfholds" id="onshelfholds">
333
                            <option value="1">Yes</option>
336
                            <option value="1">Yes</option>
Lines 371-376 for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde Link Here
371
                      <th>No renewal before</th>
374
                      <th>No renewal before</th>
372
                      <th>Automatic renewal</th>
375
                      <th>Automatic renewal</th>
373
                      <th>Holds allowed (count)</th>
376
                      <th>Holds allowed (count)</th>
377
                      <th>Holds per record (count)</th>
374
                      <th>On shelf holds allowed</th>
378
                      <th>On shelf holds allowed</th>
375
                      <th>Item level holds</th>
379
                      <th>Item level holds</th>
376
                      <th>Rental discount (%)</th>
380
                      <th>Rental discount (%)</th>
377
- 

Return to bug 14695