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 187-193 $(document).ready(function() { Link Here
187
                <th>Automatic renewal</th>
187
                <th>Automatic renewal</th>
188
                <th>No automatic renewal after</th>
188
                <th>No automatic renewal after</th>
189
                <th>No automatic renewal after (hard limit)</th>
189
                <th>No automatic renewal after (hard limit)</th>
190
                <th>Holds allowed (count)</th>
190
                <th>Holds allowed (total)</th>
191
                <th>Holds allowed (daily)</th>
191
                <th>Holds per record (count)</th>
192
                <th>Holds per record (count)</th>
192
                <th>On shelf holds allowed</th>
193
                <th>On shelf holds allowed</th>
193
                <th>Item level holds</th>
194
                <th>Item level holds</th>
Lines 270-275 $(document).ready(function() { Link Here
270
                            <td>[% rule.no_auto_renewal_after %]</td>
271
                            <td>[% rule.no_auto_renewal_after %]</td>
271
                            <td>[% rule.no_auto_renewal_after_hard_limit %]</td>
272
                            <td>[% rule.no_auto_renewal_after_hard_limit %]</td>
272
							<td>[% rule.reservesallowed %]</td>
273
							<td>[% rule.reservesallowed %]</td>
274
                            <td>[% rule.holds_per_day %]</td>
273
                                                        <td>[% rule.holds_per_record %]</td>
275
                                                        <td>[% rule.holds_per_record %]</td>
274
                                                        <td>
276
                                                        <td>
275
                                                            [% IF rule.onshelfholds == 1 %]
277
                                                            [% IF rule.onshelfholds == 1 %]
Lines 361-366 $(document).ready(function() { Link Here
361
                        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
363
                        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
362
                    </td>
364
                    </td>
363
                    <td><input type="text" name="reservesallowed" id="reservesallowed" size="2" /></td>
365
                    <td><input type="text" name="reservesallowed" id="reservesallowed" size="2" /></td>
366
                    <td><input type="text" name="holds_per_day" id="holds_per_day" size="2" /></td>
364
                    <td><input type="text" name="holds_per_record" id="holds_per_record" size="2" /></td>
367
                    <td><input type="text" name="holds_per_record" id="holds_per_record" size="2" /></td>
365
                    <td>
368
                    <td>
366
                        <select name="onshelfholds" id="onshelfholds">
369
                        <select name="onshelfholds" id="onshelfholds">
Lines 413-420 $(document).ready(function() { Link Here
413
                      <th>No renewal before</th>
416
                      <th>No renewal before</th>
414
                      <th>Automatic renewal</th>
417
                      <th>Automatic renewal</th>
415
                      <th>No automatic renewal after</th>
418
                      <th>No automatic renewal after</th>
416
                       <th>No automatic renewal after (hard limit)</th>
419
                      <th>No automatic renewal after (hard limit)</th>
417
                      <th>Holds allowed (count)</th>
420
                      <th>Holds allowed (total)</th>
421
                      <th>Holds allowed (daily)</th>
418
                      <th>Holds per record (count)</th>
422
                      <th>Holds per record (count)</th>
419
                      <th>On shelf holds allowed</th>
423
                      <th>On shelf holds allowed</th>
420
                      <th>Item level holds</th>
424
                      <th>Item level holds</th>
421
- 

Return to bug 15486