From e0dc7a86d73c64b118afd3c36982a1e8b3623c03 Mon Sep 17 00:00:00 2001 From: Matthijs Berends Date: Mon, 9 Dec 2024 14:44:11 +0100 Subject: [PATCH] website update --- DESCRIPTION | 52 +++++++++++++++++++------------------- pkgdown/assets/lang_au.svg | 24 ++++++++++++++++++ pkgdown/assets/lang_ca.svg | 5 ++++ pkgdown/assets/lang_sa.svg | 18 +++++++++++++ pkgdown/assets/lang_us.svg | 1 + pkgdown/extra.js | 35 +++++++++++++++++++++++++ 6 files changed, 109 insertions(+), 26 deletions(-) create mode 100644 pkgdown/assets/lang_au.svg create mode 100644 pkgdown/assets/lang_ca.svg create mode 100644 pkgdown/assets/lang_sa.svg create mode 100644 pkgdown/assets/lang_us.svg diff --git a/DESCRIPTION b/DESCRIPTION index ea7700ac..36139086 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -6,32 +6,32 @@ Description: Functions to simplify and standardise antimicrobial resistance (AMR data analysis and to work with microbial and antimicrobial properties by using evidence-based methods, as described in . Authors@R: c( - person(family = "Berends", c("Matthijs", "S."), role = c("aut", "cre"), comment = c(ORCID = "0000-0001-7620-1800"), email = "m.s.berends@umcg.nl"), - person(family = "Souverein", c("Dennis"), role = c("aut", "ctb"), comment = c(ORCID = "0000-0003-0455-0336")), - person(family = "Hassing", c("Erwin", "E.", "A."), role = c("aut", "ctb")), - person(family = "Albers", c("Casper", "J."), role = "ths", comment = c(ORCID = "0000-0002-9213-6743")), - person(family = "Bolton", c("Larisse"), role = "ctb", comment = c(ORCID = "0000-0001-7879-2173")), - person(family = "Dutey-Magni", c("Peter"), role = "ctb", comment = c(ORCID = "0000-0002-8942-9836")), - person(family = "Fonville", c("Judith", "M."), role = "ctb"), - person(family = "Friedrich", c("Alex", "W."), role = "ths", comment = c(ORCID = "0000-0003-4881-038X")), - person(family = "Glasner", c("Corinna"), role = "ths", comment = c(ORCID = "0000-0003-1241-1328")), - person(family = "Hazenberg", c("Eric", "H.", "L.", "C.", "M."), role = "ctb"), - person(family = "Knight", c("Gwen"), role = "ctb", comment = c(ORCID = "0000-0002-7263-9896")), - person(family = "Lenglet", c("Annick"), role = "ctb", comment = c(ORCID = "0000-0003-2013-8405")), - person(family = "Luz", c("Christian", "F."), role = c("ctb"), comment = c(ORCID = "0000-0001-5809-5995")), - person(family = "Meijer", c("Bart", "C."), role = "ctb"), - person(family = "Mykhailenko", c("Dmytro"), role = "ctb"), - person(family = "Mymrikov", c("Anton"), role = "ctb"), - person(family = "Norgan", c("Andrew", "P."), role = "ctb", comment = c(ORCID = "0000-0002-2955-2066")), - person(family = "Ny", c("Sofia"), role = "ctb", comment = c(ORCID = "0000-0002-2017-1363")), - person(family = "Saab", c("Matthew"), role = "ctb"), - person(family = "Salm", c("Jonas"), role = "ctb"), - person(family = "Sanchez", c("Javier"), role = "ctb", comment = c(ORCID = "0000-0003-2605-8094")), - person(family = "Schade", c("Rogier", "P."), role = "ctb"), - person(family = "Sinha", c("Bhanu", "N.", "M."), role = "ths", comment = c(ORCID = "0000-0003-1634-0010")), - person(family = "Stull", c("Jason"), role = "ctb", comment = c(ORCID = "0000-0002-9028-8153")), - person(family = "Underwood", c("Anthony"), role = "ctb", comment = c(ORCID = "0000-0002-8547-4277")), - person(family = "Williams", c("Anita"), role = "ctb", comment = c(ORCID = "0000-0002-5295-8451"))) + person(given = c("Matthijs", "S."), family = "Berends", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-7620-1800"), email = "m.s.berends@umcg.nl"), + person(given = c("Dennis"), family = "Souverein", role = c("aut", "ctb"), comment = c(ORCID = "0000-0003-0455-0336")), + person(given = c("Erwin", "E.", "A."), family = "Hassing", role = c("aut", "ctb")), + person(given = c("Andrew", "P."), family = "Norgan", role = "ctb", comment = c(ORCID = "0000-0002-2955-2066")), + person(given = c("Anita"), family = "Williams", role = "ctb", comment = c(ORCID = "0000-0002-5295-8451")), + person(given = c("Annick"), family = "Lenglet", role = "ctb", comment = c(ORCID = "0000-0003-2013-8405")), + person(given = c("Anthony"), family = "Underwood", role = "ctb", comment = c(ORCID = "0000-0002-8547-4277")), + person(given = c("Anton"), family = "Mymrikov", role = "ctb"), + person(given = c("Bart", "C."), family = "Meijer", role = "ctb"), + person(given = c("Christian", "F."), family = "Luz", role = "ctb", comment = c(ORCID = "0000-0001-5809-5995")), + person(given = c("Dmytro"), family = "Mykhailenko", role = "ctb"), + person(given = c("Eric", "H.", "L.", "C.", "M."), family = "Hazenberg", role = "ctb"), + person(given = c("Gwen"), family = "Knight", role = "ctb", comment = c(ORCID = "0000-0002-7263-9896")), + person(given = c("Jason"), family = "Stull", role = "ctb", comment = c(ORCID = "0000-0002-9028-8153")), + person(given = c("Javier"), family = "Sanchez", role = "ctb", comment = c(ORCID = "0000-0003-2605-8094")), + person(given = c("Jonas"), family = "Salm", role = "ctb"), + person(given = c("Judith", "M."), family = "Fonville", role = "ctb"), + person(given = c("Larisse"), family = "Bolton", role = "ctb", comment = c(ORCID = "0000-0001-7879-2173")), + person(given = c("Matthew"), family = "Saab", role = "ctb"), + person(given = c("Peter"), family = "Dutey-Magni", role = "ctb", comment = c(ORCID = "0000-0002-8942-9836")), + person(given = c("Rogier", "P."), family = "Schade", role = "ctb"), + person(given = c("Sofia"), family = "Ny", role = "ctb", comment = c(ORCID = "0000-0002-2017-1363")), + person(given = c("Alex", "W."), family = "Friedrich", role = "ths", comment = c(ORCID = "0000-0003-4881-038X")), + person(given = c("Bhanu", "N.", "M."), family = "Sinha", role = "ths", comment = c(ORCID = "0000-0003-1634-0010")), + person(given = c("Casper", "J."), family = "Albers", role = "ths", comment = c(ORCID = "0000-0002-9213-6743")), + person(given = c("Corinna"), family = "Glasner", role = "ths", comment = c(ORCID = "0000-0003-1241-1328"))) Depends: R (>= 3.0.0) Suggests: cleaner, diff --git a/pkgdown/assets/lang_au.svg b/pkgdown/assets/lang_au.svg new file mode 100644 index 00000000..3d1060dc --- /dev/null +++ b/pkgdown/assets/lang_au.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pkgdown/assets/lang_ca.svg b/pkgdown/assets/lang_ca.svg new file mode 100644 index 00000000..472c4314 --- /dev/null +++ b/pkgdown/assets/lang_ca.svg @@ -0,0 +1,5 @@ + + Flag of Canada (Pantone colours) + + + diff --git a/pkgdown/assets/lang_sa.svg b/pkgdown/assets/lang_sa.svg new file mode 100644 index 00000000..50745e40 --- /dev/null +++ b/pkgdown/assets/lang_sa.svg @@ -0,0 +1,18 @@ + + Flag of South Africa + + + + + + + + + + + + + + + + diff --git a/pkgdown/assets/lang_us.svg b/pkgdown/assets/lang_us.svg new file mode 100644 index 00000000..85c398ef --- /dev/null +++ b/pkgdown/assets/lang_us.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/pkgdown/extra.js b/pkgdown/extra.js index 7a27741f..dd87ec24 100644 --- a/pkgdown/extra.js +++ b/pkgdown/extra.js @@ -63,6 +63,41 @@ $(document).ready(function() { $('img[src="../logo.svg"]').attr('src', '../logo_python.svg'); /* replace base logo */ $('img[src="https://github.com/msberends/AMR/raw/main/pkgdown/assets/AMRforRGPT.svg"]').attr('src', 'https://github.com/msberends/AMR/raw/main/pkgdown/assets/AMRforRGPT_python.svg'); /* replace GPT logo */ } + + // add country flags + function country_flag(x) { + if (typeof(x) != "undefined") { + x = x.replace("Alex", ' Alex'); + x = x.replace("Andrew", ' Andrew'); + x = x.replace("Anita", ' Anita'); + x = x.replace("Annick", ' Annick'); + x = x.replace("Anthony", ' Anthony'); + x = x.replace("Anton", ' Anton'); + x = x.replace("Bart", ' Bart'); + x = x.replace("Bhanu", ' Bhanu'); + x = x.replace("Casper", ' Casper'); + x = x.replace("Christian", ' Christian'); + x = x.replace("Corinna", ' Corinna'); + x = x.replace("Dennis", ' Dennis'); + x = x.replace("Dmytro", ' Dmytro'); + x = x.replace("Eric", ' Eric'); + x = x.replace("Erwin", ' Erwin'); + x = x.replace("Gwen", ' Gwen'); + x = x.replace("Jason", ' Jason'); + x = x.replace("Javier", ' Javier'); + x = x.replace("Jonas", ' Jonas'); + x = x.replace("Judith", ' Judith'); + x = x.replace("Larisse", ' Larisse'); + x = x.replace("Matthew", ' Matthew'); + x = x.replace("Matthijs", ' Matthijs'); + x = x.replace("Peter", ' Peter'); + x = x.replace("Rogier", ' Rogier'); + x = x.replace("Sofia", ' Sofia'); + } + return(x); + } + $(".template-authors").html(country_flag($(".template-authors").html())); + $(".template-citation-authors").html(country_flag($(".template-citation-authors").html())); // add doctoral titles to authors function doct_tit(x) {