See the Mailing Lists Page for how to subscribe and unsubscribe.
eprints_tech messages
Please note: this page shows emails that have been sent to the eprints_tech mailing list. Some of these may be spam emails we have failed to filter.
Re: [EP-tech] make keywords field multiple rather than single longtext
From: "Henok Mikre" <henokmikre AT gmail.com>
Date: Fri, 18 Jul 2008 10:08:00 -0400
| Threading: | ↑ [EP-tech] make keywords field multiple rather than single longtext from henokmikre AT gmail.com • This Message → Re: [EP-tech] make keywords field multiple rather than single longtext from tdb01r AT ecs.soton.ac.uk |
Thanks Tim for that tip.
But now, importing XML works just fine, but importing a BibTeX file is
existing with an error:
"Error! Unhandled exception in Import::BibTeX: Can't use string ↵
("list, of,
keywords") as an ARRAY ref while "strict refs" in use at
/var/lib/eprints3/perl_lib/EPrints/Database.pm line 1481."
/var/lib/eprints/perl_lib/EPrints/Database.pm (line 1481):
my $position=0;
foreach my $value ( AT $fieldvalue)
{
my AT values = (
$keyvalue,
$position++,
$multifield->sql_row_from_value( $self->{session}, $value )
);
push AT rows, \ AT values;
}
On Thu, Jul 17, 2008 at 10:34 AM, Tim Brody <tdb01r AT ecs.soton.ac.uk> ↵
wrote:
> ***
> ↵
http://www.eprints.org/tech.php/id/%3C487F5862.3050300%40ecs.soton.ac.uk%3E
> *** EPrints community wiki - http://wiki.eprints.org/
>
>
> Henok Mikre wrote:
>
>> Hi,
>>
>> I would like to make the "keywords" field contain multiple ↵
items. This
>> would help me organize my XML file a little better. I changed the ↵
field's
>> definitions in eprint_fields.pl as follows:
>>
>> {
>> 'name' => 'keywords',
>> 'type' => 'text',
>> 'multiple' => 1,
>> 'input_boxes' => 10,
>> },
>>
>> I looked for the table that contains keywords but could not find one. ↵
I
>> could just create a table called eprint_keywords with similar ↵
attributes to
>> "funders," but I am not sure if this is the best way.
>>
> Singular values are stored in the "eprint" table. If you're ↵
using 3.1 you
> can change your configuration and then do this:
> ./bin/epadmin update_database_structure [repoid]
>
> And the missing table + ordervalues columns will be added.
>
> (It will leave the eprint column as it is)
>
> All the best,
> Tim.
>
>
ATTACHMENT: message.html!
[index] [prev] [next] [options] [help]




