[EP-tech] Re: How to make the field „keywords“ autocomplete?

Denis Pitzalis - STARC d.pitzalis at cyi.ac.cy
Tue Jun 12 17:25:03 BST 2012


Hi all,

I'm interested in this too because I would like to have
autocompletition for projects field and I have 2 questions:
the first one is about the compound. Are we sure we need to redefine
the field as compound?
the second one is about if it is possible to have a single cgi taking
a parameter in input for a given field, like in my example
autocomplete("project") or autocomplete("funders") and so on, as those
fields are repetitively added and they are all the same, we can then
avoid to have as many lookup/xxx as fields.

But again, my perl is worst than my english...

Best regards,
Denis

On Thu, Jan 19, 2012 at 3:10 PM, Matthäus Zylka <zylkam at uni-koeln.de> wrote:
> Hi Antje,
>
> I don't know if it has to be a compound field, but we implement it that way,
> because of the usability respective creating a new eprint item (e.g. user
> doesn't need to seperate the keywords with a comma).
>
> But this solution has one drawback: You'll have to patch your
> EPrints::Plugin::Import::(Bibtex|EndNote etc...) since the import tools
> don't except the keywords in a compound field type.
>
> Cheers,
> Matthaeus
>
> 2012/1/19 <Antje.vonSchmidt at dlr.de>
>>
>> Hello Matthaeus,
>>
>>
>>
>> it works great. Thank you very much. Maybe you can explain why this field
>> must be defined as an compound field.
>>
>>
>>
>> Regards
>>
>>
>>
>> Antje
>>
>>
>>
>> Von: eprints-tech-bounces at ecs.soton.ac.uk
>> [mailto:eprints-tech-bounces at ecs.soton.ac.uk] Im Auftrag von Matthäus Zylka
>>
>>
>> Gesendet: Mittwoch, 18. Januar 2012 17:29
>> An: eprints-tech at ecs.soton.ac.uk
>> Betreff: [EP-tech] Re: How to make the field „keywords“ autocomplete?
>>
>>
>>
>> Hi Antje,
>>
>> you have to define the keywords field as a compound field:
>>
>> {
>>             'name' => 'keywords',
>>             'type' => 'compound',
>>             'browse_link' => 'keywords',
>>             'multiple' => 1,
>>             'fields' => [
>>                           {
>>                             'sub_name' => 'name',
>>                             'type' => 'text',
>>                             'input_cols' => 25,
>>                           }
>>                         ],
>>             'input_boxes' => 4,
>> },
>>
>> In the attachement you will find our keyword file
>> (../eprints3/cgi/users/lookup/keyword)
>>
>> Cheers,
>> Matthaeus Zylka
>>
>> 2012/1/18 <Antje.vonSchmidt at dlr.de>
>>
>> Hello Eprints-List,
>>
>>
>>
>> I would like to make the field „keywords“ autocomplete.
>>
>> I have defined the „keywords“ field as multiple.
>>
>> I have used the file “../users/lookup/name” as an template to create the
>> file “../users/lookup/keywords” (please see the attachment) and inserted the
>> following in the file "../workflows/eprint/default.xml":
>>
>>
>>
>> <field ref="keywords" required="yes"
>> input_lookup_url="{$config{rel_cgipath}}/users/lookup/keywords"/>
>>
>>
>>
>> Unfortunately it doesn’t work. I see the lookup Icon, but no list of
>> Keywords.
>>
>>
>>
>> Thank you very much for your help.
>>
>>
>>
>> Regards Antje
>>
>>
>> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>> *** Archive: http://www.eprints.org/tech.php/
>> *** EPrints community wiki: http://wiki.eprints.org/
>>
>>
>>
>>
>> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>> *** Archive: http://www.eprints.org/tech.php/
>> *** EPrints community wiki: http://wiki.eprints.org/
>>
>
>
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: http://www.eprints.org/tech.php/
> *** EPrints community wiki: http://wiki.eprints.org/
>



-- 
----------------------
Denis Pitzalis
Information Technology Consultant

UNESCO - http://www.unesco.org
Paris, France - Tel: +33145681816

Business Strand Coordinator
3D-COFORM - http://www.3dcoform.eu

VAST 2011 - http://www.vast-conference.eu



More information about the Eprints-tech mailing list