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

(-)a/acqui/addorderiso2709.pl (-3 / +8 lines)
Lines 467-474 sub import_biblios_list { Link Here
467
    my @list = ();
467
    my @list = ();
468
    my $item_error = 0;
468
    my $item_error = 0;
469
469
470
    my $ccodes    = GetKohaAuthorisedValues("items.ccode");
470
    my $ccodes = { map { $_->{authorised_value} => $_->{opac_description} } Koha::AuthorisedValues->get_descriptions_by_koha_field( { frameworkcode => '', kohafield => 'items.ccode' } ) };
471
    my $locations = GetKohaAuthorisedValues("items.location");
471
    my $locations = { map { $_->{authorised_value} => $_->{opac_description} } Koha::AuthorisedValues->get_descriptions_by_koha_field( { frameworkcode => '', kohafield => 'items.location' } ) };
472
    my $notforloans = { map { $_->{authorised_value} => $_->{lib} } Koha::AuthorisedValues->get_descriptions_by_koha_field( { frameworkcode => '', kohafield => 'items.notforloan' } ) };
472
    # location list
473
    # location list
473
    my @locations;
474
    my @locations;
474
    foreach (sort keys %$locations) {
475
    foreach (sort keys %$locations) {
Lines 478-484 sub import_biblios_list { Link Here
478
    foreach (sort {$ccodes->{$a} cmp $ccodes->{$b}} keys %$ccodes) {
479
    foreach (sort {$ccodes->{$a} cmp $ccodes->{$b}} keys %$ccodes) {
479
        push @ccodes, { code => $_, description => $ccodes->{$_} };
480
        push @ccodes, { code => $_, description => $ccodes->{$_} };
480
    }
481
    }
481
482
    my @notforloans;
483
    foreach (sort {$notforloans->{$a} cmp $notforloans->{$b}} keys %$notforloans) {
484
        push @notforloans, { code => $_, description => $notforloans->{$_} };
485
    }
482
486
483
    my $biblio_count = 0;
487
    my $biblio_count = 0;
484
    foreach my $biblio (@$biblios) {
488
    foreach my $biblio (@$biblios) {
Lines 607-612 sub import_biblios_list { Link Here
607
                        locationloop => \@locations,
611
                        locationloop => \@locations,
608
                        itypeloop => \@itypes,
612
                        itypeloop => \@itypes,
609
                        ccodeloop => \@ccodes,
613
                        ccodeloop => \@ccodes,
614
			notforloanloop => \@notforloans,
610
                    );
615
                    );
611
    batch_info($template, $batch);
616
    batch_info($template, $batch);
612
}
617
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt (-2 / +11 lines)
Lines 370-376 Link Here
370
                        </select>
370
                        </select>
371
                        </li>
371
                        </li>
372
372
373
                        <li><label for="notforloan_item_[% item.item_id %]">notforloan</label><input type="text" id="notforloan_item_[% item.item_id %]" name="notforloan_[% item.biblio_count %]" value="[% item.notforloan %]"></li>
373
                        <li>
374
			<label for="notforloan_item_[% item.item_id %]">notforloan</label><select id="notforloan_item_[% item.item_id %]" name="notforloan_[% item.biblio_count %]">
375
			[% FOREACH n IN notforloanloop %]
376
                          [% IF n.code == item.notforloan %]
377
                            <option value="[% n.code %]" selected="selected">[% n.description %]</option>
378
                          [% ELSE %]
379
                            <option value="[% n.code %]">[% n.description %]</option>
380
                          [% END %]
381
                        [% END %]
382
                        </select>
383
			</li>
374
                        <li><label for="uri_item_[% item.item_id %]">uri</label><input type="text" id="uri_item_[% item.item_id %]" name="uri_[% item.biblio_count %]" value="[% item.uri %]"></li>
384
                        <li><label for="uri_item_[% item.item_id %]">uri</label><input type="text" id="uri_item_[% item.item_id %]" name="uri_[% item.biblio_count %]" value="[% item.uri %]"></li>
375
                        <li><label for="copyno_item_[% item.item_id %]">copyno</label><input type="text" id="copyno_item_[% item.item_id %]" name="copyno_[% item.biblio_count %]" value="[% item.copyno %]"></li>
385
                        <li><label for="copyno_item_[% item.item_id %]">copyno</label><input type="text" id="copyno_item_[% item.item_id %]" name="copyno_[% item.biblio_count %]" value="[% item.copyno %]"></li>
376
                        <li><label for="budget_code_item_[% item.item_id %]">budget_code</label><select id="budget_code_item_[% item.item_id %]" name="budget_code_[% item.biblio_count %]">
386
                        <li><label for="budget_code_item_[% item.item_id %]">budget_code</label><select id="budget_code_item_[% item.item_id %]" name="budget_code_[% item.biblio_count %]">
377
- 

Return to bug 15503