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 46-55 Acquisitions: Link Here
46
            - Upon receiving items, update their subfields if they were created when placing an order (e.g. o=5|a="foo bar").
46
            - Upon receiving items, update their subfields if they were created when placing an order (e.g. o=5|a="foo bar").
47
            - pref: AcqItemSetSubfieldsWhenReceived
47
            - pref: AcqItemSetSubfieldsWhenReceived
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 the
55
            - Use the
56
- 

Return to bug 7180