Skip to content

Commit b444e06

Browse files
Transfer news from old to new website (lmu-osc#306)
* Begin news transfer script * Add notes and update csv with file names Create code to write the new news pages * Add transferred news files * Fix quote errors and use listing in news home page Make use of _metadata for freezing * Remove lines that just have NA * Remove NA subtitles * Include newsletter files
1 parent 8432b1f commit b444e06

File tree

81 files changed

+2406
-0
lines changed

Some content is hidden

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

81 files changed

+2406
-0
lines changed

news/_metadata.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
execute:
2+
echo: false
3+
freeze: auto

news/_news_transfer.R

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
2+
3+
library(dplyr)
4+
5+
news_csv <- read.csv("https://raw.githubusercontent.com/lmu-osc/osc-website-transfer/refs/heads/main/news_metadata.csv?token=GHSAT0AAAAAADRLIEF73GZ33O3UHNP26NQK2LQYSJA")
6+
7+
8+
news_csv %>%
9+
tibble() %>%
10+
write.csv("news/news_metadata.csv")
11+
12+
# had Copilot manually generate file names
13+
14+
# ## Naming Patterns Used
15+
16+
# 1. **Newsletters**: Always `newsletter-{month}-{year}`
17+
# 2. **Interviews**: Always `{person}-interview`
18+
# 3. **Job ads**: `job-ad-` or `stellenausschreibung-` for German
19+
# 4. **New members**: `{number}-new-members` or `{dept}-joins-osc`
20+
# 5. **Awards/Recognition**: Include award name (`enter-award`, `hochschulperle-award`, `dgps-award`)
21+
# 6. **Reports**: `{topic}-report`
22+
# 7. **Events**: Descriptive of the event type
23+
# 8. **Papers**: `{topic}-paper-{status}` (e.g., `preprint`, `published`)
24+
25+
# ## Consistency Features
26+
27+
# - Hyphens only, no underscores
28+
# - All lowercase
29+
# - Removed special characters and German umlauts
30+
# - Kept meaningful keywords from titles
31+
# - Limited to 3-5 words per slug
32+
# - Date format: YYYY-MM-DD
33+
34+
# ## Examples
35+
36+
# - `2025-07-22-newsletter-july-2025.qmd`
37+
# - `2024-01-29-gollwitzer-schneck-interview.qmd`
38+
# - `2024-07-15-job-ad-scientific-coordinator.qmd`
39+
# - `2024-05-10-clusters-excellence-join-osc.qmd`
40+
# - `2024-07-03-enter-award-received.qmd`
41+
# - `2023-12-07-osc-impact-report-2017-2023.qmd`
42+
# - `2021-04-21-multiplicity-paper-published.qmd`
43+
44+
final_news <- read.csv("news/news_metadata.csv") %>%
45+
tibble()
46+
47+
48+
final_news %>%
49+
mutate(
50+
start_date = as.Date(start_date, format = "%d.%m.%Y")
51+
) %>%
52+
select(
53+
start_date, news_title, subtitle, body_misc, body, filename
54+
) %>%
55+
purrr::pmap(function(start_date, news_title, subtitle, body_misc, body, filename) {
56+
57+
yaml <- glue::glue(
58+
"---\n",
59+
"title: \"{news_title}\"\n",
60+
"date: {start_date}\n",
61+
"subtitle: \"{subtitle}\"\n",
62+
"---\n\n"
63+
)
64+
65+
content <- glue::glue(
66+
"{body_misc}\n\n{body}"
67+
)
68+
69+
full_content <- glue::glue(
70+
"{yaml}\n{content}"
71+
)
72+
73+
writeLines(full_content, con = paste0("news/news/", filename))
74+
75+
})
76+
77+
78+
79+
80+
# fix mistake of including NA from body_misc or body when no content from these is present
81+
82+
list.files("news/news", full.names = TRUE)[-1] %>%
83+
purrr::map(~{
84+
file <- readLines(.x)
85+
86+
# remove lines that contain just "NA"
87+
file_cleaned <- file[file != "NA"]
88+
writeLines(file_cleaned, con = .x)
89+
})
90+
91+
92+
# fix mistake of including NA from subtitle when no content from these is present
93+
94+
list.files("news/news", full.names = TRUE)[-1] %>%
95+
purrr::map(~{
96+
file <- readLines(.x)
97+
98+
# find subtitle line
99+
subtitle_line_index <- which(grepl("^subtitle: ", file))
100+
101+
if (length(subtitle_line_index) > 0) {
102+
subtitle_line <- file[subtitle_line_index]
103+
104+
# check if subtitle is NA
105+
if (grepl("subtitle: \"NA\"", subtitle_line)) {
106+
# remove the subtitle line
107+
file <- file[-subtitle_line_index]
108+
}
109+
}
110+
111+
writeLines(file, con = .x)
112+
})
113+
114+
1.78 MB
Binary file not shown.
1.14 MB
Binary file not shown.
4.34 MB
Binary file not shown.

news/files/newsletter_may_2022.pdf

331 KB
Binary file not shown.

news/files/newsletter_may_2024.pdf

1.64 MB
Binary file not shown.
6.42 MB
Binary file not shown.

news/index.qmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@
22
title: "News"
33
editor: source
44
repo-actions: false
5+
listing:
6+
contents: news
7+
type: table
8+
sort: "date desc"
59
---
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: "The LMU Open Science Center is founded!"
3+
date: 2017-11-16
4+
subtitle: "In November 2017 the „Open Science Center“ (OSC) was founded at LMU Munich, with the goal to promote open, transparent and credible science."
5+
---
6+
7+
<div id="imgZoom" class="mod mod-gallery mod-gallery-single">
8+
<div class="m-item-m">
9+
<a>
10+
<img src="../../images/news1.jpg" alt="" class="m-thumb-m"></a>
11+
</div>
12+
</div>
13+
14+
<p>In recent years, headlines have repeatedly reported that scientific results could not be reproduced, even under the same experimental conditions. The speaker of the newly founded LMU Open Science Center (LMU OSC), sociologist Prof. Dr. Katrin Auspurg, explains these alarming findings: “Competition for funding and professorships has led people to publish as many articles as possible in the shortest time possible in a marketing-effective way. This incentive structure often negatively affects the truthfulness of published research.”</p>
15+
<p><strong>Transparency in research: The foundation for credible and successful science</strong></p>
16+
<p>For a long time, science organizations have been demanding data and results generated in publicly funded research projects to be made openly available in order to enable reexamination and further analyses.</p>
17+
<p>“In times where we see frequent debates over fake news, it is very important to strengthen the trust in science”, clarifies the center's managing director, psychologist Dr. Felix Schönbrodt, who played a major role in establishing the Center. “The Open Science Center is a strong signal: We stand for integrity and reliability and support these principles in our teaching, our personnel decisions, as reviewers, and especially in our daily practice as researchers.”</p>
18+
<p>Thereby the competitiveness of the university is increased as many research funders, such as the ERC or the newly founded “Open Research Funders Group” emphasize the topic Open Science in their funding guidelines for new research projects.</p>
19+
<p><strong>Putting Open Science into action at LMU Munich</strong></p>
20+
<p>Prof. Dr. Barbara Conradt, the LMU’s vice president for research and diversity, pointed out, that “first and foremost, excellent research means producing correct and replicable results. In this respect, the foundation of the Open Science Center complements the LMU’s bigger strategy of supporting good scientific practice.”</p>
21+
<p>the OSC seeks to accomplishing this goal by offering public talks, trainings programs and workshops for scientists at all stages of their career, from PhD students to professors. Furthermore, the Center plans to conduct “research about research”, by investigating the scientific process itself. Thereby, psychological, sociological, and statistical/methodical aspects are investigated which lead to biased or wrong results in the scientific literature.</p>
22+
<p>The Center’s 17 founding members come from ten different scientific fields, ranging from sociology to geography. Three complete faculties of the LMU – the Faculty of Medicine, the Faculty of Veterinary Medicine, as well as the Faculty of Psychology and Educational Sciences – have joined the Center’s mission. Additionally, the Leibniz Supercomputing Centre (LRZ) and the University Library are supporting the Open Science Center.</p>
23+
<p>All members of the LMU Open Science Center share one common goal: Fostering good science and generating reliable knowledge through transparent and replicable research. For a society that can trust in it.</p>
24+
<p>Press Release: tba</p>
25+
<div class="g-clear"></div>

0 commit comments

Comments
 (0)