Add read-only field below the Member display_name to CRM/Member/Form/MembershipView when viewing a relationship that is "owned" by another contact (e.g. owner_membership_id has a value).
Field label: "By Relationship"
Field value: $relationship $ownerDisplayName
Member: Dave Greenberg
By Relationship: Employee of CiviCRM.org
— Original Post from Chris Mott —
When a membership exists for a contact that is the result of a relationship (e.g. an individual shows a "Business" membership because the organization that they are an "employee of" has a "Business" membership) then there is no information presented about the source of the membership. For example, if an individual shows a Business membership, then hitting 'view' button shows a page with membership details but it doesn't show the organization that this membership is inherited from. A user would have to manually search through all the relationships to find a linked organization that matches.
Ideally the membership 'view' page would have an extra line indicated the source(s) of an inherited relationship membership. (e.g. Membership relationship: Employee of Companry A)