Skip to content

Commit 9750c8f

Browse files
Fix broken links from issue #714 (#715)
* Fix broken links from issue #714 URL replacements: - casrai.org/credit/ → credit.niso.org/ (CRediT moved to NISO) - replicationmarkets.com → replicationmarkets.org (.org not .com) - eudatasharing.eu/what-data-sharing → futurium.ec.europa.eu equivalent - coproductioncollective.co.uk old path → new path - esrc.ukri.org impact toolkit → ukri.org new URL - book.fosteropenscience.eu → open-science-training-handbook.gitbook.io/book - icpsr.umich.edu old codebook URL → new URL - creativecommons.org/about/get-involved → /mission/get-involved - library.stanford.edu DMP page → guides.library.stanford.edu/dmps - lexico.com/definition/bias → oxfordlearnersdictionaries.com equivalent - i4replication.org/discussion_paper.html → /discussion-papers/ - campbellcollaboration.org escalc URLs → /calculator/ - openaire.eu/item → /component/zoo/item (CHIST-ERA course) - wiley.com registered reports URL → updated URL - mastodon.social/@forrtproject@FORRT (correct handle) - Remove dead QAA and UNESCO publication URLs (no replacement) - Remove broken http://v/ link in reversals (placeholder URL) - Replace broken soscisurvey.de/replicate/ with forrt.org/replication-hub/fred/ Fix malformed %29 URLs in glossary definitions: - Convert bare URLs inside parentheses to markdown link format in Turkish, German, and Arabic glossary files to prevent Hugo's auto-linker from including ) as part of the URL Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Add bare-URL-in-parens fix to glossary generation script Hugo's auto-linker treats (https://url.com) as a link including the closing ), producing broken %29 URLs. Add fix_bare_urls_in_parens() which converts (url) → ([url](url)) during generation, so this class of bug can't recur even if the source spreadsheet has the same pattern. The apa_lookup.json URL replacements (casrai→credit.niso.org, etc.) already persist through regeneration since that file is read by the script directly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8181c4f commit 9750c8f

43 files changed

Lines changed: 134 additions & 113 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

content/clusters/cluster5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ There are 6 sub-clusters which aim to further parse the learning and teaching pr
156156

