From 9dd8f08580437f00c3428a82582aabb1c0bad0b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederik=20=E2=80=9CFreso=E2=80=9D=20S=2E=20Olesen?= Date: Sat, 2 Nov 2024 13:13:16 +0100 Subject: [PATCH] Add Project Runeberg author+edition identifiers Project Runeberg is similar to Project Gutenberg, but focuses on Nordic and Scandinavian authors and literature. These identifiers basically correspond to https://www.wikidata.org/wiki/Property:P3154 and https://www.wikidata.org/wiki/Property:P3155 in Wikidata. Closes https://github.com/internetarchive/openlibrary/issues/9981 --- .../plugins/openlibrary/config/author/identifiers.yml | 5 +++++ .../plugins/openlibrary/config/edition/identifiers.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/openlibrary/plugins/openlibrary/config/author/identifiers.yml b/openlibrary/plugins/openlibrary/config/author/identifiers.yml index c88207c4bd2..12a8f125d45 100644 --- a/openlibrary/plugins/openlibrary/config/author/identifiers.yml +++ b/openlibrary/plugins/openlibrary/config/author/identifiers.yml @@ -55,6 +55,11 @@ identifiers: notes: Should be a number url: https://www.gutenberg.org/ebooks/author/@@@ website: https://www.gutenberg.org +- label: Project Runeberg + name: project_runeberg + notes: Should be a string of alphanumeric characters (/[0-9a-z/.-]+/) + url: https://runeberg.org/authors/@@@.html + website: https://runeberg.org/ - label: SBN/ICCU (National Library Service of Italy) name: opac_sbn notes: format is /^\D{2}[A-Z0-3]V\d{6}$/ diff --git a/openlibrary/plugins/openlibrary/config/edition/identifiers.yml b/openlibrary/plugins/openlibrary/config/edition/identifiers.yml index d4eca58b906..eda31a25be4 100644 --- a/openlibrary/plugins/openlibrary/config/edition/identifiers.yml +++ b/openlibrary/plugins/openlibrary/config/edition/identifiers.yml @@ -241,6 +241,11 @@ identifiers: name: project_gutenberg url: https://www.gutenberg.org/ebooks/@@@ website: https://www.gutenberg.org +- label: Project Runeberg + name: project_runeberg + notes: Should be a string of alphanumeric characters (/[0-9a-z/.-]+/) + url: https://runeberg.org/@@@/ + website: https://runeberg.org/ - label: Scribd name: scribd url: https://www.scribd.com/doc/@@@/