diff --git a/modules/wowchemy/assets/js/wowchemy-publication.js b/modules/wowchemy/assets/js/wowchemy-publication.js index 28329837..285c5dd1 100644 --- a/modules/wowchemy/assets/js/wowchemy-publication.js +++ b/modules/wowchemy/assets/js/wowchemy-publication.js @@ -104,8 +104,8 @@ function filter_publications() { let urlHash = window.location.hash.replace('#', ''); let filterValue = '*'; - // Check if hash is numeric. - if (urlHash != '' && !isNaN(urlHash)) { + // Check if hash is set. + if (urlHash != '') { filterValue = '.pubtype-' + urlHash; } diff --git a/modules/wowchemy/data/publication_types.toml b/modules/wowchemy/data/publication_types.toml deleted file mode 100644 index f1d5949e..00000000 --- a/modules/wowchemy/data/publication_types.toml +++ /dev/null @@ -1,12 +0,0 @@ -# Publication types. -# Each item in the list corresponds to an item in the language packs. -types = [ "pub_uncat", - "pub_conf", - "pub_journal", - "pub_preprint", - "pub_report", - "pub_book", - "pub_book_section", - "pub_thesis", - "pub_patent" - ] diff --git a/modules/wowchemy/i18n/ar.yaml b/modules/wowchemy/i18n/ar.yaml index ff947f3c..79c6534e 100644 --- a/modules/wowchemy/i18n/ar.yaml +++ b/modules/wowchemy/i18n/ar.yaml @@ -174,16 +174,13 @@ - id: location translation: موقع -- id: pub_uncat - translation: غير مصنف - -- id: pub_conf +- id: paper-conference translation: ورقة مؤتمر -- id: pub_journal +- id: pub_article_journal translation: مجلة محكمه -- id: pub_preprint +- id: pub_article translation: مسودة - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: كتاب -- id: pub_book_section +- id: pub_chapter translation: قسم من كتاب - id: pub_thesis diff --git a/modules/wowchemy/i18n/bn.yaml b/modules/wowchemy/i18n/bn.yaml index 9c46aa42..0ca1e595 100644 --- a/modules/wowchemy/i18n/bn.yaml +++ b/modules/wowchemy/i18n/bn.yaml @@ -10,7 +10,7 @@ translation: বিষয়বস্তু - id: back_to_top # Back to top - translation: উপরে ফিরে যান + translation: উপরে ফিরে যান - id: home # Home translation: হোম পেজ @@ -33,7 +33,7 @@ translation: পূর্ববর্তী - id: next # Next - translation: পরবর্তী + translation: পরবর্তী - id: figure # 'Figure %d:' translation: 'চিত্র %d:' @@ -88,10 +88,10 @@ translation: উৎস নথি - id: btn_copy # Copy - translation: কপি করুন + translation: কপি করুন - id: btn_copied # Copied - translation: কপি করা হয়েছে + translation: কপি করা হয়েছে - id: btn_download # Download translation: ডাউনলোড করুন @@ -174,16 +174,13 @@ - id: location # Location translation: অবস্থান -- id: pub_uncat # Uncategorized - translation: শ্রেণী বহির্ভূত - -- id: pub_conf # Conference paper +- id: paper-conference # Conference paper translation: সম্মেলন নিবন্ধ -- id: pub_journal # Journal article +- id: pub_article_journal # Journal article translation: জার্নাল নিবন্ধ -- id: pub_preprint # Preprint +- id: pub_article # Preprint translation: প্রিপ্রিন্ট - id: pub_report # Report @@ -192,7 +189,7 @@ - id: pub_book # Book translation: বই # Alternatively: পুস্তক -- id: pub_book_section # Book section +- id: pub_chapter # Book section translation: পুস্তক বিভাগ - id: pub_thesis # Thesis diff --git a/modules/wowchemy/i18n/ca.yaml b/modules/wowchemy/i18n/ca.yaml index 2fe5b9c3..53a727a0 100644 --- a/modules/wowchemy/i18n/ca.yaml +++ b/modules/wowchemy/i18n/ca.yaml @@ -174,16 +174,13 @@ - id: location translation: Ubicació -- id: pub_uncat - translation: Uncategorized - -- id: pub_conf +- id: paper-conference translation: Conference paper -- id: pub_journal +- id: pub_article_journal translation: Journal article -- id: pub_preprint +- id: pub_article translation: Preprint - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Book -- id: pub_book_section +- id: pub_chapter translation: Book section - id: pub_thesis diff --git a/modules/wowchemy/i18n/cs.yaml b/modules/wowchemy/i18n/cs.yaml index d7cd3e85..93440753 100644 --- a/modules/wowchemy/i18n/cs.yaml +++ b/modules/wowchemy/i18n/cs.yaml @@ -174,16 +174,13 @@ - id: location translation: Místo -- id: pub_uncat - translation: Nezařazeno - -- id: pub_conf +- id: paper-conference translation: Materiál ke konferenci -- id: pub_journal +- id: pub_article_journal translation: Článek v žurnálu -- id: pub_preprint +- id: pub_article translation: Tisk předem - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Kniha -- id: pub_book_section +- id: pub_chapter translation: Sekce knihy - id: pub_thesis diff --git a/modules/wowchemy/i18n/da.yaml b/modules/wowchemy/i18n/da.yaml index cf084932..11498eb3 100644 --- a/modules/wowchemy/i18n/da.yaml +++ b/modules/wowchemy/i18n/da.yaml @@ -174,16 +174,13 @@ - id: location translation: Lokation -- id: pub_uncat - translation: Ikke katagoriseret - -- id: pub_conf +- id: paper-conference translation: Konference artikel -- id: pub_journal +- id: pub_article_journal translation: Videnskablig artikel -- id: pub_preprint +- id: pub_article translation: Preprint - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Bog -- id: pub_book_section +- id: pub_chapter translation: Bøger - id: pub_thesis diff --git a/modules/wowchemy/i18n/de.yaml b/modules/wowchemy/i18n/de.yaml index b5269135..4a0f3c78 100644 --- a/modules/wowchemy/i18n/de.yaml +++ b/modules/wowchemy/i18n/de.yaml @@ -174,16 +174,13 @@ - id: location translation: Ort -- id: pub_uncat - translation: Unkategorisiert - -- id: pub_conf +- id: paper-conference translation: Konferenzpapier -- id: pub_journal +- id: pub_article_journal translation: Journalartikel -- id: pub_preprint +- id: pub_article translation: Preprint - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Buch -- id: pub_book_section +- id: pub_chapter translation: Buchkapitel - id: pub_thesis diff --git a/modules/wowchemy/i18n/el.yaml b/modules/wowchemy/i18n/el.yaml index 482afa7c..04e4445d 100644 --- a/modules/wowchemy/i18n/el.yaml +++ b/modules/wowchemy/i18n/el.yaml @@ -174,16 +174,13 @@ - id: location translation: Τοποθεσία -- id: pub_uncat - translation: Uncategorized - -- id: pub_conf +- id: paper-conference translation: Conference paper -- id: pub_journal +- id: pub_article_journal translation: Journal article -- id: pub_preprint +- id: pub_article translation: Preprint - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Book -- id: pub_book_section +- id: pub_chapter translation: Book section - id: pub_thesis diff --git a/modules/wowchemy/i18n/en.yaml b/modules/wowchemy/i18n/en.yaml index d4d468ff..048cd539 100644 --- a/modules/wowchemy/i18n/en.yaml +++ b/modules/wowchemy/i18n/en.yaml @@ -174,16 +174,13 @@ - id: location translation: Location -- id: pub_uncat - translation: Uncategorized - -- id: pub_conf +- id: pub_paper_conference translation: Conference paper -- id: pub_journal +- id: pub_article_journal translation: Journal article -- id: pub_preprint +- id: pub_article translation: Preprint - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Book -- id: pub_book_section +- id: pub_chapter translation: Book section - id: pub_thesis diff --git a/modules/wowchemy/i18n/es.yaml b/modules/wowchemy/i18n/es.yaml index 374c64e8..2acec8e3 100644 --- a/modules/wowchemy/i18n/es.yaml +++ b/modules/wowchemy/i18n/es.yaml @@ -174,16 +174,13 @@ - id: location translation: Localización -- id: pub_uncat - translation: Sin categoría - -- id: pub_conf +- id: paper-conference translation: Artículo de conferencia -- id: pub_journal +- id: pub_article_journal translation: Artículo de revista -- id: pub_preprint +- id: pub_article translation: Prepublicación - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Libro -- id: pub_book_section +- id: pub_chapter translation: Capítulo de libro - id: pub_thesis diff --git a/modules/wowchemy/i18n/et.yaml b/modules/wowchemy/i18n/et.yaml index 17f90b9d..3240f698 100644 --- a/modules/wowchemy/i18n/et.yaml +++ b/modules/wowchemy/i18n/et.yaml @@ -174,16 +174,13 @@ - id: location translation: Asukoht -- id: pub_uncat - translation: Määramata - -- id: pub_conf +- id: paper-conference translation: Ettekanne -- id: pub_journal +- id: pub_article_journal translation: Artikkel -- id: pub_preprint +- id: pub_article translation: Eeltrükk - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Raamat -- id: pub_book_section +- id: pub_chapter translation: Peatükk - id: pub_thesis diff --git a/modules/wowchemy/i18n/eu.yaml b/modules/wowchemy/i18n/eu.yaml index c145d792..b0dfc86a 100644 --- a/modules/wowchemy/i18n/eu.yaml +++ b/modules/wowchemy/i18n/eu.yaml @@ -174,16 +174,13 @@ - id: location translation: Kokalekua -- id: pub_uncat - translation: Kategoriarik gabe - -- id: pub_conf +- id: paper-conference translation: Konferentzia-artikulua -- id: pub_journal +- id: pub_article_journal translation: Aldizkari-artikulua -- id: pub_preprint +- id: pub_article translation: Aurreargitalpena - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Liburua -- id: pub_book_section +- id: pub_chapter translation: Liburu-kapitulua - id: pub_thesis diff --git a/modules/wowchemy/i18n/fa.yaml b/modules/wowchemy/i18n/fa.yaml index 3e7068d0..6a26d5e3 100644 --- a/modules/wowchemy/i18n/fa.yaml +++ b/modules/wowchemy/i18n/fa.yaml @@ -174,16 +174,13 @@ - id: location translation: مکان -- id: pub_uncat - translation: بدون دستهبندی - -- id: pub_conf +- id: paper-conference translation: مقاله کنفرانسی -- id: pub_journal +- id: pub_article_journal translation: مقاله ژورنالی -- id: pub_preprint +- id: pub_article translation: پیشنویس مقاله - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: کتاب -- id: pub_book_section +- id: pub_chapter translation: فصل از کتاب - id: pub_thesis diff --git a/modules/wowchemy/i18n/fi.yaml b/modules/wowchemy/i18n/fi.yaml index 994b48c1..ee50ee88 100644 --- a/modules/wowchemy/i18n/fi.yaml +++ b/modules/wowchemy/i18n/fi.yaml @@ -174,16 +174,13 @@ - id: location translation: Sijainti -- id: pub_uncat - translation: Lajittelematon - -- id: pub_conf +- id: paper-conference translation: Konferenssijulkaisu -- id: pub_journal +- id: pub_article_journal translation: Artikkeli -- id: pub_preprint +- id: pub_article translation: Preprint - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Kirja -- id: pub_book_section +- id: pub_chapter translation: Kirjan kohta - id: pub_thesis diff --git a/modules/wowchemy/i18n/fr.yaml b/modules/wowchemy/i18n/fr.yaml index 374f9f2a..3330bfa7 100644 --- a/modules/wowchemy/i18n/fr.yaml +++ b/modules/wowchemy/i18n/fr.yaml @@ -174,16 +174,13 @@ - id: location translation: Lieu -- id: pub_uncat - translation: Non catégorisé - -- id: pub_conf +- id: paper-conference translation: Article de conférence -- id: pub_journal +- id: pub_article_journal translation: Article de revue -- id: pub_preprint +- id: pub_article translation: Pré-impression - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Livre -- id: pub_book_section +- id: pub_chapter translation: Chapitre de livre - id: pub_thesis diff --git a/modules/wowchemy/i18n/he.yaml b/modules/wowchemy/i18n/he.yaml index df509e7b..9094045c 100644 --- a/modules/wowchemy/i18n/he.yaml +++ b/modules/wowchemy/i18n/he.yaml @@ -174,16 +174,13 @@ - id: location translation: מיקום -- id: pub_uncat - translation: לא מסווג - -- id: pub_conf +- id: paper-conference translation: נייר ועידה -- id: pub_journal +- id: pub_article_journal translation: מאמר בכתב עת -- id: pub_preprint +- id: pub_article translation: קדם-פרסום - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: ספר -- id: pub_book_section +- id: pub_chapter translation: קטע של ספר - id: pub_thesis diff --git a/modules/wowchemy/i18n/hu.yaml b/modules/wowchemy/i18n/hu.yaml index b4e75922..7dc90d06 100644 --- a/modules/wowchemy/i18n/hu.yaml +++ b/modules/wowchemy/i18n/hu.yaml @@ -174,16 +174,13 @@ - id: location translation: Helyszín -- id: pub_uncat - translation: Uncategorized - -- id: pub_conf +- id: paper-conference translation: Conference paper -- id: pub_journal +- id: pub_article_journal translation: Journal article -- id: pub_preprint +- id: pub_article translation: Preprint - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Book -- id: pub_book_section +- id: pub_chapter translation: Book section - id: pub_thesis diff --git a/modules/wowchemy/i18n/id.yaml b/modules/wowchemy/i18n/id.yaml index 8f5a12df..1b66e181 100644 --- a/modules/wowchemy/i18n/id.yaml +++ b/modules/wowchemy/i18n/id.yaml @@ -174,16 +174,13 @@ - id: location translation: Lokasi -- id: pub_uncat - translation: Tidak ada Kategori - -- id: pub_conf +- id: paper-conference translation: Kertas konferensi -- id: pub_journal +- id: pub_article_journal translation: Artikel Jurnal -- id: pub_preprint +- id: pub_article translation: Pracetak - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Buku -- id: pub_book_section +- id: pub_chapter translation: Bagian buku - id: pub_thesis diff --git a/modules/wowchemy/i18n/it.yaml b/modules/wowchemy/i18n/it.yaml index 2a288270..bd552e44 100644 --- a/modules/wowchemy/i18n/it.yaml +++ b/modules/wowchemy/i18n/it.yaml @@ -174,16 +174,13 @@ - id: location translation: Luogo -- id: pub_uncat - translation: Senza categoria - -- id: pub_conf +- id: paper-conference translation: Conference paper -- id: pub_journal +- id: pub_article_journal translation: Journal article -- id: pub_preprint +- id: pub_article translation: Preprint - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Libro -- id: pub_book_section +- id: pub_chapter translation: Sezione Libro - id: pub_thesis diff --git a/modules/wowchemy/i18n/ja.yaml b/modules/wowchemy/i18n/ja.yaml index 7d7e37c7..58fa87fd 100644 --- a/modules/wowchemy/i18n/ja.yaml +++ b/modules/wowchemy/i18n/ja.yaml @@ -174,16 +174,13 @@ - id: location translation: 場所 -- id: pub_uncat - translation: 未分類 - -- id: pub_conf +- id: paper-conference translation: 学会論文 -- id: pub_journal +- id: pub_article_journal translation: ジャーナル記事 -- id: pub_preprint +- id: pub_article translation: プレプリント - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: 書籍 -- id: pub_book_section +- id: pub_chapter translation: Book section - id: pub_thesis diff --git a/modules/wowchemy/i18n/km.yaml b/modules/wowchemy/i18n/km.yaml index f5b94ef0..ce1d257c 100644 --- a/modules/wowchemy/i18n/km.yaml +++ b/modules/wowchemy/i18n/km.yaml @@ -174,16 +174,13 @@ - id: location translation: ទីតាំង -- id: pub_uncat - translation: គ្មានប្រភេទ - -- id: pub_conf +- id: paper-conference translation: សន្និសិទ -- id: pub_journal +- id: pub_article_journal translation: ទិនានុប្បវត្តិ -- id: pub_preprint +- id: pub_article translation: បោះពុម្ព - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: សៀវភៅបោះពុម្ព -- id: pub_book_section +- id: pub_chapter translation: ផ្នែកសៀវភៅ - id: pub_thesis diff --git a/modules/wowchemy/i18n/ko.yaml b/modules/wowchemy/i18n/ko.yaml index 826dc74b..a457287f 100644 --- a/modules/wowchemy/i18n/ko.yaml +++ b/modules/wowchemy/i18n/ko.yaml @@ -174,16 +174,13 @@ - id: location translation: 장소 -- id: pub_uncat - translation: 분류되지 않음 - -- id: pub_conf +- id: paper-conference translation: 학술 대회 논문 -- id: pub_journal +- id: pub_article_journal translation: 저널 논문 -- id: pub_preprint +- id: pub_article translation: 출판 전 논문 - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: 도서 -- id: pub_book_section +- id: pub_chapter translation: 책 소개 면 - id: pub_thesis diff --git a/modules/wowchemy/i18n/lt.yaml b/modules/wowchemy/i18n/lt.yaml index cf64e857..a0ee01a5 100644 --- a/modules/wowchemy/i18n/lt.yaml +++ b/modules/wowchemy/i18n/lt.yaml @@ -174,16 +174,13 @@ - id: location translation: Lokacija -- id: pub_uncat - translation: Nekategorizuota - -- id: pub_conf +- id: paper-conference translation: Konferencijos publikacija -- id: pub_journal +- id: pub_article_journal translation: Mokslinis straipsnis -- id: pub_preprint +- id: pub_article translation: Nerecenzuota publikacija - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Knyga -- id: pub_book_section +- id: pub_chapter translation: Knygos skyrius - id: pub_thesis diff --git a/modules/wowchemy/i18n/lv.yaml b/modules/wowchemy/i18n/lv.yaml index 9d790318..243607bb 100644 --- a/modules/wowchemy/i18n/lv.yaml +++ b/modules/wowchemy/i18n/lv.yaml @@ -174,16 +174,13 @@ - id: location translation: Vieta -- id: pub_uncat - translation: Bez kategorijas - -- id: pub_conf +- id: paper-conference translation: Uzstāšanās konferencē -- id: pub_journal +- id: pub_article_journal translation: Raksts žurnālā -- id: pub_preprint +- id: pub_article translation: Novilkums - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Grāmata -- id: pub_book_section +- id: pub_chapter translation: Grāmatas nodaļa - id: pub_thesis diff --git a/modules/wowchemy/i18n/mg.yaml b/modules/wowchemy/i18n/mg.yaml index b980d82c..0faed64d 100644 --- a/modules/wowchemy/i18n/mg.yaml +++ b/modules/wowchemy/i18n/mg.yaml @@ -174,16 +174,13 @@ - id: location translation: Toerana -- id: pub_uncat - translation: Tsy voasokajy - -- id: pub_conf +- id: paper-conference translation: Taratasy fihaonambe -- id: pub_journal +- id: pub_article_journal translation: Lahatsoratra amin'ny gazety -- id: pub_preprint +- id: pub_article translation: Preprint - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Boky -- id: pub_book_section +- id: pub_chapter translation: fizarana boky - id: pub_thesis diff --git a/modules/wowchemy/i18n/ms-Arab.yaml b/modules/wowchemy/i18n/ms-Arab.yaml index cb3ec3e1..94717430 100644 --- a/modules/wowchemy/i18n/ms-Arab.yaml +++ b/modules/wowchemy/i18n/ms-Arab.yaml @@ -174,16 +174,13 @@ - id: location translation: کدودوقن -- id: pub_uncat - translation: تياد کاتݢوري - -- id: pub_conf +- id: paper-conference translation: کرتس سيدڠ -- id: pub_journal +- id: pub_article_journal translation: ارتيکل جورنل -- id: pub_preprint +- id: pub_article translation: ڤراچيتق - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: بوکو -- id: pub_book_section +- id: pub_chapter translation: بهاݢين بوکو - id: pub_thesis @@ -265,7 +262,7 @@ # Published with - id: published_with - translation: دتربيتکنن دڠن {wowchemy} — ڤمبوات لامن ويب ڤرچوما {repo_link}برسومبر تربوک{/repolink} دان برکواس + translation: دتربيتکنن دڠن {wowchemy} — ڤمبوات لامن ويب ڤرچوما {repo_link}برسومبر تربوک{/repolink} دان برکواس # Feedback widget diff --git a/modules/wowchemy/i18n/ms.yaml b/modules/wowchemy/i18n/ms.yaml index d4982aff..6cffd532 100644 --- a/modules/wowchemy/i18n/ms.yaml +++ b/modules/wowchemy/i18n/ms.yaml @@ -174,16 +174,13 @@ - id: location translation: Kedudukan -- id: pub_uncat - translation: Tiada kategori - -- id: pub_conf +- id: paper-conference translation: Kertas sidang -- id: pub_journal +- id: pub_article_journal translation: Artikel jurnal -- id: pub_preprint +- id: pub_article translation: Pracetak - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Buku -- id: pub_book_section +- id: pub_chapter translation: Bahagian buku - id: pub_thesis diff --git a/modules/wowchemy/i18n/nb.yaml b/modules/wowchemy/i18n/nb.yaml index 61e5eb32..b6c2c9d3 100644 --- a/modules/wowchemy/i18n/nb.yaml +++ b/modules/wowchemy/i18n/nb.yaml @@ -174,16 +174,13 @@ - id: location translation: Sted -- id: pub_uncat - translation: Ukategorisert - -- id: pub_conf +- id: paper-conference translation: Konferanseartikkel -- id: pub_journal +- id: pub_article_journal translation: Tidskriftsartikel -- id: pub_preprint +- id: pub_article translation: Opprinnelig manus (preprint) - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Bok -- id: pub_book_section +- id: pub_chapter translation: Bokkapittel - id: pub_thesis diff --git a/modules/wowchemy/i18n/nl.yaml b/modules/wowchemy/i18n/nl.yaml index 99431d99..b166825d 100644 --- a/modules/wowchemy/i18n/nl.yaml +++ b/modules/wowchemy/i18n/nl.yaml @@ -174,16 +174,13 @@ - id: location translation: Locatie -- id: pub_uncat - translation: Ongecategoriseerd - -- id: pub_conf +- id: paper-conference translation: Conferentiepaper -- id: pub_journal +- id: pub_article_journal translation: Journalartikel -- id: pub_preprint +- id: pub_article translation: Preprint - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Boek -- id: pub_book_section +- id: pub_chapter translation: Boek sectie - id: pub_thesis diff --git a/modules/wowchemy/i18n/pl.yaml b/modules/wowchemy/i18n/pl.yaml index c30e93b4..fbcc293c 100644 --- a/modules/wowchemy/i18n/pl.yaml +++ b/modules/wowchemy/i18n/pl.yaml @@ -174,16 +174,13 @@ - id: location translation: Miejsce -- id: pub_uncat - translation: Nieskategoryzowany - -- id: pub_conf +- id: paper-conference translation: Prezentacja z konferencji -- id: pub_journal +- id: pub_article_journal translation: Artykuł w czasopiśmie -- id: pub_preprint +- id: pub_article translation: Preprint - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Książka -- id: pub_book_section +- id: pub_chapter translation: Rozdział książki - id: pub_thesis diff --git a/modules/wowchemy/i18n/pt.yaml b/modules/wowchemy/i18n/pt.yaml index 4d149f53..97c83020 100644 --- a/modules/wowchemy/i18n/pt.yaml +++ b/modules/wowchemy/i18n/pt.yaml @@ -174,16 +174,13 @@ - id: location translation: Local -- id: pub_uncat - translation: Sem categoria - -- id: pub_conf +- id: paper-conference translation: Artigo de conferência -- id: pub_journal +- id: pub_article_journal translation: Artigo de revista -- id: pub_preprint +- id: pub_article translation: Pré-impressão - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Livro -- id: pub_book_section +- id: pub_chapter translation: Seção de livro - id: pub_thesis diff --git a/modules/wowchemy/i18n/ro.yaml b/modules/wowchemy/i18n/ro.yaml index 44980233..8da88d04 100644 --- a/modules/wowchemy/i18n/ro.yaml +++ b/modules/wowchemy/i18n/ro.yaml @@ -174,16 +174,13 @@ - id: location translation: Localizare -- id: pub_uncat - translation: Fără categorie - -- id: pub_conf +- id: paper-conference translation: Conference paper -- id: pub_journal +- id: pub_article_journal translation: Articol jurnal -- id: pub_preprint +- id: pub_article translation: Preprint - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Carte -- id: pub_book_section +- id: pub_chapter translation: Secțiunea cărți - id: pub_thesis diff --git a/modules/wowchemy/i18n/ru.yaml b/modules/wowchemy/i18n/ru.yaml index 0b0fab3e..b6158275 100644 --- a/modules/wowchemy/i18n/ru.yaml +++ b/modules/wowchemy/i18n/ru.yaml @@ -174,16 +174,13 @@ - id: location translation: Место -- id: pub_uncat - translation: Без категории - -- id: pub_conf +- id: paper-conference translation: Статья для конференции -- id: pub_journal +- id: pub_article_journal translation: Статья для журнала -- id: pub_preprint +- id: pub_article translation: Предварительная печать - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Книга -- id: pub_book_section +- id: pub_chapter translation: Глава книги - id: pub_thesis diff --git a/modules/wowchemy/i18n/so.yaml b/modules/wowchemy/i18n/so.yaml index 2a8067dd..23f969fb 100644 --- a/modules/wowchemy/i18n/so.yaml +++ b/modules/wowchemy/i18n/so.yaml @@ -174,16 +174,13 @@ - id: location translation: Meel -- id: pub_uncat - translation: Kale - -- id: pub_conf +- id: paper-conference translation: Qoraal Shir -- id: pub_journal +- id: pub_article_journal translation: Qoraal Majallad -- id: pub_preprint +- id: pub_article translation: Daabac Hore - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Buug -- id: pub_book_section +- id: pub_chapter translation: Qayb Buug - id: pub_thesis diff --git a/modules/wowchemy/i18n/sv.yaml b/modules/wowchemy/i18n/sv.yaml index 0dfecb70..9908f7de 100644 --- a/modules/wowchemy/i18n/sv.yaml +++ b/modules/wowchemy/i18n/sv.yaml @@ -174,16 +174,13 @@ - id: location translation: Plats -- id: pub_uncat - translation: Okategoriserad - -- id: pub_conf +- id: paper-conference translation: Konferensbidrag -- id: pub_journal +- id: pub_article_journal translation: Tidskriftsartikel -- id: pub_preprint +- id: pub_article translation: Manuscript - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Bok -- id: pub_book_section +- id: pub_chapter translation: Bok sektion - id: pub_thesis diff --git a/modules/wowchemy/i18n/tr.yaml b/modules/wowchemy/i18n/tr.yaml index 78d16273..a7be905c 100644 --- a/modules/wowchemy/i18n/tr.yaml +++ b/modules/wowchemy/i18n/tr.yaml @@ -174,16 +174,13 @@ - id: location translation: Adres -- id: pub_uncat - translation: Uncategorized - -- id: pub_conf +- id: paper-conference translation: Conference paper -- id: pub_journal +- id: pub_article_journal translation: Journal article -- id: pub_preprint +- id: pub_article translation: Preprint - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Book -- id: pub_book_section +- id: pub_chapter translation: Book section - id: pub_thesis diff --git a/modules/wowchemy/i18n/uk.yaml b/modules/wowchemy/i18n/uk.yaml index 02dd5aa0..c92e1bfc 100644 --- a/modules/wowchemy/i18n/uk.yaml +++ b/modules/wowchemy/i18n/uk.yaml @@ -174,16 +174,13 @@ - id: location translation: Місце -- id: pub_uncat - translation: Без категорії - -- id: pub_conf +- id: paper-conference translation: Стаття для конференції -- id: pub_journal +- id: pub_article_journal translation: Стаття для журнала -- id: pub_preprint +- id: pub_article translation: Попередній друк - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Книга -- id: pub_book_section +- id: pub_chapter translation: Розділ книги - id: pub_thesis diff --git a/modules/wowchemy/i18n/vi.yaml b/modules/wowchemy/i18n/vi.yaml index f1d9bf06..8c19b0b9 100644 --- a/modules/wowchemy/i18n/vi.yaml +++ b/modules/wowchemy/i18n/vi.yaml @@ -174,16 +174,13 @@ - id: location translation: Địa Điểm -- id: pub_uncat - translation: Uncategorized - -- id: pub_conf +- id: paper-conference translation: Conference paper -- id: pub_journal +- id: pub_article_journal translation: Journal article -- id: pub_preprint +- id: pub_article translation: Preprint - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: Book -- id: pub_book_section +- id: pub_chapter translation: Book section - id: pub_thesis diff --git a/modules/wowchemy/i18n/zh-Hant.yaml b/modules/wowchemy/i18n/zh-Hant.yaml index 55d81d85..44f22ca2 100644 --- a/modules/wowchemy/i18n/zh-Hant.yaml +++ b/modules/wowchemy/i18n/zh-Hant.yaml @@ -174,16 +174,13 @@ - id: location translation: 位置 -- id: pub_uncat - translation: 未分類 - -- id: pub_conf +- id: paper-conference translation: 會議文章 -- id: pub_journal +- id: pub_article_journal translation: 期刊文章 -- id: pub_preprint +- id: pub_article translation: 影印預覽 - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: 書籍 -- id: pub_book_section +- id: pub_chapter translation: 章節 - id: pub_thesis diff --git a/modules/wowchemy/i18n/zh.yaml b/modules/wowchemy/i18n/zh.yaml index 066500f7..48922ca6 100644 --- a/modules/wowchemy/i18n/zh.yaml +++ b/modules/wowchemy/i18n/zh.yaml @@ -174,16 +174,13 @@ - id: location translation: 位置 -- id: pub_uncat - translation: 未分类 - -- id: pub_conf +- id: paper-conference translation: 会议文章 -- id: pub_journal +- id: pub_article_journal translation: 期刊文章 -- id: pub_preprint +- id: pub_article translation: 预印本 - id: pub_report @@ -192,7 +189,7 @@ - id: pub_book translation: 书籍 -- id: pub_book_section +- id: pub_chapter translation: 章节 - id: pub_thesis diff --git a/modules/wowchemy/layouts/publication/single.html b/modules/wowchemy/layouts/publication/single.html index e9e234ef..456cd83f 100644 --- a/modules/wowchemy/layouts/publication/single.html +++ b/modules/wowchemy/layouts/publication/single.html @@ -1,14 +1,12 @@ {{- define "main" -}} -{{ $pub_types := partial "functions/get_pub_types" $ }} -{{ $pub_type_param := .Params.publication_types | default (slice 0) }} -{{/* Convert string in form `"0"` to int (`0`) */}} -{{ $pub_type := (int (index $pub_type_param 0)) | default 0 }} - -{{/* Validate Pub Type if defined */}} -{{ if gt $pub_type (sub (len $pub_types) 1) }} - {{ warnf "Unknown publication type in %s" .File.Path }} - {{ $pub_type = 0 }} +{{ $pub_type_csl := "" }} +{{ $pub_type_display := "" }} +{{ if .Params.publication_types }} + {{ if reflect.IsSlice .Params.publication_types }} + {{ $pub_type_csl = index .Params.publication_types 0 }} + {{ $pub_type_display = i18n (printf "pub_%s" (strings.Replace $pub_type_csl "-" "_")) | default (strings.Title $pub_type_csl) }} + {{ end }} {{ end }}