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

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

Return to bug 14695