Compare commits

...

15 Commits

Author SHA1 Message Date
Mojib Wali
e141afa602 v2.1.2 2021-04-30 13:52:25 +02:00
mb-wali
2b3d6bce7b dep: restrict config-tugraz to v2 release 2021-04-30 13:51:46 +02:00
Mojib Wali
abca369212 v2.1.1 2021-04-30 10:01:38 +02:00
mb-wali
5eaca4b8a3 footer: adds link to search guide 2021-04-29 15:18:26 +02:00
Mojib Wali
714305d646 global: copyrights 2021-04-26 09:21:50 +02:00
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
23 changed files with 228 additions and 161 deletions

View File

@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (C) 2020 mojib wali. Copyright (C) 2020 Graz University of Technology.
Permission is hereby granted, free of charge, to any person obtaining a copy of Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in this software and associated documentation files (the "Software"), to deal in

View File

@@ -33,6 +33,7 @@ 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

View File

@@ -45,8 +45,8 @@ master_doc = "index"
# General information about the project. # General information about the project.
project = u"invenio-theme-tugraz" project = u"invenio-theme-tugraz"
copyright = u"2020, mojib wali" copyright = u"2020, Graz University of Technology"
author = u"mojib wali" author = u"Graz University of Technology"
# The version info for the project you're documenting, acts as replacement for # The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the # |version| and |release|, also used in various other places throughout the
@@ -251,7 +251,7 @@ latex_documents = [
master_doc, master_doc,
"invenio-theme-tugraz.tex", "invenio-theme-tugraz.tex",
u"invenio-theme-tugraz Documentation", u"invenio-theme-tugraz Documentation",
u"mojib wali", u"Graz University of Technology",
"manual", "manual",
), ),
] ]

View File

@@ -1,7 +1,12 @@
import $ from 'jquery'; import $ from 'jquery';
import 'semantic-ui-css'; 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";
@@ -16,7 +21,8 @@ $(function() {
modal: true modal: true
}); });
}); });
}); }
// used for sticky test instance notification // used for sticky test instance notification
$('.ui.sticky.test-instance') $('.ui.sticky.test-instance')

View File

@@ -30,9 +30,19 @@
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

@@ -31,4 +31,5 @@
color: inherit; color: inherit;
text-decoration: none; text-decoration: none;
transition: background-color 0.15s ease 0s, color 0.15s ease 0s; transition: background-color 0.15s ease 0s, color 0.15s ease 0s;
outline: none;
} }

View File

@@ -119,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

@@ -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 %}

View File

