Name

MV_ERROR_STD_LABEL — (partly documented)

SYNOPSIS

{ }

DESCRIPTION

If defined, it overrides the default error message in the stdlabel field.

VARIABLE TYPE

Catalog variable

EXAMPLES

No examples are available at this time. We do consider this a problem and will try to supply some.

NOTES

AVAILABILITY

MV_ERROR_STD_LABEL is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: code/SystemTag/error.coretag
Line 136 (context shows lines 126-140 in tag_error():33)

  unless $opt->{std_label} || $text || $opt->{show_error};
$err = filter_value($opt->{filter}, $err)
  if $opt->{filter};
if($opt->{std_label}) {
  # store the error label in user's session for later
  # possible use in [error show_label=1] calls
  $Vend::Session->{errorlabels}{$var} = $opt->{std_label};
  if($text) {
    # do nothing
  }
  elsif(defined $::Variable->{MV_ERROR_STD_LABEL}) {
    $text = $::Variable->{MV_ERROR_STD_LABEL};
  }
  else {
    my $contrast = $::Variable->{CSS_CONTRAST} || 'mv_contrast';

Source: code/SystemTag/error.coretag
Line 152 (context shows lines 142-156 in tag_error():33)

<span class="$contrast">{LABEL} <small><i>(%s)</i></small></span>
[else]{REQUIRED <b>}{LABEL}{REQUIRED </b>}[/else]
EOF
  }
  $text =~ s/{LABEL}/$opt->{std_label}/g;
  $text =~ s/{REQUIRED\s+([^}]*)}/$opt->{required} ? $1 : ''/ge;
  $err =~ s/\s+$//;
}
$text = '' unless defined $text;
$text .= '%s' unless ($text =~ /\%s/ ||
                              length $::Variable->{MV_ERROR_STD_LABEL});

$text = pull_else($text, $found_error);
$text =~ s/\%s/$err/;
return $text;

AUTHORS

Interchange Development Group

SEE ALSO

error(7ic)

DocBook! Interchange!