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

(-)a/cataloguing/additem.pl (-2 / +2 lines)
Lines 45-51 use Koha::Result::Boolean; Link Here
45
45
46
use Encode qw( encode_utf8 );
46
use Encode qw( encode_utf8 );
47
use List::MoreUtils qw( any uniq );
47
use List::MoreUtils qw( any uniq );
48
use List::Util qw( first );
48
use List::Util qw( first min );
49
use MARC::File::XML;
49
use MARC::File::XML;
50
use MIME::Base64 qw( decode_base64url encode_base64url );
50
use MIME::Base64 qw( decode_base64url encode_base64url );
51
use Storable qw( freeze thaw );
51
use Storable qw( freeze thaw );
Lines 238-244 if ($op eq "additem") { Link Here
238
    my $add_duplicate_submit       = $input->param('add_duplicate_submit');
238
    my $add_duplicate_submit       = $input->param('add_duplicate_submit');
239
    my $add_multiple_copies_submit = $input->param('add_multiple_copies_submit');
239
    my $add_multiple_copies_submit = $input->param('add_multiple_copies_submit');
240
    my $save_as_template_submit    = $input->param('save_as_template_submit');
240
    my $save_as_template_submit    = $input->param('save_as_template_submit');
241
    my $number_of_copies           = $input->param('number_of_copies');
241
    my $number_of_copies           = min( $input->param('number_of_copies'), 1000 ); # TODO refine hardcoded maximum?
242
242
243
    my @columns = Koha::Items->columns;
243
    my @columns = Koha::Items->columns;
244
    my $item = Koha::Item->new;
244
    my $item = Koha::Item->new;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt (-2 / +1 lines)
Lines 286-292 Link Here
286
        <label for="number_of_copies">Number of copies of this item to add: </label>
286
        <label for="number_of_copies">Number of copies of this item to add: </label>
287
        <input type="text" id="number_of_copies" name="number_of_copies" value="" size="2" />
287
        <input type="text" id="number_of_copies" name="number_of_copies" value="" size="2" />
288
        <input type="submit" id="add_multiple_copies_submit" name="add_multiple_copies_submit" value="Add" onclick="javascript:return Check(this.form) && CheckMultipleAdd(this.form.number_of_copies.value);" /> <a href="#" id="cancel_add_multiple" class="cancel">Cancel</a>
288
        <input type="submit" id="add_multiple_copies_submit" name="add_multiple_copies_submit" value="Add" onclick="javascript:return Check(this.form) && CheckMultipleAdd(this.form.number_of_copies.value);" /> <a href="#" id="cancel_add_multiple" class="cancel">Cancel</a>
289
        <div class="hint"><p>The barcode you enter will be incremented for each additional item.</p></div>
289
        <div class="hint"><p>Maximum currently set to 1000. The barcode you enter will be incremented for each additional item.</p></div>
290
    </fieldset>
290
    </fieldset>
291
291
292
    <span id="savetemplate">
292
    <span id="savetemplate">
293
- 

Return to bug 34146