Skip to content
Permalink
Browse files
Use input_name_cols to determine name col length
Fixes #92.
  • Loading branch information
Tim Brody committed Jun 20, 2013
1 parent 4238e89 commit 73fe95bc51a0e1a0ffb59ed54b88ecdf10faeae5
Showing with 19 additions and 0 deletions.
  1. +19 −0 perl_lib/EPrints/MetaField/Name.pm
@@ -29,6 +29,25 @@ use EPrints::MetaField::Multipart;

use strict;

sub new
{
my ($class, %params) = @_;

my $self = $class->SUPER::new(%params);

# override field input_cols
if (defined(my $cols = $self->property('input_name_cols')))
{
foreach my $name (keys %$cols)
{
my $field = $self->{fields_index}->{$name};
$field->set_property('input_cols', $cols->{$name});
}
}

return $self;
}

# index the family part only...
sub get_sql_index
{

0 comments on commit 73fe95b

Please sign in to comment.