157157
* COS: [10 Tips for Making a Great Preregistration](https://cos.io/blog/10-preregistration-tips/)
158158

159-
* COS: [8 Answers About Registered Reports and Research Preregistration](https://www.wiley.com/network/researchers/being-a-peer-reviewer/8-answers-about-registered-reports-research-preregistration-and-why-both-are-important)
159+
* COS: [8 Answers About Registered Reports and Research Preregistration](https://www.wiley.com/network/researchers/being-a-peer-reviewer/registered-reports-good-for-both-science-and-authors)
160160

161161
<br>
162162
</div>

content/glossary/_create_glossaries.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,26 @@ def process_references(references_text, apa_lookup, missing_refs_log=None):
8585

8686
return list(dict.fromkeys(formatted_refs))
8787

88+
def fix_bare_urls_in_parens(text):
89+
"""Convert bare URLs inside parentheses to markdown links.
90+
91+
Hugo's auto-linker treats (https://url.com) as a link to https://url.com)
92+
— including the closing paren — which generates a broken %29 URL.
93+
Wrapping the URL as [url](url) makes Hugo recognise it as a markdown
94+
link so the ) is treated as closing punctuation, not part of the URL.
95+
96+
Skips URLs that are already inside a markdown link ([text](url)).
97+
"""
98+
# Match ( optional-prefix https://url ) but only when ( is NOT preceded by ]
99+
# (which would mean it's already the URL part of [text](url))
100+
def _replace(m):
101+
prefix = m.group(1) or ''
102+
url = m.group(2)
103+
return f'({prefix}[{url}]({url}))'
104+
105+
return re.sub(r'(?<!\])\(([^()]*?)(https?://[^\s)]+)\)', _replace, text)
106+
107+
88108
def safe_get(row, column, default=""):
89109
"""Safely get a value from a pandas Series row"""
90110
try:
@@ -171,6 +191,7 @@ def clean_filename(title, max_length=200):
171191
definition = safe_get(row, f"{language_code}_definition" if language_code == "EN" else f"{language_code}_def")
172192
if not definition:
173193
continue
194+
definition = fix_bare_urls_in_parens(definition)
174195

175196
entry = {
176197
"type": "glossary",

content/glossary/_glossaries.json

Lines changed: 39 additions & 39 deletions
Large diffs are not rendered by default.

content/glossary/_index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ There are two outputs for this project. First, the entire glossary will appear o
132132

133133
5. Contributions and Authorship
134134

135-
In this project we will use the CREDIT taxonomy ([https://casrai.org/credit/](https://casrai.org/credit/)) in this prepared [contributors spreadsheet](https://docs.google.com/spreadsheets/d/1zvgAHWfTq6cbj3wMAr46zFU0w5JdV6796sM8FsO13y0). Please add your details (including ORCID) and contributions as you make them. This will facilitate the development of this project, allow us to easily communicate with all contributors, and ensure that all contributions are recognized.
135+
In this project we will use the CREDIT taxonomy ([https://credit.niso.org/](https://credit.niso.org/)) in this prepared [contributors spreadsheet](https://docs.google.com/spreadsheets/d/1zvgAHWfTq6cbj3wMAr46zFU0w5JdV6796sM8FsO13y0). Please add your details (including ORCID) and contributions as you make them. This will facilitate the development of this project, allow us to easily communicate with all contributors, and ensure that all contributions are recognized.
136136

137137
Every few days, one of the team will review this document to finalize definitions that have had sufficient input.
138138

@@ -164,11 +164,11 @@ We invite several specific contributions: _original draft preparation_, and _rev
164164

165165
**Term: CRediT**
166166

167-
**Definition:** The Contributor Roles Taxonomy (CRediT; https://casrai.org/credit/) is a high-level taxonomy, including 14 roles, that can be used to indicate the roles typically adopted by contributors to scientific scholarly output. The roles describe each contributor’s specific contribution to the scholarly output. They can be assigned multiple times to different authors and one author can also be assigned multiple roles. CRediT includes the following roles: Conceptualization, Data curation, Formal Analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing – original draft, Writing – review & editing. A description of the different roles can be found in the work of Brand et al., (2015).
167+
**Definition:** The Contributor Roles Taxonomy (CRediT; https://credit.niso.org/) is a high-level taxonomy, including 14 roles, that can be used to indicate the roles typically adopted by contributors to scientific scholarly output. The roles describe each contributor’s specific contribution to the scholarly output. They can be assigned multiple times to different authors and one author can also be assigned multiple roles. CRediT includes the following roles: Conceptualization, Data curation, Formal Analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing – original draft, Writing – review & editing. A description of the different roles can be found in the work of Brand et al., (2015).
168168
**Related terms:** Authorship
169169
**Alternative definition:** (if applicable)
170170
**Related terms to alternative definition:** (if applicable)
171-
**Reference(s):** Brand et al. (2015); Holcombe (2019); https://casrai.org/credit/
171+
**Reference(s):** Brand et al. (2015); Holcombe (2019); https://credit.niso.org/
172172
**Drafted by:** Sam Parsons
173173
**Reviewed (or Edited) by:** Myriam A. Baum; Matt Jaquiery; Connor Keating; Yuki Yamada
174174

content/glossary/apa_lookup.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"CESSDA_DataManagement": "CESSDA. (n.d.). Data Management Expert Guide—CESSDA TRAINING. https://www.cessda.eu/Training/Training-Resources/Library/Data-Management-Expert-Guide",
3-
"Stanford_DataManagementPlans": "Stanford Libraries. (n.d.). Data Management Plans | Stanford Libraries. https://library.stanford.edu/research/data-management-services/data-management-plans",
3+
"Stanford_DataManagementPlans": "Stanford Libraries. (n.d.). Data Management Plans | Stanford Libraries. https://guides.library.stanford.edu/dmps",
44
"EU_DataProtection": "European Commission. (n.d.). Data Protection. https://ec.europa.eu/info/law/law-topic/data-protection_en",
55
"DataCite_MetadataSchema": "DataCite Schema. (n.d.). Datacite Metadata Schema. https://schema.datacite.org/",
66
"cook1979quasi": "Cook, T. D., & Campbell, D. T. (1979). Quasi-Experimentation. Rand McNally.",
@@ -15,7 +15,7 @@
1515
"AlbayrakOkoroji2019": "Albayrak, N., & Okoroji, C. (2019). Facing the challenges of postgraduate study as a minority student. A Guide for Psychology Postgraduates, 63.",
1616
"AlbayrakAydemir2020": "Albayrak-Aydemir, N. (2020). The hidden costs of being a scholar from the global south. Retrieved from https://blogs.lse.ac.uk/highereducation/2020/02/20/the-hidden-costs-of-being-a-scholar-from-the-global-south/",
1717
"ALLEA2017": "Academies, A. A. E. (2017). The European Code of Conduct for Research Integrity. Revised Edition. Retrieved from https://allea.org/code-of-conduct/",
18-
"AllenMcGonagleOConnellND": "Allen, L., & McGonagle-O’Connell, A. (n.d.). CRediT – Contributor Roles Taxonomy. Retrieved from https://casrai.org/credit/",
18+
"AllenMcGonagleOConnellND": "Allen, L., & McGonagle-O’Connell, A. (n.d.). CRediT – Contributor Roles Taxonomy. Retrieved from https://credit.niso.org/",
1919
"Ali2021": "Ali, M. J. (2021). Understanding the Altmetrics. Seminars in Ophthalmology. https://doi.org/10.1080/08820538.2021.1930806",
2020
"APA2007": "American Psychological Association, Task Force on Socioeconomic Status. (2007). Report of the APA Task Force on Socioeconomic Status. American Psychological Association.",
2121
"Anderson2010": "Anderson, M. S., Ronning, E. A., Devries, R., & Martinson, B. C. (2010). Extending the Mertonian norms: Scientists’ subscription to norms of research. Journal of Higher Education, 81(3), 366–393. https://doi.org/10.1353/jhe.0.0095",
@@ -33,11 +33,11 @@
3333
"AnonFOSTERND": "Anon. (n.d.). Open Source in Open Science | FOSTER. Retrieved from https://www.fosteropenscience.eu/foster-taxonomy/open-source-open-science",
3434
"AnonDOIHandbook2019": "Anon. (2019). The DOI Handbook.",
3535
"AnonSherpaRomeoND": "Anon. (n.d.). Welcome to Sherpa Romeo - v2.sherpa. Retrieved from https://v2.sherpa.ac.uk/romeo/",
36-
"AnonCodebookND": "Anon. (n.d.). What is a codebook?. Retrieved from https://www.icpsr.umich.edu/icpsrweb/content/shared/ICPSR/faqs/what-is-a-codebook.html",
36+
"AnonCodebookND": "Anon. (n.d.). What is a codebook?. Retrieved from https://www.icpsr.umich.edu/sites/icpsr/posts/shared/what-is-a-codebook",
3737
"icpsr_codebook": "Inter-university Consortium for Political and Social Research. (2025). What is a Codebook? https://www.icpsr.umich.edu/web/ICPSR/cms/1983",
3838
"AnonDOIAPA2009_2020": "Anon. (n.d.). What is a digital object identifier, or DOI?. Retrieved from https://apastyle.apa.org/learn/faqs/what-is-doi",
3939
"AnonReportingGuidelineND": "Anon. (n.d.). What is a reporting guideline?. Retrieved from https://www.equator-network.org/about-us/what-is-a-reporting-guideline/",
40-
"AnonImpact2021": "Anon. (2021). What is impact?. Retrieved from https://esrc.ukri.org/research/impact-toolkit/what-is-impact/",
40+
"AnonImpact2021": "Anon. (2021). What is impact?. Retrieved from https://www.ukri.org/councils/esrc/impact-toolkit-for-economic-and-social-sciences/defining-impact/",
4141
"AnonOpenEducationND": "Anon. (n.d.). What is open education?. Retrieved from https://opensource.com/resources/what-open-education",
4242
"AnonPlagiarismND": "Anon. (n.d.). What is plagiarism?. Retrieved from https://www.scribbr.co.uk/category/preventing-plagiarism/",
4343
"AnonDataAvailabilityND": "Anon. (n.d.). Data availability statements. Retrieved from https://www.springernature.com/gp/authors/research-data-policy/data-availability-statements",
@@ -69,7 +69,7 @@
6969
"BenjaminiBraun2002": "Benjamini, Y., & Braun, H. (2002). John W. Tukey’s contributions to multiple comparisons. The Annals of Statistics, 30(6), 1576–1594. https://doi.org/10.1214/aos/1043351247",
7070
"BenoitEtAl2016": "Benoit, K., Conway, D., Lauderdale, B. E., Laver, M., & Mikhaylov, S. (2016). Crowd-sourced text analysis: Reproducible and agile production of political data. American Political Science Review, 110(2), 278–295. https://doi.org/10.1017/S0003055416000058",
7171
"BhopalEtAl1997": "Bhopal, R., Rankin, J., McColl, E., Thomas, L., Kaner, E., Stacy, R., Pearson, P., Vernon, B., & Rodgers, H. (1997). The vexed question of authorship: views of researchers in a British medical faculty. BMJ, 314, 1009–1012. https://doi.org/10.1136/bmj.314.7086.1009",
72-
"LexicoBias": "BIAS | Definition of BIAS by Oxford Dictionary on Lexico.com also meaning of BIAS. (n.d.). Lexico Dictionaries | English. https://www.lexico.com/definition/bias",
72+
"LexicoBias": "BIAS | Definition of BIAS by Oxford Dictionary on Lexico.com also meaning of BIAS. (n.d.). Lexico Dictionaries | English. https://www.oxfordlearnersdictionaries.com/definition/english/bias_1",
7373
"BIDSModalityND": "BIDS. (n.d.). Modality agnostic files. Retrieved from https://bids-specification.readthedocs.io/en/stable/03-modality-agnostic-files.html",
7474
"BIDSAbout2020": "BIDS. (2020). About BIDS. Retrieved from https://bids.neuroimaging.io",
7575
"BikEtAl2016": "Bik, E. M., Casadevall, A., & Fang, F. C. (2016). The prevalence of inappropriate image duplication in biomedical research publications. MBio, 7(3), e00809-16.",
@@ -156,7 +156,7 @@
156156
"Nature2006": "Correction or retraction? (2006). Nature, 444(7116), 123–124. https://doi.org/10.1038/444123b",
157157
"Corti2019": "Corti, L., Van den Eynden, V., Bishop, L., & Woollard, M. (2019). Managing and sharing research data: a guide to good practice. Sage.",
158158
"Cowan2020": "Cowan, N., Belletier, C., Doherty, J. M., Jaroslawska, A. J., Rhodes, S., Forsberg, A., & Logie, R. H. (2020). How do scientific views change? Notes from an extended adversarial collaboration. Perspectives on Psychological Science, 15(4), 1011–1025. https://doi.org/10.1177/1745691620906415",
159-
"CRediT": "CRediT - Contributor Roles Taxonomy. (n.d.). Casrai. https://casrai.org/credit/",
159+
"CRediT": "CRediT - Contributor Roles Taxonomy. (n.d.). Casrai. https://credit.niso.org/",
160160
"Crenshaw1989": "Crenshaw, K. W. (1989). Demarginalizing the Intersection of Race and Sex: A Black Feminist Critique of Antidiscrimination Doctrine. University of Chicago Legal Forum, 1989(8), 139–168.",
161161
"Cronbach1955": "Cronbach, L. J., & Meehl, P. E. (1955). Construct validity in psychological tests. Psychological Bulletin, 52(4), 281–302. https://doi.org/10.1037/h0040957",
162162
"Cronin2001": "Cronin, B. (2001). Hyperauthorship: A postmodern perversion or evidence of a structural shift in scholarly communication practices? Journal of the American Society for Information Science and Technology, 52(7), 558–569. https://doi.org/10.1002/asi.1097",
@@ -499,7 +499,7 @@
499499
"Ottmann2011": "Ottmann, G., Laragy, C., Allen, J., & Feldman, P. (2011). Coproduction in practice: Participatory action research to develop a model of community aged care. Systemic Practice and Action Research, 24, 413–427. https://doi.org/10.1007/s11213-011-9192-x",
500500
"Oxford_Dictionaries2017": "Bias—definition of bias in English. (2017). https://en.oxforddictionaries.com/definition/bias",
501501
"Oxford_Reference2017": "Reflexivity. (2017). http://www.oxfordreference.com/view/10.1093/acref/9780199599868.001.0001/acref-9780199599868-e-1530",
502-
"CoProductionCollective": "Co-Production Collective. (n.d.). Our Approach. Co-Production Collective. https://www.coproductioncollective.co.uk/what-is-co-production/our-approach",
502+
"CoProductionCollective": "Co-Production Collective. (n.d.). Our Approach. Co-Production Collective. https://www.coproductioncollective.co.uk/championing-co-production/what-does-co-production-mean-to-us",
503503
"Padilla1994": "Padilla, A. M. (1994). Research news and comment: Ethnic minority scholars; research, and mentoring: Current and future issues. Educational Researcher, 23(4), 24–27. https://doi.org/10.3102/0013189X023004024",
504504
"Page2021": "Page, M. J., Moher, D., Bossuyt, P. M., Boutron, I., Hoffmann, T. C., Mulrow, C. D., & McKenzie, J. E. (2021). PRISMA 2020 explanation and elaboration: updated guidance and exemplars for reporting systematic reviews. British Medical Journal, 372. https://doi.org/10.1136/bmj.n160",
505505
"Patience2019": "Patience, G. S., Galli, F., Patience, P. A., & Boffito, D. C. (2019). Intellectual contributions meriting authorship: Survey results from the top cited authors across all science categories. PLoS One, 14(1), e0198117. https://doi.org/10.1371/journal.pone.0198117",
@@ -539,7 +539,7 @@
539539
"Rakow2014": "Rakow, T., Thompson, V., Ball, L., & Markovits, H. (2014). Rationale and guidelines for empirical adversarial collaboration: A Thinking & Reasoning initiative. Thinking & Reasoning, 21(2), 167–175. https://doi.org/10.1080/13546783.2015.975405",
540540
"Ramagopalan2014": "Ramagopalan, S. V., Skingsley, A. P., Handunnetthi, L., Klingel, M., Magnus, D., Pakpoor, J., & Goldacre, B. (2014). Prevalence of primary outcome changes in clinical trials registered on ClinicalTrials.gov: A cross-sectional study. F1000Research, 3, 77. https://doi.org/10.12688/f1000research.3784.1",
541541
"RecommendedDataRepositories": "Scientific Data. (n.d.). Recommended Data Repositories. Scientific Data. https://www.nature.com/sdata/policies/repositories",
542-
"ReplicationMarkets": "Replication Markets. (n.d.). Replication Markets – Reliable research replicates…you can bet on it. Replication Markets. https://www.replicationmarkets.com/",
542+
"ReplicationMarkets": "Replication Markets. (n.d.). Replication Markets – Reliable research replicates…you can bet on it. Replication Markets. https://replicationmarkets.org/",
543543
"RepliCATS_project2020": "project, R. (2020). Collaborative Assessment for Trustworthy Science. The University of Melbourne. https://replicats.research.unimelb.edu.au/",
544544
"ReproducibiliTea_n_d": "ReproducibiliTea. (n.d.). https://reproducibilitea.org/",
545545
"Research_Data_Alliance2020": "Alliance, R. D. (2020). Data management plan (DMP) common standard. https://github.com/RDA-DMP-Common/RDA-DMP-Common-Standard",
@@ -677,11 +677,11 @@
677677
"Wasserstein2016": "Wasserstein, R. L., & Lazar, N. A. (2016). The ASA Statement on p-Values: Context, Process, and Purpose. The American Statistician, 70, 129–133. https://doi.org/10.1080/00031305.2016.1154108",
678678
"Webster2020": "Webster, M. M., & Rutz, C. (2020). How STRANGE are your study animals? Nature, 582, 337–340. https://doi.org/10.1038/d41586-020-01751-5",
679679
"Wendl2007": "Wendl, M. C. (2007). H-index: however ranked, citations need context. Nature, 449(7161), 403–403. https://doi.org/10.1038/449403b",
680-
"ICPSR2021": "ICPSR. (n.d.). What is a Codebook? Retrieved 9 July 2021. https://www.icpsr.umich.edu/icpsrweb/content/shared/ICPSR/faqs/what-is-a-codebook.html",
680+
"ICPSR2021": "ICPSR. (n.d.). What is a Codebook? Retrieved 9 July 2021. https://www.icpsr.umich.edu/sites/icpsr/posts/shared/what-is-a-codebook",
681681
"EQUATOR2021": "Network, T. E. (n.d.). What is a reporting guideline? Retrieved 10 July 2021. https://www.equator-network.org/about-us/what-is-a-reporting-guideline/",
682682
"CrowdsourcingWeek2021": "Week, C. (2021). What is Crowdsourcing? https://crowdsourcingweek.com/what-is-crowdsourcing/",
683-
"EUDatasharing2021": "for Data Sharing, S. C. (n.d.). What is data sharing? Retrieved 11 July 2021. https://eudatasharing.eu/what-data-sharing",
684-
"ESRC2021": "Economic, & Council, S. R. (n.d.). What is impact? Retrieved 8 July 2021. https://esrc.ukri.org/research/impact-toolkit/what-is-impact/",
683+
"EUDatasharing2021": "for Data Sharing, S. C. (n.d.). What is data sharing? Retrieved 11 July 2021. https://futurium.ec.europa.eu/en/support-centre-data-sharing/pages/about",
684+
"ESRC2021": "Economic, & Council, S. R. (n.d.). What is impact? Retrieved 8 July 2021. https://www.ukri.org/councils/esrc/impact-toolkit-for-economic-and-social-sciences/defining-impact/",
685685
"OpenDataHandbook2021": "Handbook, O. D. (n.d.). What is Open Data? Retrieved 9 July 2021. https://opendatahandbook.org/guide/en/what-is-open-data/",
686686
"OpensourceCom2021": "Opensource.Com. (n.d.). What is open education? Retrieved 9 July 2021. https://opensource.com/resources/what-open-education",
687687
"Whitaker2020": "Whitaker, K., & Guest, O. (2020). #bropenscience is broken science. The Psychologist, 33, 34–37.",

0 commit comments

Comments
 (0)