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

fix: meta: add missing HighWire authors #2935

Merged

Conversation

ptamarit
Copy link
Member

@ptamarit ptamarit commented Dec 9, 2024

❤️ Thank you for your contribution!

Description

Landing pages never have a <meta name="citation_author" content="..." /> because the way of extracting the creators is not valid.
This pull request fixes this.

Checklist

Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:

Frontend

Reminder

By using GitHub, you have already agreed to the GitHub’s Terms of Service including that:

  1. You license your contribution under the same terms as the current repository’s license.
  2. You agree that you have the right to license your contribution under the current repository’s license.

@@ -12,7 +12,7 @@

{%- set meta_title = record.metadata.title|striptags -%}
{%- set meta_description = record.metadata.description|striptags -%}
{%- set meta_authors = record.creators|map(attribute='name') -%}
{%- set meta_authors = record.metadata.creators|map(attribute='person_or_org')|map(attribute='name') -%}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we filter out organizations, or is it fine to include both people and organizations?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine, I couldn't find anything about specifically marking orgs vs. people and orgs like "Project X Collaboration" still sounds valid.

@ptamarit ptamarit force-pushed the fix-meta-highwire-authors-missing branch from 6d9689a to 323f0cb Compare December 9, 2024 11:14
@ptamarit ptamarit changed the title fix: meta: bring back HighWire authors fix: meta: add missing HighWire authors Dec 9, 2024
@slint slint merged commit 7dccbcc into inveniosoftware:master Dec 10, 2024
4 checks passed
@ptamarit ptamarit deleted the fix-meta-highwire-authors-missing branch December 10, 2024 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Released ✔️
Development

Successfully merging this pull request may close these issues.

2 participants