Name

MV_OPTION_TABLE_MAP — applies column mapping to all options types

SYNOPSIS

{ }

DESCRIPTION

It is a quoted space-delimited list of fields in the form of "field1=field2" to map options into.

VARIABLE TYPE

Catalog variable

EXAMPLES

Example:

Variable MV_OPTION_TABLE_MAP o_label=title

NOTES

AVAILABILITY

MV_OPTION_TABLE_MAP is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Data.pm
Line 1388 (context shows lines 1378-1392 in remap_options():1373)

  my @del;
  my ($k, $v);
  while (($k, $v) = each %opt_map) {
    next unless defined $record->{$v};
    $rec{$k} = $record->{$v};
    push @del, $v;
  }
  delete @{$record}{@del};
  @{$record}{keys %rec} = (values %rec);
}
elsif($::Variable->{MV_OPTION_TABLE_MAP}) {
  $opt_remap = $::Variable->{MV_OPTION_TABLE_MAP};
  $opt_remap =~ s/^\s+//;
  $opt_remap =~ s/\s+$//;
  map { m{(.*?)=(.*)} and $opt_map{$2} = $1} split /[\0,\s]+/, $opt_remap;

Source: lib/Vend/Options/Old48.pm
Line 124 (context shows lines 114-128 in display_options_matrix():77)


if(not $opt->{display_type} ||= $record->{display_type}) {
  $opt->{display_type} = $record->{o_matrix} == 2 ? 'separate' : 'single';
}

$opt->{display_type} = lc $opt->{display_type};

my $map;
if(not $map = $opt->{options_map}) {
  $map = $opt->{options_map} = {};
  if(my $remap = $opt->{remap} || $::Variable->{MV_OPTION_TABLE_MAP}) {
    remap_option_record($record, $map, $remap);
  }
}


AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!