bcgov / TheOrgBook

A public repository of verifiable claims about organizations. A key component of the Verifiable Organization Network.
http://von.pathfinder.gov.bc.ca
Apache License 2.0
78 stars 66 forks source link

Fix Labels and Descriptions in OrgBook #829

Closed ianco closed 4 years ago

ianco commented 5 years ago

Labels and Descriptions are submitted by the issuing agent (configured in their schemas.yml file) however these are not showing up in OrgBook.

The infrastructure is there to use labels from the schemas.yml, but the UI isn't substituting them yet apart from category values. The main issue is that it needs the credential type ID every time in order to do the translation, which makes it harder to use in the context of custom HTML templates. Adding a custom pipe might help with that usage but it would still be something like {{'organization_id' | claimLabel: record.credential_type_id}}. Translating the labels in the generated attribute list on the (standard) credential detail form is probably a bit easier.