NIHVIVO-2584: Added core:primaryEmail to individual foaf person template
This commit is contained in:
parent
353b0f4a58
commit
55c2f8f213
2 changed files with 20 additions and 7 deletions
|
@ -2,12 +2,28 @@
|
|||
|
||||
<#-- Contact info on individual profile page -->
|
||||
|
||||
<#-- Email -->
|
||||
<#-- Primary Email -->
|
||||
<#assign primaryEmail = propertyGroups.getPropertyAndRemoveFromList("${core}primaryEmail")!>
|
||||
<#if primaryEmail?has_content> <#-- true when the property is in the list, even if not populated (when editing) -->
|
||||
<@p.addLinkWithLabel primaryEmail editable />
|
||||
<#if primaryEmail.statements?has_content> <#-- if there are any statements -->
|
||||
<ul id="primary-email" class="individual-emails" role="list">
|
||||
<#list primaryEmail.statements as statement>
|
||||
<li role="listitem">
|
||||
<img class ="icon-email middle" src="${urls.images}/individual/emailIcon.gif" alt="email icon" /><a class="email" href="mailto:${statement.value}">${statement.value}</a>
|
||||
<@p.editingLinks "${primaryEmail.localName}" statement editable />
|
||||
</li>
|
||||
</#list>
|
||||
</ul>
|
||||
</#if>
|
||||
</#if>
|
||||
|
||||
<#-- Additional Emails -->
|
||||
<#assign email = propertyGroups.getPropertyAndRemoveFromList("${core}email")!>
|
||||
<#if email?has_content> <#-- true when the property is in the list, even if not populated (when editing) -->
|
||||
<@p.addLinkWithLabel email editable />
|
||||
<#if email.statements?has_content> <#-- if there are any statements -->
|
||||
<ul id="individual-email" role="list">
|
||||
<ul id="additional-emails" class="individual-emails" role="list">
|
||||
<#list email.statements as statement>
|
||||
<li role="listitem">
|
||||
<img class ="icon-email middle" src="${urls.images}/individual/emailIcon.gif" alt="email icon" /><a class="email" href="mailto:${statement.value}">${statement.value}</a>
|
||||
|
|
|
@ -1230,17 +1230,14 @@ ul#individual-tools li a {
|
|||
ul.individual-urls {
|
||||
list-style: url(../../../images/individual/arrow-grey.gif);
|
||||
}
|
||||
ul#individual-email,
|
||||
|
||||
ul#individual-phone {
|
||||
list-style-type: none;
|
||||
}
|
||||
ul#individual-email li,
|
||||
ul#individual-phone li {
|
||||
line-height: 1.6em;
|
||||
}
|
||||
ul#individual-email li:last-child {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
ul.individual-urls li {
|
||||
font-size: .875em;
|
||||
line-height: 1.6em;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue