mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2025-12-23 05:01:58 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2e5f27a590 | ||
|
|
42259b4cb5 | ||
|
|
924dde4fa7 | ||
|
|
204f7b81c3 | ||
|
|
10881c5627 |
@@ -26,7 +26,8 @@
|
|||||||
|
|
||||||
<!--Log in with SSO-->
|
<!--Log in with SSO-->
|
||||||
{%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %}
|
{%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %}
|
||||||
<div class="login-page-button">
|
<div class="ui divider"></div>
|
||||||
|
<div class="login-page-button ui fluid large button">
|
||||||
<a href="{{ url_for('sso_saml.sso', idp='idp') }}" class="inverted tiny image label">
|
<a href="{{ url_for('sso_saml.sso', idp='idp') }}" class="inverted tiny image label">
|
||||||
{% trans type='TUGRAZ' %} Log in with {{ type }}{% endtrans %}
|
{% trans type='TUGRAZ' %} Log in with {{ type }}{% endtrans %}
|
||||||
<img src="{{ url_for('static', filename=config.INVENIO_THEME_TUGRAZ_ICON)}}" height="20px" />
|
<img src="{{ url_for('static', filename=config.INVENIO_THEME_TUGRAZ_ICON)}}" height="20px" />
|
||||||
|
|||||||
@@ -45,7 +45,8 @@
|
|||||||
|
|
||||||
<!--Sigup with SSO-->
|
<!--Sigup with SSO-->
|
||||||
{%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %}
|
{%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %}
|
||||||
<div class="login-page-button">
|
<div class="ui divider"></div>
|
||||||
|
<div class="login-page-button ui fluid large button">
|
||||||
<a href="{{ url_for('sso_saml.sso', idp='idp') }}" class="inverted tiny image label">
|
<a href="{{ url_for('sso_saml.sso', idp='idp') }}" class="inverted tiny image label">
|
||||||
<span style="font-size: 18px;">{{ _('Sign up with TUGRAZ ') }}</span>
|
<span style="font-size: 18px;">{{ _('Sign up with TUGRAZ ') }}</span>
|
||||||
<img src="{{ url_for('static', filename=config.INVENIO_THEME_TUGRAZ_ICON)}}" height="20px" />
|
<img src="{{ url_for('static', filename=config.INVENIO_THEME_TUGRAZ_ICON)}}" height="20px" />
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: invenio-theme-tugraz 1.0.4\n"
|
"Project-Id-Version: invenio-theme-tugraz 1.0.4\n"
|
||||||
"Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n"
|
"Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n"
|
||||||
"POT-Creation-Date: 2020-10-06 14:28+0200\n"
|
"POT-Creation-Date: 2020-12-14 09:17+0100\n"
|
||||||
"PO-Revision-Date: 2020-10-06 10:27+0200\n"
|
"PO-Revision-Date: 2020-10-06 10:27+0200\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language: de\n"
|
"Language: de\n"
|
||||||
@@ -17,19 +17,18 @@ msgstr ""
|
|||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=utf-8\n"
|
"Content-Type: text/plain; charset=utf-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Generated-By: Babel 2.8.0\n"
|
"Generated-By: Babel 2.9.0\n"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/config.py:13 invenio_theme_tugraz/config.py:52
|
#: invenio_theme_tugraz/config.py:13 invenio_theme_tugraz/config.py:50
|
||||||
msgid "TU Graz Repository"
|
msgid "TU Graz Repository"
|
||||||
msgstr ""
|
msgstr "TU Graz Repository"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/config.py:55
|
#: invenio_theme_tugraz/config.py:53
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:31
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:31
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:67
|
|
||||||
msgid "Repository"
|
msgid "Repository"
|
||||||
msgstr "Repository"
|
msgstr "Repository"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/config.py:80
|
#: invenio_theme_tugraz/config.py:76
|
||||||
msgid "German"
|
msgid "German"
|
||||||
msgstr "Deutsche"
|
msgstr "Deutsche"
|
||||||
|
|
||||||
@@ -52,63 +51,65 @@ msgstr ""
|
|||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:4
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:4
|
||||||
msgid "Trusted"
|
msgid "Trusted"
|
||||||
msgstr ""
|
msgstr "Vertrauenswürdig"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:4
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:4
|
||||||
msgid ""
|
msgid ""
|
||||||
"built and operated by CERN and OpenAIRE to ensure that everyone can join "
|
"built and operated by CERN and OpenAIRE to ensure that everyone can join "
|
||||||
"in Open Science."
|
"in Open Science."
|
||||||
msgstr ""
|
msgstr "Gebaut und betrieben von CERN und OpenAIRE; um sicherzugehen, dass jedeR Zugang zu Open Science hat"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:5
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:5
|
||||||
msgid "Citeable"
|
msgid "Citeable"
|
||||||
msgstr ""
|
msgstr "Zitierfähig "
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:5
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:5
|
||||||
msgid ""
|
msgid ""
|
||||||
"every upload is assigned a Digital Object Identifier (DOI), to make them "
|
"every upload is assigned a Digital Object Identifier (DOI), to make them "
|
||||||
"citable and trackable."
|
"citable and trackable."
|
||||||
msgstr ""
|
msgstr "Jeder Upload erhält eine DOI um sicherzustellen,"
|
||||||
|
"dass er zitierbar und auffindbar ist"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:6
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:6
|
||||||
msgid "No waiting time"
|
msgid "No waiting time"
|
||||||
msgstr ""
|
msgstr "Keine Wartezeit"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:6
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:6
|
||||||
msgid ""
|
msgid ""
|
||||||
"Uploads are made available online as soon as you hit publish, and your "
|
"Uploads are made available online as soon as you hit publish, and your "
|
||||||
"DOI is registered within seconds."
|
"DOI is registered within seconds."
|
||||||
msgstr ""
|
msgstr "Uploads stehen sofort nach drücken auf “Veröffentlichen” zur Verfügung. Ihre DOI wird innerhalb von Sekunden registriert."
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:7
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:7
|
||||||
msgid "Open or closed"
|
msgid "Open or closed"
|
||||||
msgstr ""
|
msgstr "Offen oder geschlossen"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:7
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:7
|
||||||
msgid ""
|
msgid ""
|
||||||
"Share e.g. anonymized clinical trial data with only medical professionals"
|
"Share e.g. anonymized clinical trial data with only medical professionals"
|
||||||
" via our restricted access mode."
|
" via our restricted access mode."
|
||||||
msgstr ""
|
msgstr "Teilen Sie z.B. anonymisierte klinische Studiendaten nur mit medizinischem Fachpersonal"
|
||||||
|
"über unseren eingeschränkten Zugriffsmodus."
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:8
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:8
|
||||||
msgid "Versioning"
|
msgid "Versioning"
|
||||||
msgstr ""
|
msgstr "Versionierung"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:8
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:8
|
||||||
msgid "Easily update your dataset with our versioning feature."
|
msgid "Easily update your dataset with our versioning feature."
|
||||||
msgstr ""
|
msgstr "Einfaches Updaten ihrer Datensätze mit unserere Versionierung."
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:9
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:9
|
||||||
msgid "Usage statisics"
|
msgid "Usage statisics"
|
||||||
msgstr ""
|
msgstr "Nutzungsstatistiken"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:9
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:9
|
||||||
msgid "All uploads display standards compliant usage statistics"
|
msgid "All uploads display standards compliant usage statistics"
|
||||||
msgstr ""
|
msgstr "Alle Uploads entsprechen den Standards der Nutzungsstatistiken."
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:34
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:34
|
||||||
msgid "Impressum"
|
msgid "Impressum"
|
||||||
msgstr ""
|
msgstr "Imprint"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:38
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:38
|
||||||
msgid "Data protection"
|
msgid "Data protection"
|
||||||
@@ -116,43 +117,43 @@ msgstr "Datenschutzerklärung"
|
|||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:42
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:42
|
||||||
msgid "Feedback"
|
msgid "Feedback"
|
||||||
msgstr ""
|
msgstr "Feedback"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:51
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:51
|
||||||
msgid "Features"
|
msgid "Features"
|
||||||
msgstr ""
|
msgstr "Features"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:53
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:53
|
||||||
msgid "Scalability"
|
msgid "Scalability"
|
||||||
msgstr ""
|
msgstr "Skalierbarkeit"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:55
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:55
|
||||||
msgid "Institutional integration"
|
msgid "Institutional integration"
|
||||||
msgstr ""
|
msgstr "Institutionelle Einbindung"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:57
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:57
|
||||||
msgid "Next Generation Repository"
|
msgid "Next Generation Repository"
|
||||||
msgstr ""
|
msgstr "Repositorium der nächsten Generation"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:60
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:60
|
||||||
msgid "Repository Profiles"
|
msgid "Repository Profiles"
|
||||||
msgstr ""
|
msgstr "Repositorienprofile"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:62
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:62
|
||||||
msgid "Resilient"
|
msgid "Resilient"
|
||||||
msgstr ""
|
msgstr "Resilient, widerstandsfähig"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:69
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:69
|
||||||
msgid "Connected Services"
|
msgid "Connected Services"
|
||||||
msgstr ""
|
msgstr "Verbundene Services "
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:73
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:73
|
||||||
msgid "PURE"
|
msgid "PURE"
|
||||||
msgstr ""
|
msgstr "PURE"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:76
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:76
|
||||||
msgid "CampusOnline"
|
msgid "CampusOnline"
|
||||||
msgstr ""
|
msgstr "CampusOnline"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:79
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:79
|
||||||
msgid "Research Data Management"
|
msgid "Research Data Management"
|
||||||
@@ -160,7 +161,7 @@ msgstr "Forschungsdatenmanagement"
|
|||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:86
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:86
|
||||||
msgid "Accessibility"
|
msgid "Accessibility"
|
||||||
msgstr ""
|
msgstr "Barrierefreiheit"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:87
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:87
|
||||||
msgid "Tipp:"
|
msgid "Tipp:"
|
||||||
@@ -168,15 +169,15 @@ msgstr ""
|
|||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:87
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:87
|
||||||
msgid "Use Ctrl + and Crtl -"
|
msgid "Use Ctrl + and Crtl -"
|
||||||
msgstr ""
|
msgstr "Verwenden Sie Strg+ und Strg-"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:87
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:87
|
||||||
msgid "to change the font size."
|
msgid "to change the font size."
|
||||||
msgstr ""
|
msgstr "Um die Schriftgröße zu ändern."
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:34
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:35
|
||||||
msgid "Home"
|
msgid "Home"
|
||||||
msgstr ""
|
msgstr "Startseite"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:24
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:24
|
||||||
msgid "Type and press enter to search"
|
msgid "Type and press enter to search"
|
||||||
@@ -184,19 +185,19 @@ msgstr "Suchbegriff eingeben und “Enter” drücken (?)"
|
|||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:40
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:40
|
||||||
msgid "Recent uploads"
|
msgid "Recent uploads"
|
||||||
msgstr ""
|
msgstr "Kürzlich hochgeladene Dateien"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:52
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:52
|
||||||
msgid "Publication date"
|
msgid "Publication date"
|
||||||
msgstr ""
|
msgstr "Datum der Veröffentlichung"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:57
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:57
|
||||||
msgid "Version"
|
msgid "Version"
|
||||||
msgstr ""
|
msgstr "Version"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:62
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:62
|
||||||
msgid "Resource type"
|
msgid "Resource type"
|
||||||
msgstr ""
|
msgstr "Art der Veröffentlichung"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:91
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:91
|
||||||
#, python-format
|
#, python-format
|
||||||
@@ -204,157 +205,159 @@ msgid ""
|
|||||||
"\n"
|
"\n"
|
||||||
" Uploaded on %(date)s\n"
|
" Uploaded on %(date)s\n"
|
||||||
" "
|
" "
|
||||||
msgstr ""
|
msgstr "Hochgeladen am"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:110
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:110
|
||||||
msgid "More"
|
msgid "More"
|
||||||
msgstr ""
|
msgstr "Mehr"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:119
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:119
|
||||||
msgid "Need help?"
|
msgid "Need help?"
|
||||||
msgstr ""
|
msgstr "Brauchen Sie Hilfe?"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:123
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:123
|
||||||
msgid "Contact us"
|
msgid "Contact us"
|
||||||
msgstr ""
|
msgstr "Erreichen Sie uns"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:127
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:127
|
||||||
msgid "prioritizes all Recent uploads."
|
msgid "prioritizes all Recent uploads."
|
||||||
msgstr ""
|
msgstr "Reiht die neuesten Uploads vor"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:130
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:130
|
||||||
msgid "We can help with:"
|
msgid "We can help with:"
|
||||||
msgstr ""
|
msgstr "Dabei können wir Sie unterstützen"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:135
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:135
|
||||||
msgid "Uploading your research data, software, preprints, etc."
|
msgid "Uploading your research data, software, preprints, etc."
|
||||||
msgstr ""
|
msgstr "Hochladen Ihrer Forschungsdaten, Software, Preprints, etc."
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:136
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:136
|
||||||
msgid "One-on-one with"
|
msgid "One-on-one with"
|
||||||
msgstr ""
|
msgstr "Eins zu eins mit"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:136
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:136
|
||||||
msgid "supporters."
|
msgid "supporters."
|
||||||
msgstr ""
|
msgstr "Unterstützern"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:137
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:137
|
||||||
msgid "Quota increases beyond our default policy."
|
msgid "Quota increases beyond our default policy."
|
||||||
msgstr ""
|
msgstr "Erhöhung Ihres Kontingents über das vertraglich Zugesicherte hinaus"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:138
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:138
|
||||||
msgid "Scripts for automated uploading of larger datasets."
|
msgid "Scripts for automated uploading of larger datasets."
|
||||||
msgstr ""
|
msgstr "Programme, die den automatischen Upload großer Datenmengen unterstützen"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:143
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:143
|
||||||
msgid "Why use"
|
msgid "Why use"
|
||||||
msgstr ""
|
msgstr "Warum"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:77
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:67
|
||||||
|
#, fuzzy
|
||||||
|
msgid "REPOSITORY"
|
||||||
|
msgstr "Repository"
|
||||||
|
|
||||||
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:69
|
||||||
|
msgid "LIBRARY & ARCHIVES"
|
||||||
|
msgstr "Bibliothek und Archiv"
|
||||||
|
|
||||||
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:79
|
||||||
msgid "SCIENCE"
|
msgid "SCIENCE"
|
||||||
msgstr "Wissenschaft"
|
msgstr "Wissenschaft"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:78
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:80
|
||||||
msgid "PASSION"
|
msgid "PASSION"
|
||||||
msgstr "Leidenschaft"
|
msgstr "Leidenschaft"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:79
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:81
|
||||||
msgid "TECHNOLOGY"
|
msgid "TECHNOLOGY"
|
||||||
msgstr "Technik"
|
msgstr "Technik"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:8
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:8
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:59
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:60
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:80
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:81
|
||||||
msgid "Sign Up"
|
msgid "Sign up"
|
||||||
msgstr ""
|
msgstr "Registrierung"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:15
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:15
|
||||||
msgid "Log in"
|
msgid "Log in"
|
||||||
msgstr "Einloggen"
|
msgstr "Einloggen"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:30
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:30
|
||||||
msgid "Logout"
|
msgid "Sign out"
|
||||||
msgstr "Ausloggen"
|
msgstr "Ausloggen"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:24
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:24
|
||||||
msgid "Log in to Repository"
|
msgid "Log in to Repository"
|
||||||
msgstr ""
|
msgstr "Ins repositorium einloggen"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:31
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:32
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid " Log in with %(type)s"
|
msgid " Log in with %(type)s"
|
||||||
msgstr ""
|
msgstr "Einloggen mit"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:35
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:36
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:54
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:55
|
||||||
msgid "Or"
|
msgid "Or"
|
||||||
msgstr "Oder"
|
msgstr "Oder"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:46
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:47
|
||||||
msgid "Log In"
|
msgid "Log In"
|
||||||
msgstr "Einloggen"
|
msgstr "Einloggen"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:58
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:59
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "New to %(sitename)s?"
|
msgid "New to %(sitename)s?"
|
||||||
msgstr ""
|
msgstr "Neu im %(sitename)s?"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:68
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:69
|
||||||
msgid "Forgot password?"
|
msgid "Forgot password?"
|
||||||
msgstr ""
|
msgstr "Passwort vergessen"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:22
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:22
|
||||||
msgid "Create an Account"
|
msgid "Create an Account"
|
||||||
msgstr ""
|
msgstr "Einen Account erstellen"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:27
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:27
|
||||||
msgid "Citeable. Discoverable."
|
msgid "Citeable. Discoverable."
|
||||||
msgstr ""
|
msgstr "Zitierfähig. Auffindbar."
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:29
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:29
|
||||||
msgid ""
|
msgid ""
|
||||||
"Uploads get a Digital Object Identifier (DOI) to make them easily and "
|
"Uploads get a Digital Object Identifier (DOI) to make them easily and "
|
||||||
"uniquely citeable."
|
"uniquely citeable."
|
||||||
msgstr ""
|
msgstr "Uploads erhalten eine DOI und werden damit leicht"
|
||||||
|
"auffindbar und zitierfähig."
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:30
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:30
|
||||||
msgid "Communities."
|
msgid "Communities."
|
||||||
msgstr ""
|
msgstr "Communities"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:32
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:32
|
||||||
msgid ""
|
msgid ""
|
||||||
"Accept or reject uploads to your own community (e.g workshops, EU "
|
"Accept or reject uploads to your own community (e.g workshops, EU "
|
||||||
"projects, institutions or entire disciplines)."
|
"projects, institutions or entire disciplines)."
|
||||||
msgstr ""
|
msgstr "Annehmen oder Ablehnen von Uploads in Ihrer eigenen Community (z.B. workshop, EU"
|
||||||
|
"-Projekt, Forschungseinrichtung, Disziplin)"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:34
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:34
|
||||||
msgid "Trusted Research Data Management"
|
msgid "Trusted Research Data Management"
|
||||||
msgstr ""
|
msgstr "Vertrauenswürdiges Forschungsdatenmanagement"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:36
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:36
|
||||||
msgid ""
|
msgid ""
|
||||||
"Built on top of TU Graz expertise in managing of the research data from "
|
"Built on top of TU Graz expertise in managing of the research data from "
|
||||||
"the Graz University of Technology."
|
"the Graz University of Technology."
|
||||||
msgstr ""
|
msgstr "Gebaut basierend auf Expertise der"
|
||||||
|
"TU Graz im Bereich Data Management"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:50
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:51
|
||||||
msgid "Sign up with TUGRAZ "
|
msgid "Sign up with TUGRAZ "
|
||||||
msgstr ""
|
msgstr "Mit Ihrem TUGonline-Account einloggen"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/details/doi.html:28
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/details/doi.html:28
|
||||||
msgid "RDM DOI Badge"
|
msgid "RDM DOI Badge"
|
||||||
msgstr ""
|
msgstr "RDM DOI Abzeichen"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/details/doi.html:32
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/details/doi.html:32
|
||||||
msgid "DOI"
|
msgid "DOI"
|
||||||
msgstr ""
|
msgstr "DOI"
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "your research is stored safely for "
|
|
||||||
#~ "the future in CERN’s Data Centre "
|
|
||||||
#~ "for as long as CERN exists."
|
|
||||||
#~ msgstr ""
|
|
||||||
|
|
||||||
#~ msgid "One-on-one with {{config.THEME_SITENAME}} supporters."
|
|
||||||
#~ msgstr ""
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,28 +7,27 @@
|
|||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: invenio-theme-tugraz 1.0.4\n"
|
"Project-Id-Version: invenio-theme-tugraz 1.1.0\n"
|
||||||
"Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n"
|
"Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n"
|
||||||
"POT-Creation-Date: 2020-10-06 14:28+0200\n"
|
"POT-Creation-Date: 2020-12-14 09:17+0100\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=utf-8\n"
|
"Content-Type: text/plain; charset=utf-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Generated-By: Babel 2.8.0\n"
|
"Generated-By: Babel 2.9.0\n"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/config.py:13 invenio_theme_tugraz/config.py:52
|
#: invenio_theme_tugraz/config.py:13 invenio_theme_tugraz/config.py:50
|
||||||
msgid "TU Graz Repository"
|
msgid "TU Graz Repository"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/config.py:55
|
#: invenio_theme_tugraz/config.py:53
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:31
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:31
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:67
|
|
||||||
msgid "Repository"
|
msgid "Repository"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/config.py:80
|
#: invenio_theme_tugraz/config.py:76
|
||||||
msgid "German"
|
msgid "German"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -171,7 +170,7 @@ msgstr ""
|
|||||||
msgid "to change the font size."
|
msgid "to change the font size."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:34
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:35
|
||||||
msgid "Home"
|
msgid "Home"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -247,22 +246,30 @@ msgstr ""
|
|||||||
msgid "Why use"
|
msgid "Why use"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:77
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:67
|
||||||
msgid "SCIENCE"
|
msgid "REPOSITORY"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:78
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:69
|
||||||
msgid "PASSION"
|
msgid "LIBRARY & ARCHIVES"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:79
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:79
|
||||||
|
msgid "SCIENCE"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:80
|
||||||
|
msgid "PASSION"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:81
|
||||||
msgid "TECHNOLOGY"
|
msgid "TECHNOLOGY"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:8
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:8
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:59
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:60
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:80
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:81
|
||||||
msgid "Sign Up"
|
msgid "Sign up"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:15
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:15
|
||||||
@@ -270,33 +277,33 @@ msgid "Log in"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:30
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:30
|
||||||
msgid "Logout"
|
msgid "Sign out"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:24
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:24
|
||||||
msgid "Log in to Repository"
|
msgid "Log in to Repository"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:31
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:32
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid " Log in with %(type)s"
|
msgid " Log in with %(type)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:35
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:36
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:54
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:55
|
||||||
msgid "Or"
|
msgid "Or"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:46
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:47
|
||||||
msgid "Log In"
|
msgid "Log In"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:58
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:59
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "New to %(sitename)s?"
|
msgid "New to %(sitename)s?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:68
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:69
|
||||||
msgid "Forgot password?"
|
msgid "Forgot password?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -334,7 +341,7 @@ msgid ""
|
|||||||
"the Graz University of Technology."
|
"the Graz University of Technology."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:50
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:51
|
||||||
msgid "Sign up with TUGRAZ "
|
msgid "Sign up with TUGRAZ "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
@@ -12,4 +12,4 @@ This file is imported by ``invenio_theme_tugraz.__init__``,
|
|||||||
and parsed by ``setup.py``.
|
and parsed by ``setup.py``.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__version__ = "1.1.0"
|
__version__ = "1.3.0"
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ def index():
|
|||||||
return render_template(
|
return render_template(
|
||||||
"invenio_theme_tugraz/index.html",
|
"invenio_theme_tugraz/index.html",
|
||||||
records=FrontpageRecordsSearch()[:5].sort("-created").execute(),
|
records=FrontpageRecordsSearch()[:5].sort("-created").execute(),
|
||||||
) # pragma: no cover
|
)
|
||||||
|
|
||||||
|
|
||||||
@blueprint.app_template_filter("make_dict_like")
|
@blueprint.app_template_filter("make_dict_like")
|
||||||
@@ -38,10 +38,10 @@ def make_dict_like(value: str, key: str) -> Dict[str, str]:
|
|||||||
|
|
||||||
in the form of a key -> value pair.
|
in the form of a key -> value pair.
|
||||||
"""
|
"""
|
||||||
return {key: value} # pragma: no cover
|
return {key: value}
|
||||||
|
|
||||||
|
|
||||||
@blueprint.app_template_filter("cast_to_dict")
|
@blueprint.app_template_filter("cast_to_dict")
|
||||||
def cast_to_dict(attr_dict):
|
def cast_to_dict(attr_dict):
|
||||||
"""Return the dict structure of AttrDict variable."""
|
"""Return the dict structure of AttrDict variable."""
|
||||||
return AttrDict.to_dict(attr_dict) # pragma: no cover
|
return AttrDict.to_dict(attr_dict)
|
||||||
|
|||||||
3
setup.py
3
setup.py
@@ -17,6 +17,9 @@ history = open("CHANGES.rst").read()
|
|||||||
|
|
||||||
tests_require = [
|
tests_require = [
|
||||||
"pytest-invenio>=1.4.0",
|
"pytest-invenio>=1.4.0",
|
||||||
|
'invenio-app>=1.3.0,<2.0.0',
|
||||||
|
# TODO: remove once a new release is out
|
||||||
|
'docker-services-cli>=0.2.1,<0.3.0'
|
||||||
]
|
]
|
||||||
|
|
||||||
extras_require = {
|
extras_require = {
|
||||||
|
|||||||
22
tests/ui/conftest.py
Normal file
22
tests/ui/conftest.py
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
#
|
||||||
|
# Copyright (C) 2020 mojib wali.
|
||||||
|
#
|
||||||
|
# invenio-theme-tugraz is free software; you can redistribute it and/or
|
||||||
|
# modify it under the terms of the MIT License; see LICENSE file for more
|
||||||
|
# details.
|
||||||
|
|
||||||
|
"""Pytest configuration.
|
||||||
|
|
||||||
|
See https://pytest-invenio.readthedocs.io/ for documentation on which test
|
||||||
|
fixtures are available.
|
||||||
|
"""
|
||||||
|
|
||||||
|
import pytest
|
||||||
|
from invenio_app.factory import create_ui
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope='module')
|
||||||
|
def create_app(instance_path):
|
||||||
|
"""Application factory fixture."""
|
||||||
|
return create_ui
|
||||||
33
tests/ui/test_views.py
Normal file
33
tests/ui/test_views.py
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
#
|
||||||
|
# Copyright (C) 2020 mojib wali.
|
||||||
|
#
|
||||||
|
# invenio-theme-tugraz is free software; you can redistribute it and/or
|
||||||
|
# modify it under the terms of the MIT License; see LICENSE file for more
|
||||||
|
# details.
|
||||||
|
|
||||||
|
"""Test views."""
|
||||||
|
|
||||||
|
from elasticsearch_dsl.utils import AttrDict
|
||||||
|
|
||||||
|
from invenio_theme_tugraz.views import cast_to_dict, make_dict_like
|
||||||
|
|
||||||
|
|
||||||
|
def test_make_dict_like():
|
||||||
|
"""Test make_dict_like."""
|
||||||
|
access = {
|
||||||
|
"access_right" : "open"
|
||||||
|
}
|
||||||
|
dicts = make_dict_like("open", "access_right")
|
||||||
|
assert access == dicts
|
||||||
|
|
||||||
|
|
||||||
|
def test_cast_to_dict():
|
||||||
|
"""Test cast_to_dict."""
|
||||||
|
resource_type = {
|
||||||
|
"subtype" : "publication-datamanagementplan",
|
||||||
|
"type" : "publication"
|
||||||
|
}
|
||||||
|
expected = {'subtype': 'publication-datamanagementplan', 'type': 'publication'}
|
||||||
|
attr = cast_to_dict(AttrDict(resource_type))
|
||||||
|
assert expected == attr
|
||||||
Reference in New Issue
Block a user