MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / addCustomSource

Function addCustomSource

deployments/desktop/static/desktop.js:5390–5402  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}` : "";

Callers 1

bindEventsFunction · 0.85

Calls 4

showSettingsMessageFunction · 0.85
uiFunction · 0.85
$Function · 0.70
escapeHtmlFunction · 0.70

Tested by

no test coverage detected