-
Notifications
You must be signed in to change notification settings - Fork 0
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
Adding Schema.org tags for better discovery #688
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
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.
This looks great! I have a couple of requests, though:
- Can we please get an automated test for this?
- I'm posting this to the digital_open_data_and_research channel to request feedback on some of the field values, particularly "Organization." I would think we want that to be "Princeton University", but let's ask.
Fixed encoding of new lines in author helper Co-authored-by: Claudia Lee <[email protected]>
Hi @bess! Added automated tests and changed the organization to "Princeton University" This is what the schema tag looks like -- Let me know if there are any other changes you would like to see |
"identifier": "<%= @document.doi_url %>", | ||
"name": "<%= @document.title %>", | ||
"author": <%= authors_helper(@document.authors_ordered) %>, | ||
"version": "1", |
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.
Hard-coded to 1 for, but will get a real value once this has been implemented: #694
"name": "Princeton University" | ||
} | ||
} | ||
</script> |
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.
There is also an additional ticket to add dates once we index them (see #695)
Closes #353