EPrints Technical Mailing List Archive
Message: #04624
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] changing default user type
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] changing default user type
- From: Matthew Brady <Matthew.Brady@usq.edu.au>
- Date: Wed, 2 Sep 2015 03:14:00 +0000
Hi All, I thought this would be a simple experiment… change the default value for a user record when it gets created from ‘user’ to ‘editor’. Altering the local file …/archive/xxxxx/cfg/cfg.d/user_fields_default.pl file to include the line
$data->{type}
= "editor"; Doesn’t appear to work as expected… Even altering a default (that I didn’t know existed, until I tried to figure out what was going wrong!) Within …/perl_lib/EPrints/DataObj/User.pm, there is a sub ‘get_system_field_info’, that contains a default setting as well… {
name=>"usertype",
type=>"namedset",
required=>1,
set_name=>"user",
input_style=>"medium",
default_value=>"user"
}, Anyone got any ideas ? Cheers Matt _____________________________________________________________ This email (including any attached files) is confidential and is for the intended recipient(s) only. If you received this email by mistake, please, as a courtesy, tell the sender, then delete this email. The views and opinions are the originator's and do not necessarily reflect those of the University of Southern Queensland. Although all reasonable precautions were taken to ensure that this email contained no viruses at the time it was sent we accept no liability for any losses arising from its receipt. The University of Southern Queensland is a registered provider of education with the Australian Government. (CRICOS Institution Code QLD 00244B / NSW 02225M, TEQSA PRV12081 ) |
- Follow-Ups:
- [EP-tech] Re: changing default user type
- From: "Field A.N." <af05v@ecs.soton.ac.uk>
- [EP-tech] Re: changing default user type
- Prev by Date: [EP-tech] Re: Relevance ranking for Simple and Advanced Search
- Next by Date: [EP-tech] Re: Relevance ranking for Simple and Advanced Search
- Previous by thread: [EP-tech] Retirement from SHERPA Services
- Next by thread: [EP-tech] Re: changing default user type
- Index(es):