Compare commits

...

15 Commits

Author SHA1 Message Date
Mojib Wali
e8a8ee88b7 v2.1.0 2021-04-21 16:07:57 +02:00
mb-wali
7f5dae65ac ui: adds blueprint routes for footer links 2021-04-21 13:05:34 +02:00
Mojib Wali
8b606007cd v2.0.9 2021-04-15 09:32:22 +02:00
mb-wali
32e785cb28 bugfix: created field using old metadata field 2021-04-15 08:33:28 +02:00
rekt-hard
765c43c283 fix: blur link on click, clickable login with TUG button
closes #184 #183
2021-04-14 14:02:56 +02:00
Mojib Wali
bfe2c45b09 v2.0.8 2021-04-12 14:26:23 +02:00
Mojib Wali
d511a3d9c7 fileupload: max storage revert to default 2021-04-12 14:25:58 +02:00
rekt-hard
83fe44db8e feature: footer links 2021-04-12 14:25:39 +02:00
Mojib Wali
41bfcf0cee v2.0.7 2021-04-09 14:01:17 +02:00
Mojib Wali
bc1c9bcc9c depositform: increase the fileupload 2021-04-09 13:56:17 +02:00
Mojib Wali
ae21366bfa v2.0.6 2021-04-08 09:14:27 +02:00
Mojib Wali
9e92934451 bugfixes: configs & translations
* bugfixes: modified config vars
* refactor: text of instance message
* translations: adds new trans
* translation: refactor some german translation
* footer: adds handbook link
2021-04-08 09:13:58 +02:00
david
0df53c42fa style: translation and minor documentation 2021-04-07 10:39:57 +02:00
david
88d7125acf fix: rename, set and use env variable 2021-04-07 10:39:57 +02:00
David Eckhard
8425d410f2 feature: add test instance notification 2021-04-07 10:39:57 +02:00
24 changed files with 322 additions and 156 deletions

View File

@@ -33,7 +33,8 @@ recursive-include invenio_theme_tugraz *.scss
recursive-include invenio_theme_tugraz *.svg recursive-include invenio_theme_tugraz *.svg
recursive-include invenio_theme_tugraz *.less recursive-include invenio_theme_tugraz *.less
recursive-include invenio_theme_tugraz *.ico recursive-include invenio_theme_tugraz *.ico
recursive-include invenio_theme_tugraz *.pdf
recursive-include tests *.py recursive-include tests *.py
recursive-include invenio_theme_tugraz *.jpg recursive-include invenio_theme_tugraz *.jpg
recursive-include invenio_theme_tugraz *.gitkeep recursive-include invenio_theme_tugraz *.gitkeep
recursive-include .github/workflows *.yml recursive-include .github/workflows *.yml

View File

@@ -481,7 +481,7 @@ export class RDMDepositForm extends Component {
</Grid.Column> </Grid.Column>
<Ref innerRef={this.sidebarRef}> <Ref innerRef={this.sidebarRef}>
<Grid.Column width={5} className="deposit-sidebar"> <Grid.Column width={5} className="deposit-sidebar">
<Sticky context={this.sidebarRef} offset={20}> <Sticky context={this.sidebarRef} offset={50}>
<Card className="actions"> <Card className="actions">
<Card.Content> <Card.Content>
<SaveButton fluid className="save-button" /> <SaveButton fluid className="save-button" />

View File

@@ -1,6 +1,12 @@
import $ from 'jquery'; import $ from 'jquery';
import 'semantic-ui-css';
// called on document ready
$(function() { $(function() {
importZammadScript();
});
function importZammadScript() {
let scriptNode = document.createElement("hidden"); //needed for zammad script let scriptNode = document.createElement("hidden"); //needed for zammad script
scriptNode.id = "zammad_form_script"; scriptNode.id = "zammad_form_script";
scriptNode.src = "https://ub-support.tugraz.at/assets/form/form.js"; scriptNode.src = "https://ub-support.tugraz.at/assets/form/form.js";
@@ -15,7 +21,15 @@ $(function() {
modal: true modal: true
}); });
}); });
}); }
// used for sticky test instance notification
$('.ui.sticky.test-instance')
.sticky({
context: 'body'
})
;
export function toggleVisibility(id) { export function toggleVisibility(id) {
var element = document.getElementById(id); var element = document.getElementById(id);

View File

@@ -25,14 +25,24 @@
padding-top: 15px; padding-top: 15px;
padding-bottom: 15px; padding-bottom: 15px;
font-size: 16px; font-size: 16px;
a { a {
text-decoration: none; text-decoration: none;
color: @footerGrey; color: @footerGrey;
&:hover, &:focus { // :focus-visible activates on keyboard only
&:hover, &:focus:focus-visible {
color: @primaryLink; color: @primaryLink;
background-color: @primaryLinkHoverBackground; background-color: @primaryLinkHoverBackground;
i.icon.download {
color: @tugrazRed;
}
}
// remove blue focus outline if clicked with mouse
&:focus:not(:focus-visible) {
outline-style: none;
} }
} }
} }

View File

@@ -247,3 +247,10 @@ svg:not(:root) {
span.home-inline{ span.home-inline{
white-space: nowrap; white-space: nowrap;
} }
.test-instance{
text-align: center;
background-color: @notificationBackground;
border: solid @notificationBorder 1px;
z-index: 100000;
}

View File

@@ -51,7 +51,7 @@
//account (signin, signup) specific // account (signin, signup) specific
@primaryFormAccounts : #fff; @primaryFormAccounts : #fff;
@formAccountsInputPlaceholder : silver; @formAccountsInputPlaceholder : silver;
@fieldInputSelectionBackground: #50a2ce; @fieldInputSelectionBackground: #50a2ce;
@@ -67,3 +67,7 @@
// input // input
@outlineColor: #85B7D9; @outlineColor: #85B7D9;
// notification
@notificationBackground: #fffaf3;
@notificationBorder: #e2d5c2;

View File

@@ -17,7 +17,9 @@ INVENIO_THEME_TUGRAZ_DEFAULT_VALUE = _("TU Graz Repository")
INVENIO_THEME_TUGRAZ_BASE_TEMPLATE = "invenio_theme_tugraz/base.html" INVENIO_THEME_TUGRAZ_BASE_TEMPLATE = "invenio_theme_tugraz/base.html"
"""TU Graz Default base template""" """TU Graz Default base template"""
INVENIO_THEME_TUGRAZ_ACCOUNT_BASE = "invenio_theme_tugraz/accounts/accounts_base.html" INVENIO_THEME_TUGRAZ_ACCOUNT_BASE = (
"invenio_theme_tugraz/accounts/accounts_base.html"
)
"""TU Graz Default account base template""" """TU Graz Default account base template"""
INVENIO_THEME_TUGRAZ_ICON = "images/icon_use.png" INVENIO_THEME_TUGRAZ_ICON = "images/icon_use.png"
@@ -26,9 +28,16 @@ INVENIO_THEME_TUGRAZ_ICON = "images/icon_use.png"
INVENIO_THEME_TUGRAZ_LOGIN_IMG = "images/login_logo.png" INVENIO_THEME_TUGRAZ_LOGIN_IMG = "images/login_logo.png"
"""TU Logo for forms""" """TU Logo for forms"""
INVENIO_THEME_TUGRAZ_CONTACT_FORM = False THEME_TUGRAZ_CONTACT_FORM = False
"""Enable/Disable Contact form.""" """Enable/Disable Contact form."""
THEME_TUGRAZ_PRODUCTION = False
"""Production environment.
Can also be set as an environment variable in a .env file. Then the name
has to be 'INVENIO_THEME_TUGRAZ_PRODUCTION'.
"""
# Invenio-theme # Invenio-theme
# ============ # ============
# See https://invenio-theme.readthedocs.io/en/latest/configuration.html # See https://invenio-theme.readthedocs.io/en/latest/configuration.html
@@ -67,7 +76,9 @@ THEME_SITENAME = _("Repository")
SECURITY_LOGIN_USER_TEMPLATE = "invenio_theme_tugraz/accounts/login_user.html" SECURITY_LOGIN_USER_TEMPLATE = "invenio_theme_tugraz/accounts/login_user.html"
"""Login template""" """Login template"""
SECURITY_REGISTER_USER_TEMPLATE = "invenio_theme_tugraz/accounts/register_user.html" SECURITY_REGISTER_USER_TEMPLATE = (
"invenio_theme_tugraz/accounts/register_user.html"
)
"""Sigup template""" """Sigup template"""
# Invenio-I18N # Invenio-I18N
@@ -108,6 +119,9 @@ DEPOSITS_HEADER_TEMPLATE = "invenio_theme_tugraz/header.html"
TUG_ROUTES = { TUG_ROUTES = {
"index": "/", "index": "/",
"comingsoon": "/comingsoon", "comingsoon": "/comingsoon",
"guide": "/guide",
"terms": "/terms",
"gdpr": "/gdpr",
"deposit_create": "/uploads/new", "deposit_create": "/uploads/new",
"deposit_edit": "/uploads/<pid_value>", "deposit_edit": "/uploads/<pid_value>",
"getdoi": "/getdoi", "getdoi": "/getdoi",

View File

@@ -34,5 +34,5 @@ class InvenioThemeTugraz(object):
def init_config(self, app): def init_config(self, app):
"""Initialize configuration.""" """Initialize configuration."""
for k in dir(config): for k in dir(config):
if k.startswith("INVENIO_THEME_TUGRAZ_"): if k.startswith("INVENIO_THEME_TUGRAZ_") or k.startswith("THEME_TUGRAZ_"):
app.config.setdefault(k, getattr(config, k)) app.config.setdefault(k, getattr(config, k))

View File

@@ -56,6 +56,12 @@
{%- endblock head %} {%- endblock head %}
</head> </head>
<body ng-csp {% if body_css_classes %} class="{{ body_css_classes|join(' ') }}"{% endif %}{% if g.ln %} lang="{{ g.ln.split('_', 1)[0]|safe }}"{% if rtl_direction %} {{ rtl_direction|safe }}{% endif %}{% endif %} itemscope itemtype="http://schema.org/WebPage" data-spy="scroll" data-target=".scrollspy-target"> <body ng-csp {% if body_css_classes %} class="{{ body_css_classes|join(' ') }}"{% endif %}{% if g.ln %} lang="{{ g.ln.split('_', 1)[0]|safe }}"{% if rtl_direction %} {{ rtl_direction|safe }}{% endif %}{% endif %} itemscope itemtype="http://schema.org/WebPage" data-spy="scroll" data-target=".scrollspy-target">
{% if not config.THEME_TUGRAZ_PRODUCTION %}
<div class="ui sticky test-instance">
<h4>{{_ ("Test Instance") }}</h4>
<p>{{_ ("This is the test instance of the TU Graz Repository.") }}</p>
</div>
{% endif %}
{%- block body %} {%- block body %}
{%- block browserupgrade %} {%- block browserupgrade %}
<!--[if lt IE 8]> <!--[if lt IE 8]>

View File

@@ -25,12 +25,10 @@
<div class="ui divider"></div> <div class="ui divider"></div>
<!--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 ui fluid large button"> <a href="{{ url_for('sso_saml.sso', idp='idp') }}" class="login-page-button ui fluid large button">
<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" /> </a>
</a>
</div>
<div class="spacer-long"></div> <div class="spacer-long"></div>
<div class="ui inverted horizontal divider"><span class="text-color">{{_ ("Or")}}</span></div> <div class="ui inverted horizontal divider"><span class="text-color">{{_ ("Or")}}</span></div>
{%- endif %} {%- endif %}
@@ -74,4 +72,4 @@
</div> </div>
</div> </div>
</div> </div>
{% endblock page_body %} {% endblock page_body %}

View File

@@ -46,11 +46,10 @@
<!--Sigup with SSO--> <!--Sigup with SSO-->
{%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %} {%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %}
<div class="ui divider"></div> <div class="ui divider"></div>
<div class="login-page-button ui fluid large button"> <a href="{{ url_for('sso_saml.sso', idp='idp') }}" class="login-page-button ui fluid large button">
<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" /> </a>
</a>
</div> </div>
<div class="ui inverted horizontal divider"><span class="text-color">{{_ ("Or")}}</span></div> <div class="ui inverted horizontal divider"><span class="text-color">{{_ ("Or")}}</span></div>
{%- endif %} {%- endif %}
@@ -91,4 +90,4 @@
</div> </div>
{% endblock page_body %} {% endblock page_body %}

View File

@@ -1,9 +1,9 @@
{# {#
Copyright (C) 2020-2021 Graz University of Technology. Copyright (C) 2020-2021 Graz University of Technology.
invenio-theme-tugraz is free software; you can redistribute it and/or 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 modify it under the terms of the MIT License; see LICENSE file for more
details. details.
#} #}
{%- block css %} {%- block css %}
@@ -12,7 +12,7 @@
{%- endblock %} {%- endblock %}
{%- block javascript %} {%- block javascript %}
{{ webpack['invenio-theme-tugraz-js.js'] }} {{ webpack['invenio-theme-tugraz-js.js'] }}
{%- endblock javascript %} {%- endblock javascript %}
<div class="spacer"></div> <div class="spacer"></div>
@@ -21,78 +21,91 @@
<div class="ui container"> <div class="ui container">
<div class="ui grid"> <div class="ui grid">
<div class="doubling four column row"> <div class="doubling four column row">
<div class="column"> <div class="column">
<h2>{{_ ("Repository")}}</h2> <h2>{{_ ("Repository")}}</h2>
<p class="bodytext"> <p class="bodytext">
<a href="https://tu-graz-library.github.io/docs-repository" title="Repository documentation" target="_blank"> <a href="https://tu-graz-library.github.io/docs-repository" title="Repository documentation"
{{_ ("Documentation")}} <i class="external alternate icon"></i> target="_blank">
</a> {{_ ("Documentation")}} <i class="external alternate icon"></i>
<br> </a>
<!-- <a href="{{ url_for('invenio_theme_tugraz.comingsoon') }}"> <br>
<a href="{{ url_for('invenio_theme_tugraz.guide') }}"
title="Quick guide" target="_blank">
{{_ ("Reference Guide")}} <i class="download icon"></i>
</a>
<br>
<a href="{{ url_for('invenio_theme_tugraz.gdpr') }}"
title="General Data Protection Rights" target="_blank">
{{_ ("Data Protection")}} <i class="download icon"></i>
</a>
<br>
<a href="{{ url_for('invenio_theme_tugraz.terms') }}"
title="Terms and Conditions" target="_blank">
{{_ ("Terms and Conditions")}} <i class="download icon"></i>
</a>
<br>
<!-- <a href="{{ url_for('invenio_theme_tugraz.comingsoon') }}">
{{_ ("Impressum")}}<i class="angle right icon"></i> {{_ ("Impressum")}}<i class="angle right icon"></i>
</a> </a>
<br> <br>
<a href="{{ url_for('invenio_theme_tugraz.comingsoon') }}"> <a href="{{ url_for('invenio_theme_tugraz.comingsoon') }}">
{{_ ("Data protection")}}<i class="angle right icon"></i> {{_ ("Feedback")}}<i class="angle right icon"></i>
</a> </a> -->
<br> </p>
<a href="{{ url_for('invenio_theme_tugraz.comingsoon') }}">
{{_ ("Feedback")}}<i class="angle right icon"></i> </div>
</a> -->
</p>
</div>
<div class="column"> <div class="column">
<h2>{{_ ("Features")}}</h2>
<h4>{{_ ("Scalability")}}</h4> <h2>{{_ ("Features")}}</h2>
<h4>{{_ ("Institutional integration")}}</h4>
<h4>{{_ ("Next Generation Repository")}} <h4>{{_ ("Scalability")}}</h4>
</h4>
<h4>{{_ ("Repository Profiles")}}</h4> <h4>{{_ ("Institutional integration")}}</h4>
<h4>{{_ ("Resilient")}}</h4> <h4>{{_ ("Next Generation Repository")}}
</h4>
</div> <h4>{{_ ("Repository Profiles")}}</h4>
<h4>{{_ ("Resilient")}}</h4>
</div>
<div class="column"> <div class="column">
<h2>{{_ ("Connected Services")}}</h2>
<p class="bodytext">
<a href="https://pure.tugraz.at" title="PURE" target="_blank"> <h2>{{_ ("Connected Services")}}</h2>
{{_ ("PURE")}} <i class="external alternate icon"></i></a><br> <p class="bodytext">
<a href="http://campusonline.tugraz.at" title="CAMPUS online" target="_blank"> <a href="https://pure.tugraz.at" title="PURE" target="_blank">
{{_ ("CampusOnline")}} <i class="external alternate icon"></i></a><br> {{_ ("PURE")}} <i class="external alternate icon"></i></a><br>
<a href="http://campusonline.tugraz.at" title="CAMPUS online" target="_blank">
{{_ ("CampusOnline")}} <i class="external alternate icon"></i></a><br>
<a href="https://rdm.tugraz.at" title="Research Data Management" target="_blank"> <a href="https://rdm.tugraz.at" title="Research Data Management" target="_blank">
{{_ ("Research Data Management")}} <i class="external alternate icon"></i></a><br> {{_ ("Research Data Management")}} <i class="external alternate icon"></i></a><br>
</p> </p>
</div>
<div class="column">
<h2>{{_ ("Accessibility")}}</h2>
<p class="bodytext">{{_ ("Tipp:")}}<br> {{_ ("Use Ctrl + and Crtl -")}}<br> {{_ ("to change the font size.")}}</p>
</div>
</div> </div>
<div class="column">
<h2>{{_ ("Accessibility")}}</h2>
<p class="bodytext">{{_ ("Tipp:")}}<br> {{_ ("Use Ctrl + and Crtl -")}}<br> {{_ ("to change the font size.")}}
</p>
</div>
</div>
</div> </div>
</div> </div>

View File

@@ -6,9 +6,14 @@
details. details.
#} #}
{% if not config.THEME_TUGRAZ_PRODUCTION %}
<div class="ui sticky test-instance">
<h4>{{_ ("Test Instance") }}</h4>
<p>{{_ ("This is the test instance of the TU Graz Repository.") }}</p>
</div>
{% endif %}
<header> <header>
{%- block navbar %} {%- block navbar %}
<nav> <nav>
{%- block navbar_header %} {%- block navbar_header %}

View File

@@ -49,7 +49,7 @@
{% endif %} {% endif %}
{%- for r in records %} {%- for r in records %}
{%- set creation_date = r._created|from_isodatetime -%} {%- set creation_date = r.created|from_isodatetime -%}
{%- set record_url = url_for('invenio_app_rdm_records.record_detail', pid_value=r.id) %} {%- set record_url = url_for('invenio_app_rdm_records.record_detail', pid_value=r.id) %}
<article> <article>
@@ -134,7 +134,7 @@
<!--contact us--> <!--contact us-->
<div class="ui segment" style="padding-bottom: 10px;"> <div class="ui segment" style="padding-bottom: 10px;">
<h4>{{_ ("Need help?")}}</h4> <h4>{{_ ("Need help?")}}</h4>
{%- if config.INVENIO_THEME_TUGRAZ_CONTACT_FORM %} {%- if config.THEME_TUGRAZ_CONTACT_FORM %}
<div style="padding-bottom: 10px;"> <div style="padding-bottom: 10px;">
<a id="feedback-form" class="fluid ui button"> <a id="feedback-form" class="fluid ui button">
{{_ ("Contact us")}} {{_ ("Contact us")}}

View File

@@ -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: 2021-03-19 10:53+0100\n" "POT-Creation-Date: 2021-04-12 13:20+0200\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"
@@ -19,16 +19,16 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.9.0\n" "Generated-By: Babel 2.9.0\n"
#: invenio_theme_tugraz/config.py:14 invenio_theme_tugraz/config.py:54 #: invenio_theme_tugraz/config.py:14 invenio_theme_tugraz/config.py:63
msgid "TU Graz Repository" msgid "TU Graz Repository"
msgstr "TU Graz Repository" msgstr "TU Graz Repository"
#: invenio_theme_tugraz/config.py:57 #: invenio_theme_tugraz/config.py:66
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:30 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:30
msgid "Repository" msgid "Repository"
msgstr "Repository" msgstr "Repository"
#: invenio_theme_tugraz/config.py:80 #: invenio_theme_tugraz/config.py:91
msgid "German" msgid "German"
msgstr "Deutsche" msgstr "Deutsche"
@@ -46,8 +46,8 @@ msgid ""
"your research is stored safely for the future in TU Graz library for as " "your research is stored safely for the future in TU Graz library for as "
"long as TU Graz library exists." "long as TU Graz library exists."
msgstr "" msgstr ""
"Ihre Forschung wird für die Zukunft sicher in der Bibliothek der TU Graz " "Ihre Forschung ist in der Bibliothek der TU Graz für die Zukunft "
"gespeichert als solange die Bibliothek TU Graz existiert." "gespeichert,solange die Bibliothek der TU Graz existiert."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:4 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:4
msgid "Trusted" msgid "Trusted"
@@ -58,8 +58,8 @@ 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 " "Aufgebaut und betrieben von CERN und OpenAIRE, um sicherzustellen, dass "
"Zugang zu Open Science hat" "jeder an Open Science teilnehmen kann."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:5 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:5
msgid "Citeable" msgid "Citeable"
@@ -70,8 +70,8 @@ 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 " "Jeder Upload wird mit einem Digital Object Identifier (DOI) versehen,um "
"auffindbar ist" "ihn zitierfähig und nachverfolgbar zu"
#: 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"
@@ -95,7 +95,7 @@ msgid ""
" via our restricted access mode." " via our restricted access mode."
msgstr "" msgstr ""
"Teilen Sie z.B. anonymisierte klinische Studiendaten nur mit " "Teilen Sie z.B. anonymisierte klinische Studiendaten nur mit "
"medizinischem Fachpersonalüber unseren eingeschränkten Zugriffsmodus." "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"
@@ -103,7 +103,7 @@ 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 "Einfaches Updaten ihrer Datensätze mit unserere Versionierung." msgstr "Einfaches Updaten ihrer Datensätze mit unserer 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"
@@ -113,79 +113,101 @@ msgstr "Nutzungsstatistiken"
msgid "All uploads display standards compliant usage statistics" msgid "All uploads display standards compliant usage statistics"
msgstr "Alle Uploads entsprechen den Standards der Nutzungsstatistiken." msgstr "Alle Uploads entsprechen den Standards der Nutzungsstatistiken."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:33 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:34
msgid "Documentation"
msgstr "Dokumentation"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:39
msgid "Reference Guide"
msgstr "Handbuch"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:44
msgid "Data Protection"
msgstr "Datenschutzerklärung"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:49
msgid "Terms and Conditions"
msgstr "Nutzungsbedingungen"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:53
msgid "Impressum" msgid "Impressum"
msgstr "Imprint" msgstr "Imprint"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:37 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:57
msgid "Data protection"
msgstr "Datenschutzerklärung"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:41
msgid "Feedback" msgid "Feedback"
msgstr "Feedback" msgstr "Feedback"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:50 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:66
msgid "Features" msgid "Features"
msgstr "Features" msgstr "Features"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:52 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:68
msgid "Scalability" msgid "Scalability"
msgstr "Skalierbarkeit" msgstr "Skalierbarkeit"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:54 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:70
msgid "Institutional integration" msgid "Institutional integration"
msgstr "Institutionelle Einbindung" msgstr "Institutionelle Einbindung"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:56 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:72
msgid "Next Generation Repository" msgid "Next Generation Repository"
msgstr "Repositorium der nächsten Generation" msgstr "Repositorium der nächsten Generation"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:59 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:75
msgid "Repository Profiles" msgid "Repository Profiles"
msgstr "Repositorienprofile" msgstr "Repositorienprofile"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:61 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:77
msgid "Resilient" msgid "Resilient"
msgstr "Resilient, widerstandsfähig" msgstr "Resilient, widerstandsfähig"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:68 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:84
msgid "Connected Services" msgid "Connected Services"
msgstr "Verbundene Services " msgstr "Verbundene Services "
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:72 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:88
msgid "PURE" msgid "PURE"
msgstr "PURE" msgstr "PURE"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:75 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:91
msgid "CampusOnline" msgid "CampusOnline"
msgstr "CampusOnline" msgstr "CampusOnline"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:78 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:94
msgid "Research Data Management" msgid "Research Data Management"
msgstr "Forschungsdatenmanagement" msgstr "Forschungsdatenmanagement"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:85 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:101
msgid "Accessibility" msgid "Accessibility"
msgstr "Barrierefreiheit" msgstr "Barrierefreiheit"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:86 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:102
msgid "Tipp:" msgid "Tipp:"
msgstr "" msgstr "Tipp"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:86 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:102
msgid "Use Ctrl + and Crtl -" msgid "Use Ctrl + and Crtl -"
msgstr "Verwenden Sie Strg+ und Strg-" msgstr "Verwenden Sie Strg+ und Strg-"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:86 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:102
msgid "to change the font size." msgid "to change the font size."
msgstr "Um die Schriftgröße zu ändern." msgstr "Um die Schriftgröße zu ändern."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:34 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/accounts_base.html:61
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:11
msgid "Test Instance"
msgstr "Testumgebung"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/accounts_base.html:62
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:12
msgid "This is the test instance of the TU Graz Repository."
msgstr "Dies ist die Testumgebung des TU Graz Repositorys."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:39
msgid "Home" msgid "Home"
msgstr "Startseite" msgstr "Startseite"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:47 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:52
msgid "Uploads" msgid "Uploads"
msgstr "Hochladen" msgstr "Hochladen"
@@ -233,11 +255,11 @@ msgstr "Kontaktiere uns"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:145 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:145
msgid "prioritizes all Recent uploads." msgid "prioritizes all Recent uploads."
msgstr "Reiht die neuesten Uploads vor." msgstr "reiht die neuesten Uploads vor."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:148 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:148
msgid "We can help with:" msgid "We can help with:"
msgstr "Wir können helfen bei:" msgstr "Dabei können wir helfen:"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:153 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:153
msgid "Uploading your research data, software, preprints, etc." msgid "Uploading your research data, software, preprints, etc."
@@ -245,7 +267,7 @@ msgstr "Hochladen Ihrer Forschungsdaten, Software, Preprints usw."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:154 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:154
msgid "One-on-one with" msgid "One-on-one with"
msgstr "Eins-zu-eins mit" msgstr "One-on-one mit"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:154 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:154
msgid "supporters." msgid "supporters."
@@ -253,7 +275,7 @@ msgstr "Unterstützern"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:155 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:155
msgid "Quota increases beyond our default policy." msgid "Quota increases beyond our default policy."
msgstr "Erhöhung Ihres Kontingents über das vertraglich Zugesicherte hinaus." msgstr "Quota Erhöhungen über unsere Standard Policy hinaus."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:156 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:156
msgid "Scripts for automated uploading of larger datasets." msgid "Scripts for automated uploading of larger datasets."
@@ -375,7 +397,18 @@ msgstr "RDM DOI Abzeichen"
msgid "DOI" msgid "DOI"
msgstr "DOI" msgstr "DOI"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/landingpage/detail.html:44 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/landingpage/detail.html:35
#, python-format
msgid ""
"\n"
" There is a %(link_start)snewer version%(link_end)s of the "
"record available.\n"
" "
msgstr ""
"Es ist eine %(link_start)sneuere Version%(link_end)s des Eintrags "
"verfügbar."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/landingpage/detail.html:64
msgid "Open Access" msgid "Open Access"
msgstr "" msgstr ""
@@ -392,3 +425,6 @@ msgstr ""
#~ " " #~ " "
#~ msgstr "Hochgeladen am %(date)s\n" #~ msgstr "Hochgeladen am %(date)s\n"
#~ msgid "Handbook"
#~ msgstr "Handbuch"

View File

@@ -7,9 +7,9 @@
#, fuzzy #, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: invenio-theme-tugraz 1.9.3\n" "Project-Id-Version: invenio-theme-tugraz 2.0.7\n"
"Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n" "Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n"
"POT-Creation-Date: 2021-03-19 10:53+0100\n" "POT-Creation-Date: 2021-04-12 13:20+0200\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"
@@ -18,16 +18,16 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.9.0\n" "Generated-By: Babel 2.9.0\n"
#: invenio_theme_tugraz/config.py:14 invenio_theme_tugraz/config.py:54 #: invenio_theme_tugraz/config.py:14 invenio_theme_tugraz/config.py:63
msgid "TU Graz Repository" msgid "TU Graz Repository"
msgstr "" msgstr ""
#: invenio_theme_tugraz/config.py:57 #: invenio_theme_tugraz/config.py:66
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:30 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:30
msgid "Repository" msgid "Repository"
msgstr "" msgstr ""
#: invenio_theme_tugraz/config.py:80 #: invenio_theme_tugraz/config.py:91
msgid "German" msgid "German"
msgstr "" msgstr ""
@@ -102,79 +102,101 @@ msgstr ""
msgid "All uploads display standards compliant usage statistics" msgid "All uploads display standards compliant usage statistics"
msgstr "" msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:33 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:34
msgid "Documentation"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:39
msgid "Reference Guide"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:44
msgid "Data Protection"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:49
msgid "Terms and Conditions"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:53
msgid "Impressum" msgid "Impressum"
msgstr "" msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:37 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:57
msgid "Data protection"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:41
msgid "Feedback" msgid "Feedback"
msgstr "" msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:50 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:66
msgid "Features" msgid "Features"
msgstr "" msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:52 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:68
msgid "Scalability" msgid "Scalability"
msgstr "" msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:54 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:70
msgid "Institutional integration" msgid "Institutional integration"
msgstr "" msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:56 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:72
msgid "Next Generation Repository" msgid "Next Generation Repository"
msgstr "" msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:59 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:75
msgid "Repository Profiles" msgid "Repository Profiles"
msgstr "" msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:61 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:77
msgid "Resilient" msgid "Resilient"
msgstr "" msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:68 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:84
msgid "Connected Services" msgid "Connected Services"
msgstr "" msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:72 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:88
msgid "PURE" msgid "PURE"
msgstr "" msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:75 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:91
msgid "CampusOnline" msgid "CampusOnline"
msgstr "" msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:78 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:94
msgid "Research Data Management" msgid "Research Data Management"
msgstr "" msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:85 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:101
msgid "Accessibility" msgid "Accessibility"
msgstr "" msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:86 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:102
msgid "Tipp:" msgid "Tipp:"
msgstr "" msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:86 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:102
msgid "Use Ctrl + and Crtl -" msgid "Use Ctrl + and Crtl -"
msgstr "" msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:86 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:102
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/accounts/accounts_base.html:61
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:11
msgid "Test Instance"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/accounts_base.html:62
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:12
msgid "This is the test instance of the TU Graz Repository."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:39
msgid "Home" msgid "Home"
msgstr "" msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:47 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:52
msgid "Uploads" msgid "Uploads"
msgstr "" msgstr ""
@@ -359,7 +381,16 @@ msgstr ""
msgid "DOI" msgid "DOI"
msgstr "" msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/landingpage/detail.html:44 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/landingpage/detail.html:35
#, python-format
msgid ""
"\n"
" There is a %(link_start)snewer version%(link_end)s of the "
"record available.\n"
" "
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/landingpage/detail.html:64
msgid "Open Access" msgid "Open Access"
msgstr "" msgstr ""

View File

@@ -12,4 +12,4 @@ This file is imported by ``invenio_theme_tugraz.__init__``,
and parsed by ``setup.py``. and parsed by ``setup.py``.
""" """
__version__ = "2.0.5" __version__ = "2.1.0"

View File

@@ -14,7 +14,8 @@ from typing import Dict
import requests import requests
from elasticsearch_dsl.utils import AttrDict from elasticsearch_dsl.utils import AttrDict
from flask import Blueprint, current_app, g, render_template, request from flask import Blueprint, current_app, g, redirect, render_template, request, url_for
from flask_babelex import get_locale
from flask_login import login_required from flask_login import login_required
from flask_menu import current_menu from flask_menu import current_menu
from invenio_app_rdm.records_ui.views.decorators import ( from invenio_app_rdm.records_ui.views.decorators import (
@@ -49,6 +50,9 @@ def ui_blueprint(app):
blueprint.add_url_rule(routes["index"], view_func=index) blueprint.add_url_rule(routes["index"], view_func=index)
blueprint.add_url_rule(routes["comingsoon"], view_func=comingsoon) blueprint.add_url_rule(routes["comingsoon"], view_func=comingsoon)
blueprint.add_url_rule(routes["guide"], view_func=guide)
blueprint.add_url_rule(routes["terms"], view_func=terms)
blueprint.add_url_rule(routes["gdpr"], view_func=gdpr)
blueprint.add_url_rule(routes["deposit_create"], view_func=deposit_create) blueprint.add_url_rule(routes["deposit_create"], view_func=deposit_create)
blueprint.add_url_rule(routes["record_detail"], view_func=record_detail) blueprint.add_url_rule(routes["record_detail"], view_func=record_detail)
blueprint.add_url_rule(routes["getdoi"], view_func=retrieve_doi, methods=["POST"]) blueprint.add_url_rule(routes["getdoi"], view_func=retrieve_doi, methods=["POST"])
@@ -82,6 +86,30 @@ def comingsoon():
return render_template("invenio_theme_tugraz/comingsoon.html") return render_template("invenio_theme_tugraz/comingsoon.html")
def guide():
"""TUGraz_Repository_Guide."""
locale = get_locale()
return redirect(url_for('static',
filename=f'documents/TUGraz_Repository_Guide_01_{locale}.pdf',
_external=True))
def terms():
"""Terms_And_Conditions."""
locale = get_locale()
return redirect(url_for('static',
filename=f'documents/TUGraz_Repository_Terms_And_Conditions_{locale}.pdf',
_external=True))
def gdpr():
"""General_Data_Protection_Rights."""
locale = get_locale()
return redirect(url_for('static',
filename=f'documents/TUGraz_Repository_General_Data_Protection_Rights_{locale}.pdf',
_external=True))
def get_datacite_details(): def get_datacite_details():
"""Application credentials for DOI.""" """Application credentials for DOI."""
prefix = environ.get("INVENIO_DATACITE_PREFIX") prefix = environ.get("INVENIO_DATACITE_PREFIX")