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

(-)a/acqui/addorderiso2709.pl (-1 / +8 lines)
Lines 490-496 sub add_matcher_list { Link Here
490
sub get_infos_syspref {
490
sub get_infos_syspref {
491
    my ($record, $field_list) = @_;
491
    my ($record, $field_list) = @_;
492
    my $syspref = C4::Context->preference('MarcFieldsToOrder');
492
    my $syspref = C4::Context->preference('MarcFieldsToOrder');
493
    my $yaml = YAML::Load($syspref);
493
    $syspref = "$syspref\n\n"; # YAML is anal on ending \n. Surplus does not hurt
494
    my $yaml = eval {
495
        YAML::Load($syspref);
496
    };
497
    if ( $@ ) {
498
        warn "Unable to parse MarcFieldsToOrder syspref : $@";
499
        return ();
500
    }
494
    my $r;
501
    my $r;
495
    for my $field_name ( @$field_list ) {
502
    for my $field_name ( @$field_list ) {
496
        my @fields = split /\|/, $yaml->{$field_name};
503
        my @fields = split /\|/, $yaml->{$field_name};
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref (-3 / +2 lines)
Lines 46-55 Acquisitions: Link Here
46
            - pref: AcqItemSetSubfieldsWhenReceived
46
            - pref: AcqItemSetSubfieldsWhenReceived
47
            - Set subfields for item when items are created when receiving (e.g. o=5|a="foo bar")
47
            - Set subfields for item when items are created when receiving (e.g. o=5|a="foo bar")
48
        -
48
        -
49
            - 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.
49
            - Set the mapping values for a new order line created from a marcrecord (staged file).
50
            - pref: MarcFieldsToOrder
50
            - pref: MarcFieldsToOrder
51
              type: textarea
51
              type: textarea
52
52
            - "For example:<br/>price: 947$a|947$c<br/>quantity: 969$h<br/>budget_code: 922$a<rb/>"
53
    Printing:
53
    Printing:
54
        -
54
        -
55
            - Use
55
            - Use
56
- 

Return to bug 7180