Skip to content

Commit

Permalink
fixed bare array refrence
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Harrison committed Oct 29, 2012
1 parent fe3790b commit cf88603
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/MGRAST/lib/resources2/metadata.pm
Expand Up @@ -17,14 +17,14 @@ sub new {

# Add name / attributes
my %rights = $self->user ? map {$_, 1} @{$self->user->has_right_to(undef, 'view', 'project')} : ();
my $metadata = { 'hash', ['key', ['string', 'metadata label']],
['value', ['object', [ { 'type' => ['string', 'value type: text, int, float, select, ontology'],
my $metadata = [ 'hash', [['key', ['string', 'metadata label']],
['value', ['object', [ { 'type' => ['string', 'value type: text, int, float, select, ontology'],
'definition' => ['string', 'definition of label'],
'required' => ['boolean', 'is a required label'],
'mixs' => ['boolean', 'is a MIxS label'],
'aliases' => ['list', ['string', 'alternative name for label']]
}, 'information about metadata keyword' ]]]
};
}, 'information about metadata keyword' ]]] ]
];
$self->{name} = "metadata";
$self->{rights} = \%rights;
$self->{attributes} = { "template" => { "project" => [ 'hash', ['key', ['string', 'project type']],
Expand Down

0 comments on commit cf88603

Please sign in to comment.