{** * templates/manager/people/userProfile.tpl * * Copyright (c) 2013-2015 Simon Fraser University Library * Copyright (c) 2003-2015 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Display user profile. * *} {strip} {assign var="pageTitle" value="manager.people"} {include file="common/header.tpl"} {/strip}

{$user->getFullName()|escape}

{translate key="user.profile"}

getId()}" class="action">{translate key="manager.people.editProfile"}

{translate key="user.username"} {$user->getUsername()|escape}
{translate key="user.salutation"} {$user->getSalutation()|escape|default:"—"}
{translate key="user.firstName"} {$user->getFirstName()|escape|default:"—"}
{translate key="user.middleName"} {$user->getMiddleName()|escape|default:"—"}
{translate key="user.lastName"} {$user->getLastName()|escape|default:"—"}
{translate key="user.affiliation"} {$user->getLocalizedAffiliation()|escape|nl2br|default:"—"}
{translate key="user.signature"} {$user->getLocalizedSignature()|escape|nl2br|default:"—"}
{translate key="user.initials"} {$user->getInitials()|escape|default:"—"}
{translate key="user.gender"} {if $user->getGender() == "M"}{translate key="user.masculine"} {elseif $user->getGender() == "F"}{translate key="user.feminine"} {elseif $user->getGender() == "O"}{translate key="user.other"} {else}— {/if}
{translate key="user.email"} {$user->getEmail()|escape} {assign var=emailString value=$user->getFullName()|concat:" <":$user->getEmail():">"} {url|assign:"url" page="user" op="email" to=$emailString|to_array redirectUrl=$currentUrl} {icon name="mail" url=$url}
{translate key="user.url"} {$user->getUrl()|escape}
{translate key="user.phone"} {$user->getPhone()|escape|default:"—"}
{translate key="user.fax"} {$user->getFax()|escape|default:"—"}
{translate key="user.interests"} {$userInterests|escape|default:"—"}
{translate key="user.gossip"} {$user->getLocalizedGossip()|escape|default:"—"}
{translate key="common.mailingAddress"} {$user->getMailingAddress()|strip_unsafe_html|nl2br|default:"—"}
{translate key="common.country"} {$country|escape|default:"—"}
{translate key="user.biography"} {$user->getLocalizedBiography()|strip_unsafe_html|nl2br|default:"—"}
{translate key="user.workingLanguages"} {foreach name=workingLanguages from=$user->getLocales() item=localeKey}{$localeNames.$localeKey|escape}{if !$smarty.foreach.workingLanguages.last}; {/if}{foreachelse}—{/foreach}
 
{translate key="user.dateRegistered"} {$user->getDateRegistered()|date_format:$datetimeFormatLong}
{translate key="user.dateLastLogin"} {$user->getDateLastLogin()|date_format:$datetimeFormatLong}

{translate key="manager.people.enrollment"}

{section name=role loop=$userRoles} {assign var=roleJournalId value=$userRoles[role]->getJournalId()} {if $isSiteAdmin && $lastJournalTitle != $journalTitles[$roleJournalId]} {if $notFirstRole} {/if} {assign var=lastJournalTitle value=$journalTitles[$roleJournalId]}

{$lastJournalTitle}

{if $notFirstRole}
{include file="common/footer.tpl"}