-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
Conversation
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
6473480
to
0f4d04b
Compare
c215f61
to
8aa1fda
Compare
0f4d04b
to
90e1f18
Compare
8aa1fda
to
2d3c7ac
Compare
90e1f18
to
66b41aa
Compare
2d3c7ac
to
5eddef5
Compare
66b41aa
to
15c5b28
Compare
5eddef5
to
9b54071
Compare
15c5b28
to
889873e
Compare
9b54071
to
71e9dba
Compare
9d26027
to
05ec5fa
Compare
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.
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})` |
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.
Are citationShort
and citationLonger
supposed to be the same?
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.
Ah good catch, thanks! I fixed this in a later Pr where I already have an intermediate variable that is useful for this.
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: