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] Adding items to user data

From: Ian Stuart <Ian.Stuart AT ed.ac.uk>
Date: Mon, 26 Feb 2007 16:11:02 +0000


Threading:      • This Message
             Re: [EP-tech] Adding items to user data from tmb AT ecs.soton.ac.uk
             Antw: Re: [EP-tech] Adding items to user data from Helge.Knuettel AT bibliothek.uni-regensburg.de

*** EPrints technical list - http://software.eprints.org/tech.php/
*** EPrints community wiki - http://wiki.eprints.org/

I want to add a couple of fields to the data held about a user.

I'm starting off making sure it works with one, before I add in the second.

So, what have I got so far?

Well, I've added the element into the database 
~/archives/deposit/cfg/cfg.d/user_fields.pl
           {
             'name' => 'foo',
             'type' => 'text',
           },
(and recreated the tables, and added a user or two, and regenerated the 
static stuff from the ~/archives/cfg/... files, etc )

and into phrases file ~/archives/deposit/cfg/lang/en/phrases/user_fields.xml
     <epp:phrase id="user_fieldname_foo">Fernickity 
Obstreperous 
Ordering</epp:phrase>
     <epp:phrase id="user_fieldhelp_foo">This is an indicator 
of 
oronory-ness (or maybe its just a cover for something much more 
SINISTER!!!! MWwahahahahaha!</epp:phrase>
(and regenerated views and static pages...)

.... but when I look at the page to edit my user profile, I see nothing 
relating to foo.
Wazzup?

.... oh, and for future reference: is there a way of displaying 
something that is uneditable (ie, straight text - without an input box)? 
or, even better, selectable between options a-la 
"user_fieldopt_foo_bar", "user_fieldopt_foo_baz", & 
"user_fieldopt_foo_bang"?

thanks...
-- 

Ian Stuart.
Bibliographics and Multimedia Service Delivery team,
EDINA,
The University of Edinburgh.

http://edina.ac.uk/


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