getPublisherInfo

Function

Calculates the Publisher display info for the given item. Utilizes this fallback pattern:

  1. Formal Item Metadata > Resource > Citation > Contact
  2. Formal Item Metadata > Resource > Contact
  3. Item’s Owner and Org Name
  4. Undefined (Item Owner / Org are private and we can't access additional info)

Calculates the Publisher display info for the given item. Utilizes this fallback pattern:

  1. Formal Item Metadata > Resource > Citation > Contact
  2. Formal Item Metadata > Resource > Contact
  3. Item’s Owner and Org Name
  4. Undefined (Item Owner / Org are private and we can't access additional info)
  • getPublisherInfo(item: IItem, metadata: any, org: Partial<IPortal>, ownerUser: IUser) : any

Parameters

Parameter Type Default Notes
item Required IItem
metadata Optional any
org Optional Partial<IPortal>

portal info of the item's organization

ownerUser Optional IUser

the item owner's hydrated user

Returns

any

Function defined in common/src/content/_internal/internalContentUtils.ts:679