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

(-)a/acqui/addorderiso2709.pl (-1 / +8 lines)
Lines 492-498 sub add_matcher_list { Link Here
492
sub get_infos_syspref {
492
sub get_infos_syspref {
493
    my ($record, $field_list) = @_;
493
    my ($record, $field_list) = @_;
494
    my $syspref = C4::Context->preference('MarcFieldsToOrder');
494
    my $syspref = C4::Context->preference('MarcFieldsToOrder');
495
    my $yaml = YAML::Load($syspref);
495
    $syspref = "$syspref\n\n"; # YAML is anal on ending \n. Surplus does not hurt
496
    my $yaml = eval {
497
        YAML::Load($syspref);
498
    };
499
    if ( $@ ) {
500
        warn "Unable to parse MarcFieldsToOrder syspref : $@";
501
        return ();
502
    }
496
    my $r;
503
    my $r;
497
    for my $field_name ( @$field_list ) {
504
    for my $field_name ( @$field_list ) {
498
        my @fields = split /\|/, $yaml->{$field_name};
505
        my @fields = split /\|/, $yaml->{$field_name};
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref (-3 / +2 lines)
Lines 43-52 Acquisitions: Link Here
43
                  no: "Do not warn"
43
                  no: "Do not warn"
44
            - when the librarian tries to create an invoice with a duplicate number.
44
            - when the librarian tries to create an invoice with a duplicate number.
45
        -
45
        -
46
            - Set the mapping values for a new order line created from a marcrecord (staged file). In a YAML format, so you have to finished with an empty line.
46
            - Set the mapping values for a new order line created from a marcrecord (staged file).
47
            - pref: MarcFieldsToOrder
47
            - pref: MarcFieldsToOrder
48
              type: textarea
48
              type: textarea
49
49
            - "For example:<br/>price: 947$a|947$c<br/>quantity: 969$h<br/>budget_code: 922$a<rb/>"
50
    Printing:
50
    Printing:
51
        -
51
        -
52
            - Use
52
            - Use
53
- 

Return to bug 7180