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

(-)a/admin/smart-rules.pl (+2 lines)
Lines 143-148 elsif ($op eq 'add') { Link Here
143
    $no_auto_renewal_after_hard_limit = output_pref( { dt => $no_auto_renewal_after_hard_limit, dateonly => 1, dateformat => 'iso' } ) if ( $no_auto_renewal_after_hard_limit );
143
    $no_auto_renewal_after_hard_limit = output_pref( { dt => $no_auto_renewal_after_hard_limit, dateonly => 1, dateformat => 'iso' } ) if ( $no_auto_renewal_after_hard_limit );
144
    my $reservesallowed  = $input->param('reservesallowed');
144
    my $reservesallowed  = $input->param('reservesallowed');
145
    my $holds_per_record  = $input->param('holds_per_record');
145
    my $holds_per_record  = $input->param('holds_per_record');
146
    my $holds_per_day = $input->param('holds_per_day');
146
    my $onshelfholds     = $input->param('onshelfholds') || 0;
147
    my $onshelfholds     = $input->param('onshelfholds') || 0;
147
    $maxissueqty =~ s/\s//g;
148
    $maxissueqty =~ s/\s//g;
148
    $maxissueqty = undef if $maxissueqty !~ /^\d+/;
149
    $maxissueqty = undef if $maxissueqty !~ /^\d+/;
Lines 182-187 elsif ($op eq 'add') { Link Here
182
        no_auto_renewal_after_hard_limit => $no_auto_renewal_after_hard_limit,
183
        no_auto_renewal_after_hard_limit => $no_auto_renewal_after_hard_limit,
183
        reservesallowed               => $reservesallowed,
184
        reservesallowed               => $reservesallowed,
184
        holds_per_record              => $holds_per_record,
185
        holds_per_record              => $holds_per_record,
186
        holds_per_day                 => $holds_per_day,
185
        issuelength                   => $issuelength,
187
        issuelength                   => $issuelength,
186
        lengthunit                    => $lengthunit,
188
        lengthunit                    => $lengthunit,
187
        hardduedate                   => $hardduedate,
189
        hardduedate                   => $hardduedate,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-4 / +7 lines)
Lines 188-194 $(document).ready(function() { Link Here
188
                <th>Automatic renewal</th>
188
                <th>Automatic renewal</th>
189
                <th>No automatic renewal after</th>
189
                <th>No automatic renewal after</th>
190
                <th>No automatic renewal after (hard limit)</th>
190
                <th>No automatic renewal after (hard limit)</th>
191
                <th>Holds allowed (count)</th>
191
                <th>Holds allowed (total)</th>
192
                <th>Holds allowed (daily)</th>
192
                <th>Holds per record (count)</th>
193
                <th>Holds per record (count)</th>
193
                <th>On shelf holds allowed</th>
194
                <th>On shelf holds allowed</th>
194
                <th>Item level holds</th>
195
                <th>Item level holds</th>
Lines 276-281 $(document).ready(function() { Link Here
276
                            <td>[% rule.no_auto_renewal_after %]</td>
277
                            <td>[% rule.no_auto_renewal_after %]</td>
277
                            <td>[% rule.no_auto_renewal_after_hard_limit %]</td>
278
                            <td>[% rule.no_auto_renewal_after_hard_limit %]</td>
278
							<td>[% rule.reservesallowed %]</td>
279
							<td>[% rule.reservesallowed %]</td>
280
                            <td>[% rule.holds_per_day %]</td>
279
                                                        <td>[% rule.holds_per_record %]</td>
281
                                                        <td>[% rule.holds_per_record %]</td>
280
                                                        <td>
282
                                                        <td>
281
                                                            [% IF rule.onshelfholds == 1 %]
283
                                                            [% IF rule.onshelfholds == 1 %]
Lines 373-378 $(document).ready(function() { Link Here
373
                        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
375
                        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
374
                    </td>
376
                    </td>
375
                    <td><input type="text" name="reservesallowed" id="reservesallowed" size="2" /></td>
377
                    <td><input type="text" name="reservesallowed" id="reservesallowed" size="2" /></td>
378
                    <td><input type="text" name="holds_per_day" id="holds_per_day" size="2" /></td>
376
                    <td><input type="text" name="holds_per_record" id="holds_per_record" size="2" /></td>
379
                    <td><input type="text" name="holds_per_record" id="holds_per_record" size="2" /></td>
377
                    <td>
380
                    <td>
378
                        <select name="onshelfholds" id="onshelfholds">
381
                        <select name="onshelfholds" id="onshelfholds">
Lines 426-433 $(document).ready(function() { Link Here
426
                      <th>No renewal before</th>
429
                      <th>No renewal before</th>
427
                      <th>Automatic renewal</th>
430
                      <th>Automatic renewal</th>
428
                      <th>No automatic renewal after</th>
431
                      <th>No automatic renewal after</th>
429
                       <th>No automatic renewal after (hard limit)</th>
432
                      <th>No automatic renewal after (hard limit)</th>
430
                      <th>Holds allowed (count)</th>
433
                      <th>Holds allowed (total)</th>
434
                      <th>Holds allowed (daily)</th>
431
                      <th>Holds per record (count)</th>
435
                      <th>Holds per record (count)</th>
432
                      <th>On shelf holds allowed</th>
436
                      <th>On shelf holds allowed</th>
433
                      <th>Item level holds</th>
437
                      <th>Item level holds</th>
434
- 

Return to bug 15486