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

(-)a/admin/smart-rules.pl (+2 lines)
Lines 120-125 elsif ($op eq 'add') { Link Here
120
    $norenewalbefore = undef if $norenewalbefore =~ /^\s*$/;
120
    $norenewalbefore = undef if $norenewalbefore =~ /^\s*$/;
121
    my $auto_renew = $input->param('auto_renew') eq 'yes' ? 1 : 0;
121
    my $auto_renew = $input->param('auto_renew') eq 'yes' ? 1 : 0;
122
    my $reservesallowed  = $input->param('reservesallowed');
122
    my $reservesallowed  = $input->param('reservesallowed');
123
    my $holds_per_record  = $input->param('holds_per_record');
123
    my $onshelfholds     = $input->param('onshelfholds') || 0;
124
    my $onshelfholds     = $input->param('onshelfholds') || 0;
124
    $maxissueqty =~ s/\s//g;
125
    $maxissueqty =~ s/\s//g;
125
    $maxissueqty = undef if $maxissueqty !~ /^\d+/;
126
    $maxissueqty = undef if $maxissueqty !~ /^\d+/;
Lines 156-161 elsif ($op eq 'add') { Link Here
156
        norenewalbefore        => $norenewalbefore,
157
        norenewalbefore        => $norenewalbefore,
157
        auto_renew             => $auto_renew,
158
        auto_renew             => $auto_renew,
158
        reservesallowed        => $reservesallowed,
159
        reservesallowed        => $reservesallowed,
160
        holds_per_record       => $holds_per_record,
159
        issuelength            => $issuelength,
161
        issuelength            => $issuelength,
160
        lengthunit             => $lengthunit,
162
        lengthunit             => $lengthunit,
161
        hardduedate            => $hardduedate,
163
        hardduedate            => $hardduedate,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-1 / +4 lines)
Lines 158-163 for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde Link Here
158
                <th>No renewal before</th>
158
                <th>No renewal before</th>
159
                <th>Automatic renewal</th>
159
                <th>Automatic renewal</th>
160
                <th>Holds allowed (count)</th>
160
                <th>Holds allowed (count)</th>
161
                <th>Holds per record (count)</th>
161
                <th>On shelf holds allowed</th>
162
                <th>On shelf holds allowed</th>
162
                <th>Item level holds</th>
163
                <th>Item level holds</th>
163
                <th>Rental discount (%)</th>
164
                <th>Rental discount (%)</th>
Lines 229-234 for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde Link Here
229
                                [% END %]
230
                                [% END %]
230
                            </td>
231
                            </td>
231
							<td>[% rule.reservesallowed %]</td>
232
							<td>[% rule.reservesallowed %]</td>
233
                <td>[% rule.holds_per_record %]</td>
232
                                                        <td>[% IF rule.onshelfholds %]Yes[% ELSE %]No[% END %]</td>
234
                                                        <td>[% IF rule.onshelfholds %]Yes[% ELSE %]No[% END %]</td>
233
                                                        <td>[% IF rule.opacitemholds == 'F'%]Force[% ELSIF rule.opacitemholds == 'Y'%]Allow[% ELSE %]Don't allow[% END %]</td>
235
                                                        <td>[% IF rule.opacitemholds == 'F'%]Force[% ELSIF rule.opacitemholds == 'Y'%]Allow[% ELSE %]Don't allow[% END %]</td>
234
							<td>[% rule.rentaldiscount %]</td>
236
							<td>[% rule.rentaldiscount %]</td>
Lines 295-300 for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde Link Here
295
                        </select>
297
                        </select>
296
                    </td>
298
                    </td>
297
                    <td><input type="text" name="reservesallowed" id="reservesallowed" size="2" /></td>
299
                    <td><input type="text" name="reservesallowed" id="reservesallowed" size="2" /></td>
300
                    <td><input type="text" name="holds_per_record" id="holds_per_record" size="2" /></td>
298
                    <td>
301
                    <td>
299
                        <select name="onshelfholds" id="onshelfholds">
302
                        <select name="onshelfholds" id="onshelfholds">
300
                            <option value="0" selected>No</option>
303
                            <option value="0" selected>No</option>
Lines 336-341 for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde Link Here
336
                      <th>No renewal before</th>
339
                      <th>No renewal before</th>
337
                      <th>Automatic renewal</th>
340
                      <th>Automatic renewal</th>
338
                      <th>Holds allowed (count)</th>
341
                      <th>Holds allowed (count)</th>
342
                      <th>Holds per record (count)</th>
339
                      <th>On shelf holds allowed</th>
343
                      <th>On shelf holds allowed</th>
340
                      <th>Item level holds</th>
344
                      <th>Item level holds</th>
341
                      <th>Rental discount (%)</th>
345
                      <th>Rental discount (%)</th>
342
- 

Return to bug 14695