Skip to content
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

Merged
merged 12 commits into from
Oct 23, 2024
Merged

Adding Schema.org tags for better discovery #688

merged 12 commits into from
Oct 23, 2024

Conversation

claudiawulee
Copy link
Contributor

Closes #353

@claudiawulee

This comment was marked as outdated.

Copy link
Contributor

@bess bess left a 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:

  1. Can we please get an automated test for this?
  2. 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.

app/views/layouts/blacklight/base.html.erb Outdated Show resolved Hide resolved
@claudiawulee claudiawulee marked this pull request as draft September 23, 2024 19:04
@claudiawulee claudiawulee marked this pull request as ready for review October 22, 2024 15:32
@claudiawulee
Copy link
Contributor Author

claudiawulee commented Oct 22, 2024

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
image

"identifier": "<%= @document.doi_url %>",
"name": "<%= @document.title %>",
"author": <%= authors_helper(@document.authors_ordered) %>,
"version": "1",
Copy link
Member

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>
Copy link
Member

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)

@bess bess changed the title Creating Schema Tags Adding Schema.org tags for better discovery Oct 23, 2024
@bess bess merged commit b7bf538 into main Oct 23, 2024
5 checks passed
@bess bess deleted the 353-schema branch October 23, 2024 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve discoverability with schema.org tags
4 participants