-
Notifications
You must be signed in to change notification settings - Fork 25
Add FAIR signposting #860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feature/pbs-25-24
Are you sure you want to change the base?
Add FAIR signposting #860
Conversation
|
Thank you so much for this reference PR! I'll open some new PRs based on these changes as part of the FAIR Signposting work. |
futa-ikeda
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leaving some notes for myself for later.
| givenName: contributor.givenName, | ||
| familyName: contributor.familyName, | ||
| })), | ||
| signpostingLinks: this.signpostingService.mockSignpostingLinks, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: Would like to avoid having to call both signpostingService.addSignpostingHeaders() and adding signpostingLinks to the metaTags object. I think my preference going forward would be to remove the signpostingLinks from the metaTags object (since this is going to be a <link> tag) and just have the logic for adding a <link> to the head tag done within the signpostingService.addSignpostingHeaders() function.
| twitterCreator?: DataContent; | ||
| contributors?: DataContent; | ||
| keywords?: DataContent; | ||
| signpostingLinks?: SignpostingLink[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: Similar to the above, I don't think the signpostingLinks needs to be in this metaTagsData interface
| }, | ||
| ]; | ||
|
|
||
| addSignpostingHeaders(): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: Should take some guid value as a parameter and build the href value based on that guid. Will likely need an additional argument to indicate if we want the URL for the metadata linkset
Summary of Changes