Name

UI_META_TABLE — name of the metadata table

SYNOPSIS

{ database name }

DESCRIPTION

Allows you to specify an alternate table where metadata is kept.

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

UI_META_TABLE is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: code/UI_Tag/row_edit.coretag
Line 22 (context shows lines 12-26)

UserTag row-edit addAttr
UserTag row-edit Interpolate 1
UserTag row-edit Version     $Revision: 1.12 $
UserTag row-edit Routine     <<EOR
sub {
my ($key,$table,$size,$columns,$opt) = @_;
use vars qw/$CGI $Values $Variable/;
#::logDebug("row_edit options=" . ::uneval($opt));
$table = $table || $CGI::values{mv_data_table} || return "BLANK DB";
my $db = ::database_exists_ref($table);
my $mtab = $::Variable->{UI_META_TABLE} || 'mv_metadata';
my $mdb = ::database_exists_ref($mtab);
$opt->{view} ||= $CGI->{ui_meta_view};

my $view = Vend::Table::Editor::meta_record($table, $opt->{view}) || {};

Source: lib/Vend/Table/Editor.pm
Line 665 (context shows lines 655-669 in meta_record():657)

}

sub meta_record {
my ($item, $view, $mdb, $extended_only, $overlay) = @_;

#::logDebug("meta_record: item=$item view=$view mdb=$mdb");
return undef unless $item;

my $mtable;
if(! ref ($mdb)) {
  $mtable = $mdb || $::Variable->{UI_META_TABLE} || 'mv_metadata';
#::logDebug("meta_record mtable=$mtable");
  $mdb = database_exists_ref($mtable)
    or return undef;
}

Source: lib/Vend/Table/Editor.pm
Line 763 (context shows lines 753-767 in display():726)

$table and $column or $opt->{meta}
  or last METALOOK;

## We get a metarecord directly, though why it would be here
## and not in options I don't know
if($opt->{meta} and ref($opt->{meta}) eq 'HASH') {
  $record = $opt->{meta};
  last METALOOK;
}

$mtab = $opt->{meta_table} || $::Variable->{UI_META_TABLE} || 'mv_metadata'
  or last METALOOK;
my $meta = Vend::Data::database_exists_ref($mtab)
  or do {
    ::logError("non-existent meta table: %s", $mtab);

Source: dist/lib/UI/ContentEditor.pm
Line 1732 (context shows lines 1722-1736 in make_control_editor():1696)

  action => 'return',
  defaults => 1,
  force_defaults => 1,
  form_extra => $extra,
  href   => $href,
  js_changed => 'changed',
  nocancel => 1,
  noexport => 1,
  no_meta => 1,
  show_reset => 1,
  table => $::Variable->{UI_META_TABLE} || 'mv_metadata',
  view => 'ui_component',
  widget => $widopt,
  hidden => $hidden,
);

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!