()
| 5388 | raw?.institution, |
| 5389 | raw?.user_info?.affiliation, |
| 5390 | raw?.user_info?.organization, |
| 5391 | raw?.metadata?.affiliation, |
| 5392 | raw?.metadata?.organization, |
| 5393 | userInfo?.affiliation |
| 5394 | ); |
| 5395 | } |
| 5396 | |
| 5397 | function profileInfoItem(label, value, variant = "") { |
| 5398 | const normalized = firstText(value) || ui().settings.profileFields.notRecorded; |
| 5399 | const emptyClass = normalized === ui().settings.profileFields.notRecorded ? " empty" : ""; |
| 5400 | const variantClass = variant ? ` ${variant}` : ""; |
| 5401 | return `<div class="profile-info-item${variantClass}${emptyClass}"><span>${escapeHtml(label)}</span><strong>${escapeHtml(normalized)}</strong></div>`; |
| 5402 | } |
| 5403 | |
| 5404 | function profileEditItem(label, id, value, variant = "wide", multiline = false, hint = "") { |
| 5405 | const variantClass = variant ? ` ${variant}` : ""; |
no test coverage detected