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

(-)a/admin/smart-rules.pl (+2 lines)
Lines 131-136 elsif ($op eq 'add') { Link Here
131
    $norenewalbefore = undef if $norenewalbefore =~ /^\s*$/;
131
    $norenewalbefore = undef if $norenewalbefore =~ /^\s*$/;
132
    my $auto_renew = $input->param('auto_renew') eq 'yes' ? 1 : 0;
132
    my $auto_renew = $input->param('auto_renew') eq 'yes' ? 1 : 0;
133
    my $reservesallowed  = $input->param('reservesallowed');
133
    my $reservesallowed  = $input->param('reservesallowed');
134
    my $holds_per_record  = $input->param('holds_per_record');
134
    my $onshelfholds     = $input->param('onshelfholds') || 0;
135
    my $onshelfholds     = $input->param('onshelfholds') || 0;
135
    $maxissueqty =~ s/\s//g;
136
    $maxissueqty =~ s/\s//g;
136
    $maxissueqty = undef if $maxissueqty !~ /^\d+/;
137
    $maxissueqty = undef if $maxissueqty !~ /^\d+/;
Lines 165-170 elsif ($op eq 'add') { Link Here
165
        norenewalbefore               => $norenewalbefore,
166
        norenewalbefore               => $norenewalbefore,
166
        auto_renew                    => $auto_renew,
167
        auto_renew                    => $auto_renew,
167
        reservesallowed               => $reservesallowed,
168
        reservesallowed               => $reservesallowed,
169
        holds_per_record              => $holds_per_record,
168
        issuelength                   => $issuelength,
170
        issuelength                   => $issuelength,
169
        lengthunit                    => $lengthunit,
171
        lengthunit                    => $lengthunit,
170
        hardduedate                   => $hardduedate,
172
        hardduedate                   => $hardduedate,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-1 / +4 lines)
Lines 170-175 for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde Link Here
170
                <th>No renewal before</th>
170
                <th>No renewal before</th>
171
                <th>Automatic renewal</th>
171
                <th>Automatic renewal</th>
172
                <th>Holds allowed (count)</th>
172
                <th>Holds allowed (count)</th>
173
                <th>Holds per record (count)</th>
173
                <th>On shelf holds allowed</th>
174
                <th>On shelf holds allowed</th>
174
                <th>Item level holds</th>
175
                <th>Item level holds</th>
175
                <th>Rental discount (%)</th>
176
                <th>Rental discount (%)</th>
Lines 248-253 for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde Link Here
248
                                [% END %]
249
                                [% END %]
249
                            </td>
250
                            </td>
250
							<td>[% rule.reservesallowed %]</td>
251
							<td>[% rule.reservesallowed %]</td>
252
                <td>[% rule.holds_per_record %]</td>
251
                                                        <td>[% IF rule.onshelfholds %]Yes[% ELSE %]No[% END %]</td>
253
                                                        <td>[% IF rule.onshelfholds %]Yes[% ELSE %]No[% END %]</td>
252
                                                        <td>[% IF rule.opacitemholds == 'F'%]Force[% ELSIF rule.opacitemholds == 'Y'%]Allow[% ELSE %]Don't allow[% END %]</td>
254
                                                        <td>[% IF rule.opacitemholds == 'F'%]Force[% ELSIF rule.opacitemholds == 'Y'%]Allow[% ELSE %]Don't allow[% END %]</td>
253
							<td>[% rule.rentaldiscount %]</td>
255
							<td>[% rule.rentaldiscount %]</td>
Lines 315-320 for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde Link Here
315
                        </select>
317
                        </select>
316
                    </td>
318
                    </td>
317
                    <td><input type="text" name="reservesallowed" id="reservesallowed" size="2" /></td>
319
                    <td><input type="text" name="reservesallowed" id="reservesallowed" size="2" /></td>
320
                    <td><input type="text" name="holds_per_record" id="holds_per_record" size="2" /></td>
318
                    <td>
321
                    <td>
319
                        <select name="onshelfholds" id="onshelfholds">
322
                        <select name="onshelfholds" id="onshelfholds">
320
                            <option value="0" selected>No</option>
323
                            <option value="0" selected>No</option>
Lines 357-362 for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde Link Here
357
                      <th>No renewal before</th>
360
                      <th>No renewal before</th>
358
                      <th>Automatic renewal</th>
361
                      <th>Automatic renewal</th>
359
                      <th>Holds allowed (count)</th>
362
                      <th>Holds allowed (count)</th>
363
                      <th>Holds per record (count)</th>
360
                      <th>On shelf holds allowed</th>
364
                      <th>On shelf holds allowed</th>
361
                      <th>Item level holds</th>
365
                      <th>Item level holds</th>
362
                      <th>Rental discount (%)</th>
366
                      <th>Rental discount (%)</th>
363
- 

Return to bug 14695