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

Data pages: improve citations #2806

Merged
merged 7 commits into from
Oct 24, 2023
Merged

Conversation

danyx23
Copy link
Contributor

@danyx23 danyx23 commented Oct 19, 2023

This PR overhauls how we do citations on datapages. Max and Joe came up with a new way for how to cite data pages themselves (the last thing in the citation section) that needs the citation information of the related topic page.

There are also various minor improvements to the display of sources/origins.

This is related to #2755 and fixes these points:

  • Change the wording of "processed" or "adapated" by under the chart to "with minor/major processing by Our World In Data"
  • Switch to new data page citation format described by Max and Joe

@danyx23 danyx23 force-pushed the 10-18-data-page-better-slugify branch from 6473480 to 0f4d04b Compare October 20, 2023 13:49
@danyx23 danyx23 force-pushed the 10-19-data-page-better-citations branch from c215f61 to 8aa1fda Compare October 20, 2023 13:49
@danyx23 danyx23 force-pushed the 10-18-data-page-better-slugify branch from 0f4d04b to 90e1f18 Compare October 23, 2023 08:08
@danyx23 danyx23 force-pushed the 10-19-data-page-better-citations branch from 8aa1fda to 2d3c7ac Compare October 23, 2023 08:08
@danyx23 danyx23 force-pushed the 10-18-data-page-better-slugify branch from 90e1f18 to 66b41aa Compare October 23, 2023 08:12
@danyx23 danyx23 force-pushed the 10-19-data-page-better-citations branch from 2d3c7ac to 5eddef5 Compare October 23, 2023 08:12
@danyx23 danyx23 force-pushed the 10-18-data-page-better-slugify branch from 66b41aa to 15c5b28 Compare October 23, 2023 08:35
@danyx23 danyx23 force-pushed the 10-19-data-page-better-citations branch from 5eddef5 to 9b54071 Compare October 23, 2023 08:35
@danyx23 danyx23 force-pushed the 10-18-data-page-better-slugify branch from 15c5b28 to 889873e Compare October 23, 2023 08:47
@danyx23 danyx23 force-pushed the 10-19-data-page-better-citations branch from 9b54071 to 71e9dba Compare October 23, 2023 08:47
@danyx23 danyx23 changed the title data-page-better-citations Data pages: improve citations Oct 24, 2023
@danyx23 danyx23 force-pushed the 10-19-data-page-better-citations branch from 9d26027 to 05ec5fa Compare October 24, 2023 08:52
@danyx23 danyx23 marked this pull request as ready for review October 24, 2023 09:05
Copy link
Member

@sophiamersmann sophiamersmann left a comment

Choose a reason for hiding this comment

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

Looks good to me! (though I didn't fully grasp what's grabbed from the topic page)

datapageData.origins[0].urlDownload
const citationLong = `${citationShort}. ${datapageData.title}. ${originsLong}, ${processedAdapted} by Our World In Data. Retrieved ${dateAccessed} from ${urlAccessed}`
const citationShort = `${attributionPotentiallyShortened} – with ${processedAdapted} by Our World In Data (${yearOfUpdate})`
const citationLonger = `${attributionPotentiallyShortened} – with ${processedAdapted} by Our World In Data (${yearOfUpdate})`
Copy link
Member

Choose a reason for hiding this comment

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

Are citationShort and citationLonger supposed to be the same?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah good catch, thanks! I fixed this in a later Pr where I already have an intermediate variable that is useful for this.

Base automatically changed from 10-18-data-page-better-slugify to master October 24, 2023 16:30
@danyx23 danyx23 merged commit 4bbc2fd into master Oct 24, 2023
8 of 10 checks passed
@danyx23 danyx23 deleted the 10-19-data-page-better-citations branch October 24, 2023 16:30
Copy link
Contributor Author

danyx23 commented Oct 24, 2023

Merge activity

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.

2 participants