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

Iqss/7349 2 improve related pub citation entry #9086

Conversation

qqmyers
Copy link
Member

@qqmyers qqmyers commented Oct 19, 2022

What this PR does / why we need it: Per issue #7349, Google does not like aspects of how we send related publication info. Specifically, the citation key (where we record related pubs) has to be text or a CreativeWork object. For a CreativeWork object, Google expects a name or URL, and we weren't sending either. This PR adds a 'url' if an identifier URL is provided and moves our 'text' entry (the Citation child field) to 'name' which addresses the case where a URL isn't provided. (Nominally the Citation field is neither the name of the CreativeWork or its text contents, but there doesn't appear to be a better option and the Citation should at least include the title along with author/publication info.

Which issue(s) this PR closes:

Closes #7349

Special notes for your reviewer: This is one of ~4 PRs to close the issue

FWIW: For authors, we've added methods that try to provide a URL form for most/all identifier types allowed - something similar could probably be done here to also capture cases where someone has entered type 'doi' and the numeric identifier and the id itself but no url. Currently entries in those fields are not used in creating the schema.org output.

We are also currently sending the URL as an '@id' and as 'identifier', so with the change here we now send the url 3 times (adding a 'url' key). The other two could still be useful so I've left them for now. Conversely, I've removed the 'text' key given that it is not really a valid use (our content doesn't match the definition). Both just judgement calls.

Suggestions on how to test this: Just verify the unit tests run. Can confirm manually by adding a related publication with a Citation and or URL fields and verifying that they show up as the 'url' and 'name'.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?: included

Additional documentation:

@coveralls
Copy link

coveralls commented Oct 19, 2022

Coverage Status

Coverage: 20.001% (+0.001%) from 20.0% when pulling 5d168e8 on QualitativeDataRepository:IQSS/7349-2_improve_related_pub_citation_entry into ecc23c0 on IQSS:develop.

@qqmyers qqmyers added the GDCC: QDR of interest to QDR label Oct 27, 2022
@mreekie mreekie added the bk2211 label Nov 1, 2022
@qqmyers qqmyers added the Size: 3 A percentage of a sprint. 2.1 hours. label Dec 14, 2022
@mreekie
Copy link

mreekie commented Jan 10, 2023

Prio meeting with Stefano.

  • Moved from External Commitments Backlog to ordered backlog

@mreekie mreekie removed the bk2211 label Jan 11, 2023
@mreekie mreekie added this to the 5.13 milestone Jan 25, 2023
@kcondon kcondon assigned kcondon and unassigned kcondon Jan 30, 2023
@kcondon kcondon self-assigned this Jan 30, 2023
@kcondon kcondon merged commit dea8eb5 into IQSS:develop Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GDCC: QDR of interest to QDR Size: 3 A percentage of a sprint. 2.1 hours.
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Improve/update Schema.org JSON-LD export
5 participants