@@ -1,7 +1,5 @@
{# {#
Copyright (C) 2020 TUGRAZ Copyright (C) 2020 Graz University of Technology.
Copyright (C) 2020 mojib wali
Copyright (C) 2020 Nikita Lvov
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
@@ -46,11 +44,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 %}

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,84 +21,96 @@
<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 <br>
href="https://www.tugraz.at/fileadmin/user_upload/tugrazExternal/0c4b9c02-50a6-4a31-b5fd-24a0f93b69c5/TUGraz_Repository_Guide.pdf" <a href="{{ url_for('invenio_theme_tugraz.guide') }}"
title="Quick guide" target="_blank"> title="Quick guide" target="_blank">
{{_ ("Handbook")}} <i class="external alternate icon"></i> {{_ ("Reference Guide")}} <i class="download icon"></i>
</a> </a>
<br> <br>
<!-- <a href="{{ url_for('invenio_theme_tugraz.comingsoon') }}"> <a href="{{ url_for('invenio_app_rdm.help_search') }}"
title="Search guide">
{{_ ("Search Guide")}}<i class="angle right 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>
</a> -->
</p>
</div> </div>
<div class="column"> <div class="column">
<h2>{{_ ("Features")}}</h2> <h2>{{_ ("Features")}}</h2>
<h4>{{_ ("Scalability")}}</h4> <h4>{{_ ("Scalability")}}</h4>
<h4>{{_ ("Institutional integration")}}</h4> <h4>{{_ ("Institutional integration")}}</h4>
<h4>{{_ ("Next Generation Repository")}} <h4>{{_ ("Next Generation Repository")}}
</h4> </h4>
<h4>{{_ ("Repository Profiles")}}</h4> <h4>{{_ ("Repository Profiles")}}</h4>
<h4>{{_ ("Resilient")}}</h4> <h4>{{_ ("Resilient")}}</h4>
</div> </div>
<div class="column"> <div class="column">
<h2>{{_ ("Connected Services")}}</h2> <h2>{{_ ("Connected Services")}}</h2>
<p class="bodytext"> <p class="bodytext">
<a href="https://pure.tugraz.at" title="PURE" target="_blank"> <a href="https://pure.tugraz.at" title="PURE" target="_blank">
{{_ ("PURE")}} <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"> <a href="http://campusonline.tugraz.at" title="CAMPUS online" target="_blank">
{{_ ("CampusOnline")}} <i class="external alternate icon"></i></a><br> {{_ ("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>
<div class="column"> <div class="column">
<h2>{{_ ("Accessibility")}}</h2> <h2>{{_ ("Accessibility")}}</h2>
<p class="bodytext">{{_ ("Tipp:")}}<br> {{_ ("Use Ctrl + and Crtl -")}}<br> {{_ ("to change the font size.")}}</p> <p class="bodytext">{{_ ("Tipp:")}}<br> {{_ ("Use Ctrl + and Crtl -")}}<br> {{_ ("to change the font size.")}}
</p>
</div> </div>
</div> </div>
</div> </div>
</div> </div>

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>

View File

@@ -1,5 +1,5 @@
# German translations for invenio-theme-tugraz. # German translations for invenio-theme-tugraz.
# Copyright (C) 2020 mojib wali # Copyright (C) 2020-2021 Graz University of Technology
# This file is distributed under the same license as the # This file is distributed under the same license as the
# invenio-theme-tugraz project. # invenio-theme-tugraz project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020. # FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
@@ -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-04-08 08:50+0200\n" "POT-Creation-Date: 2021-04-26 09:08+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"
@@ -113,79 +113,83 @@ 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" msgid "Documentation"
msgstr "Dokumentation" msgstr "Dokumentation"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:39 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:39
msgid "Handbook" msgid "Reference Guide"
msgstr "Handbuch" msgstr "Handbuch"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:44 #: 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:48 #: 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:52
msgid "Feedback" msgid "Feedback"
msgstr "Feedback" msgstr "Feedback"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:61 #: 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:63 #: 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:65 #: 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:67 #: 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:70 #: 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:72 #: 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:79 #: 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:83 #: 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:86 #: 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:89 #: 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:96 #: 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:97 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:102
msgid "Tipp:" msgid "Tipp:"
msgstr "Tipp" msgstr "Tipp"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:97 #: 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:97 #: 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."
@@ -303,8 +307,8 @@ msgid "TECHNOLOGY"
msgstr "LEIDENSCHAFT" msgstr "LEIDENSCHAFT"
#: 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:61 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:59
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:81 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:80
msgid "Sign up" msgid "Sign up"
msgstr "Registrierung" msgstr "Registrierung"
@@ -320,26 +324,26 @@ msgstr "Ausloggen"
msgid "Log in to Repository" msgid "Log in to Repository"
msgstr "Anmelden" msgstr "Anmelden"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:30 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:29
#, python-format #, python-format
msgid " Log in with %(type)s" msgid " Log in with %(type)s"
msgstr "Einloggen mit" 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:33
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:55 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:54
msgid "Or" msgid "Or"
msgstr "Oder" msgstr "Oder"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:47 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:45
msgid "Log In" msgid "Log In"
msgstr "Einloggen" msgstr "Einloggen"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:60 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:58
#, python-format #, python-format
msgid "New to %(sitename)s?" msgid "New to %(sitename)s?"
msgstr "Neu im %(sitename)s?" msgstr "Neu im %(sitename)s?"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:70 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:68
msgid "Forgot password?" msgid "Forgot password?"
msgstr "Passwort vergessen" msgstr "Passwort vergessen"
@@ -381,7 +385,7 @@ msgid ""
"the Graz University of Technology." "the Graz University of Technology."
msgstr "Gebaut basierend auf Expertise derTU Graz im Bereich Data Management" msgstr "Gebaut basierend auf Expertise derTU Graz im Bereich Data Management"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:51 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:50
msgid "Sign up with TUGRAZ " msgid "Sign up with TUGRAZ "
msgstr "Mit Ihrem TUGonline-Account einloggen" msgstr "Mit Ihrem TUGonline-Account einloggen"
@@ -421,3 +425,6 @@ msgstr ""
#~ " " #~ " "
#~ msgstr "Hochgeladen am %(date)s\n" #~ msgstr "Hochgeladen am %(date)s\n"
#~ msgid "Handbook"
#~ msgstr "Handbuch"

View File

@@ -1,5 +1,5 @@
# Translations template for invenio-theme-tugraz. # Translations template for invenio-theme-tugraz.
# Copyright (C) 2021 mojib wali # Copyright (C) 2021 Graz University of Technology
# This file is distributed under the same license as the # This file is distributed under the same license as the
# invenio-theme-tugraz project. # invenio-theme-tugraz project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021. # FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
@@ -7,9 +7,9 @@
#, fuzzy #, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: invenio-theme-tugraz 2.0.5\n" "Project-Id-Version: invenio-theme-tugraz 2.1.0\n"
"Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n" "Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n"
"POT-Creation-Date: 2021-04-08 08:50+0200\n" "POT-Creation-Date: 2021-04-26 09:08+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"
@@ -102,79 +102,83 @@ 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" msgid "Documentation"
msgstr "" msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:39 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:39
msgid "Handbook" msgid "Reference Guide"
msgstr "" msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:44 #: 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:48 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:57
msgid "Data protection"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:52
msgid "Feedback" msgid "Feedback"
msgstr "" msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:61 #: 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:63 #: 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:65 #: 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:67 #: 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:70 #: 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:72 #: 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:79 #: 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:83 #: 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:86 #: 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:89 #: 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:96 #: 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:97 #: 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:97 #: 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:97 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:102
msgid "to change the font size." msgid "to change the font size."
msgstr "" msgstr ""
@@ -291,8 +295,8 @@ 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:61 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:59
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:81 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:80
msgid "Sign up" msgid "Sign up"
msgstr "" msgstr ""
@@ -308,26 +312,26 @@ msgstr ""
msgid "Log in to Repository" msgid "Log in to Repository"
msgstr "" msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:30 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:29
#, 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:33
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:55 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:54
msgid "Or" msgid "Or"
msgstr "" msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:47 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:45
msgid "Log In" msgid "Log In"
msgstr "" msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:60 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:58
#, 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:70 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:68
msgid "Forgot password?" msgid "Forgot password?"
msgstr "" msgstr ""
@@ -365,7 +369,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:51 #: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:50
msgid "Sign up with TUGRAZ " msgid "Sign up with TUGRAZ "
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.6" __version__ = "2.1.2"

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")

View File

@@ -24,7 +24,7 @@ add_ignore = D401
directory = invenio_theme_tugraz/translations/ directory = invenio_theme_tugraz/translations/
[extract_messages] [extract_messages]
copyright_holder = mojib wali copyright_holder = Graz University of Technology
msgid_bugs_address = mojib.wali@tugraz.at msgid_bugs_address = mojib.wali@tugraz.at
mapping-file = babel.ini mapping-file = babel.ini
output-file = invenio_theme_tugraz/translations/messages.pot output-file = invenio_theme_tugraz/translations/messages.pot

View File

@@ -58,7 +58,7 @@ install_requires = [
"invenio-i18n>=1.2.0", "invenio-i18n>=1.2.0",
"elasticsearch_dsl>=7.2.1", "elasticsearch_dsl>=7.2.1",
"invenio_search>=1.4.0,<2.0.0", "invenio_search>=1.4.0,<2.0.0",
"invenio_config_tugraz>=0.5.1", "invenio_config_tugraz>=0.5.1,<0.5.8",
# keep this package updated. # keep this package updated.
"invenio_app_rdm==2.0.1", "invenio_app_rdm==2.0.1",
] ]
@@ -79,7 +79,7 @@ setup(
long_description=readme + "\n\n" + history, long_description=readme + "\n\n" + history,
keywords="invenio, theme, invenioRDM, TU-Graz, Graz University of Technology, statistics", keywords="invenio, theme, invenioRDM, TU-Graz, Graz University of Technology, statistics",
license="MIT", license="MIT",
author="mojib wali", author="Graz University of Technology",
author_email="mojib.wali@tugraz.at", author_email="mojib.wali@tugraz.at",
url="https://github.com/tu-graz-library/invenio-theme-tugraz", url="https://github.com/tu-graz-library/invenio-theme-tugraz",
packages=packages, packages=packages,