Prior to LON-CAPA 2.11.0 the possible institutional types in a domain were defined by inst_usertypes(). Examples of institutional types might be: Faculty, Adjunct, Staff, Student etc. In addition to any types defined in inst_usertypes(), a type "other" will also be available for assignment to users who do not fall in any of the recognized categories of user. In the absence of any defined user categories, the type "other" applies to all users from a domain.
Starting with LON-CAPA 2.11.0 use of the inst_usertypes() subroutine is deprecated. The domain configuration web GUI accessible to Domain Coordinators is now used to manage institutional types. If you have previously customized the inst_usertypes() routine, then values set there will be used when displaying the "Institutional user types" section in the domain config screen for: Default authentication, language, timezone, portal and types.
Once a Domain Coordinator has visited that screen and saved the settings, configuration thereafter will be via the web GUI of values stored in the domain's configuration.db file on the primary library server in the domain, and values in inst_usertypes() will no longer be consulted. However, if you have created other custom routines in localenroll.pm which call inst_usertypes() internally, you will likely want to continue to maintain it.
inst_usertypes
At MSU there are six different categories of users.
sub inst_usertypes {my ($dom,$usertypes,$order) = @_;}my $outcome = 'ok';
%{$usertypes} = (
Faculty => 'Faculty/Academic Staff',);Staff => 'Support Staff',
Student => 'Student',
Assistant => 'Assistant',
StaffAff => 'Affiliate',
StuAff => 'Student Affiliate'
@{$order}=('Faculty','Staff','Student','Assistant','StaffAff','StuAff');
return $outcome;