Tech List

[index] [prev] [next] [options] [help]
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.

[EP-tech] limiting possible values of a field to those in lookup table

From: David Lewis <david.lewis AT utc.fr>
Date: Thu, 08 May 2008 20:05:52 +0200


Threading:      • This Message
             Re: [EP-tech] limiting possible values of a field to those in lookup table from tdb01r AT ecs.soton.ac.uk
             Re: [EP-tech] limiting possible values of a field to those in lookup table from david.lewis AT utc.fr

*** http://www.eprints.org/tech.php/id/%3C48234100.60703%40utc.fr%3E
*** EPrints community wiki - http://wiki.eprints.org/

Hi,

I'm wondering what's the best way to implement a "constrained 
keywords" 
field in EP3.0

I'm autocompleting on user input as follows:

<field ref="utc_keywords_rameau" 
input_lookup_url="{$config{perl_url}}/users/lookup/simple_sql" 
input_lookup_params="table=utc_keywords_rameau&amp;mode=prefix"/>

However, I want to prevent users from entering anything OTHER than 
values proposed in the lookup table .. i.e. force them to choose from a 
finite list of accepted values.

Anybody else been faced with this problem and found a neat way around it?

Thanks for ideas,
David


[index] [prev] [next] [options] [help]