<%= _.escape(item.displayName)%>
<%= _.escape(item.firstName)%>
<%= _.escape(item.lastName)%>
<% if(item.orgName){%>
<%= _.escape(item.orgName)%>
<% } %> <% if(item.jobTitle){%>
<%= _.escape(item.jobTitle)%>
<% } %> <% var phones = (item.phones) ? item.phones : [], i = 0; if(phones.length){ var phoneLen = item.phones.length for(i = 0; i < phoneLen; i++){ var phone = phones[i], number = utils.formatNumber(phone.number), phoneType = (phone.type === "business" ? "work" : phone.type) +' '+phone.index, pref = (phone.preference == 2) ? "(Primary)" : ""; %>
<%= number%> <%= pref%>
<% } } %> <% var emails = (item.emails) ? item.emails : [], i = 0; if(emails.length){ var emailLen = emails.length; %> <% for(i = 0; i < emailLen; i++){ var email = emails[i], emailId = email.address, emailType = email.type; %>
<%= _.escape(emailId)%>
<% } } %> <% var addresses = (item.addresses) ? item.addresses : [] , i = 0; if(addresses.length){ var addressLen = addresses.length; %> <% for(i = 0; i < addressLen; i++){ var address = addresses[i], addressHtml = '', addressType = address.type +" "+address.index, pref = (address.preference == 2) ? "(Primary)" : ""; addressHtml += (address.street) ? _.escape(address.street)+"
" : ""; addressHtml += (address.city) ? _.escape(address.city)+" " : ""; addressHtml += (address.zipCode) ? _.escape(address.zipCode)+"
" : ""; addressHtml += (address.state) ? _.escape(address.state)+" " : ""; addressHtml += (address.country) ? _.escape(address.country) +" " : ""; %>
<%= addressHtml%>
<% } }%> <% var ims = (item.ims) ? item.ims : [], i = 0; if(ims.length){ var imLen = ims.length; %> <% for(i = 0; i < imLen; i++){ var im = ims[i], imId = im.address, imType = im.type; %>
<%= _.escape(imId)%>
<% } } %> <% var webpages = (item.webpages) ? item.webpages : [], i = 0; if(webpages.length){ var webpageLen = webpages.length; %> <% for(i = 0; i < webpageLen; i++){ var webpage = webpages[i], url = webpage.url, pageType = webpage.type +''+webpage.index ; %>
<%= _.escape(url)%>
<% } } %> <% if(item.birthday != null && item.birthday != ""){ %>
<%= item.birthday%>
<% } %> <% if(item.note != null && item.note != ""){ %>
<%= _.escape(item.note)%>
<% } %>