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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt (-2 / +2 lines)
Lines 307-313 $(document).ready(function() { Link Here
307
307
308
        <hr>
308
        <hr>
309
        <div class="subfield_line">
309
        <div class="subfield_line">
310
            <label for="number_of_copies">Number of copies to be made of this item </label> <input type="text" id="number_of_copies[% newserialloo.serialid | html %][% newserialloo.countitems | html %][% iteminformatio.subfield | html %][% iteminformatio.random | html %]" name="number_of_copies" value="1" size="2"> <span class="hint">The barcode you enter will be incremented for each additional item.</p>
310
            <label for="number_of_copies">Number of copies to be made of this item </label> <input type="text" id="number_of_copies[% newserialloo.serialid | html %][% newserialloo.countitems | html %][% iteminformatio.subfield | html %][% iteminformatio.random | html %]" name="number_of_copies" value="1" maxlength="3" size="2"> <span class="hint">Number of copies limited to under 1000. The barcode you enter will be incremented for each additional item.</p>
311
        </div>
311
        </div>
312
312
313
        <input type="hidden" name="moditem" value="" /> 
313
        <input type="hidden" name="moditem" value="" /> 
Lines 458-464 $(document).ready(function() { Link Here
458
458
459
        <hr>
459
        <hr>
460
        <div class="subfield_line">
460
        <div class="subfield_line">
461
            <label for="number_of_copies">Number of copies to be made of this item </label> <input type="text" id="number_of_copies[% newserialloo.serialid | html %][% newserialloo.countitems | html %][% iteminformatio.subfield | html %][% iteminformatio.random | html %]" name="number_of_copies" value="1" size="2"> <span class="hint">The barcode you enter will be incremented for each additional item.</p>
461
            <label for="number_of_copies">Number of copies to be made of this item </label> <input type="text" id="number_of_copies[% newserialloo.serialid | html %][% newserialloo.countitems | html %][% iteminformatio.subfield | html %][% iteminformatio.random | html %]" name="number_of_copies" value="1" maxlength="3" size="2"> <span class="hint">Number of copies limited to under 1000. The barcode you enter will be incremented for each additional item.</p>
462
        </div>
462
        </div>
463
463
464
        <input type="hidden" name="moditem" value="" /> 
464
        <input type="hidden" name="moditem" value="" /> 
(-)a/serials/serials-edit.pl (-2 / +2 lines)
Lines 77-82 use Koha::Items; Link Here
77
use Koha::Serial::Items;
77
use Koha::Serial::Items;
78
78
79
use List::MoreUtils qw( uniq );
79
use List::MoreUtils qw( uniq );
80
use List::Util qw( min );
80
81
81
my $query           = CGI->new();
82
my $query           = CGI->new();
82
my $dbh             = C4::Context->dbh;
83
my $dbh             = C4::Context->dbh;
Lines 277-283 if ( $op and $op eq 'serialchangestatus' ) { Link Here
277
        my @serials      = $query->multi_param('serial');
278
        my @serials      = $query->multi_param('serial');
278
        my @bibnums      = $query->multi_param('bibnum');
279
        my @bibnums      = $query->multi_param('bibnum');
279
        my @itemid       = $query->multi_param('itemid');
280
        my @itemid       = $query->multi_param('itemid');
280
        my @num_copies   = $query->multi_param('number_of_copies');
281
        my @num_copies   = map { min($_, 1000); } $query->multi_param('number_of_copies');
281
282
282
        #Rebuilding ALL the data for items into a hash
283
        #Rebuilding ALL the data for items into a hash
283
        # parting them on $itemid.
284
        # parting them on $itemid.
284
- 

Return to bug 34146