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 | |
|---|---|---|---|
|
|
abca369212 | ||
|
|
5eaca4b8a3 | ||
|
|
714305d646 | ||
|
|
e8a8ee88b7 | ||
|
|
7f5dae65ac |
2
LICENSE
2
LICENSE
@@ -1,6 +1,6 @@
|
||||
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
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
|
||||
@@ -45,8 +45,8 @@ master_doc = "index"
|
||||
|
||||
# General information about the project.
|
||||
project = u"invenio-theme-tugraz"
|
||||
copyright = u"2020, mojib wali"
|
||||
author = u"mojib wali"
|
||||
copyright = u"2020, Graz University of Technology"
|
||||
author = u"Graz University of Technology"
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
# |version| and |release|, also used in various other places throughout the
|
||||
@@ -251,7 +251,7 @@ latex_documents = [
|
||||
master_doc,
|
||||
"invenio-theme-tugraz.tex",
|
||||
u"invenio-theme-tugraz Documentation",
|
||||
u"mojib wali",
|
||||
u"Graz University of Technology",
|
||||
"manual",
|
||||
),
|
||||
]
|
||||
|
||||
@@ -31,4 +31,5 @@
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
transition: background-color 0.15s ease 0s, color 0.15s ease 0s;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
@@ -119,6 +119,9 @@ DEPOSITS_HEADER_TEMPLATE = "invenio_theme_tugraz/header.html"
|
||||
TUG_ROUTES = {
|
||||
"index": "/",
|
||||
"comingsoon": "/comingsoon",
|
||||
"guide": "/guide",
|
||||
"terms": "/terms",
|
||||
"gdpr": "/gdpr",
|
||||
"deposit_create": "/uploads/new",
|
||||
"deposit_edit": "/uploads/<pid_value>",
|
||||
"getdoi": "/getdoi",
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,7 +1,5 @@
|
||||
{#
|
||||
Copyright (C) 2020 TUGRAZ
|
||||
Copyright (C) 2020 mojib wali
|
||||
Copyright (C) 2020 Nikita Lvov
|
||||
Copyright (C) 2020 Graz University of Technology.
|
||||
|
||||
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
|
||||
|
||||
@@ -34,17 +34,22 @@ details.
|
||||
{{_ ("Documentation")}} <i class="external alternate icon"></i>
|
||||
</a>
|
||||
<br>
|
||||
<a href="{{ url_for('static', filename='documents/TUGraz_Repository_Guide_01_de.pdf') }}"
|
||||
<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('static', filename='documents/TUGraz_Repository_General_Data_Protection_Rights_de.pdf') }}"
|
||||
<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('static', filename='documents/TUGraz_Repository_Terms_And_Conditions_de.pdf') }}"
|
||||
<a href="{{ url_for('invenio_theme_tugraz.terms') }}"
|
||||
title="Terms and Conditions" target="_blank">
|
||||
{{_ ("Terms and Conditions")}} <i class="download icon"></i>
|
||||
</a>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# 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
|
||||
# invenio-theme-tugraz project.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
@@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: invenio-theme-tugraz 1.0.4\n"
|
||||
"Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n"
|
||||
"POT-Creation-Date: 2021-04-12 13:20+0200\n"
|
||||
"POT-Creation-Date: 2021-04-26 09:08+0200\n"
|
||||
"PO-Revision-Date: 2020-10-06 10:27+0200\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language: de\n"
|
||||
@@ -307,8 +307,8 @@ msgid "TECHNOLOGY"
|
||||
msgstr "LEIDENSCHAFT"
|
||||
|
||||
#: 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/register_user.html:81
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:59
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:80
|
||||
msgid "Sign up"
|
||||
msgstr "Registrierung"
|
||||
|
||||
@@ -324,26 +324,26 @@ msgstr "Ausloggen"
|
||||
msgid "Log in to Repository"
|
||||
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
|
||||
msgid " Log in with %(type)s"
|
||||
msgstr "Einloggen mit"
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:35
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:55
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:33
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:54
|
||||
msgid "Or"
|
||||
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"
|
||||
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
|
||||
msgid "New to %(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?"
|
||||
msgstr "Passwort vergessen"
|
||||
|
||||
@@ -385,7 +385,7 @@ msgid ""
|
||||
"the Graz University of Technology."
|
||||
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 "
|
||||
msgstr "Mit Ihrem TUGonline-Account einloggen"
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# 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
|
||||
# invenio-theme-tugraz project.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
|
||||
@@ -7,9 +7,9 @@
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: invenio-theme-tugraz 2.0.7\n"
|
||||
"Project-Id-Version: invenio-theme-tugraz 2.1.0\n"
|
||||
"Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n"
|
||||
"POT-Creation-Date: 2021-04-12 13:20+0200\n"
|
||||
"POT-Creation-Date: 2021-04-26 09:08+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@@ -295,8 +295,8 @@ msgid "TECHNOLOGY"
|
||||
msgstr ""
|
||||
|
||||
#: 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/register_user.html:81
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:59
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:80
|
||||
msgid "Sign up"
|
||||
msgstr ""
|
||||
|
||||
@@ -312,26 +312,26 @@ msgstr ""
|
||||
msgid "Log in to Repository"
|
||||
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
|
||||
msgid " Log in with %(type)s"
|
||||
msgstr ""
|
||||
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:35
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:55
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:33
|
||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:54
|
||||
msgid "Or"
|
||||
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"
|
||||
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
|
||||
msgid "New to %(sitename)s?"
|
||||
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?"
|
||||
msgstr ""
|
||||
|
||||
@@ -369,7 +369,7 @@ msgid ""
|
||||
"the Graz University of Technology."
|
||||
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 "
|
||||
msgstr ""
|
||||
|
||||
|
||||
@@ -12,4 +12,4 @@ This file is imported by ``invenio_theme_tugraz.__init__``,
|
||||
and parsed by ``setup.py``.
|
||||
"""
|
||||
|
||||
__version__ = "2.0.9"
|
||||
__version__ = "2.1.1"
|
||||
|
||||
@@ -14,7 +14,8 @@ from typing import Dict
|
||||
|
||||
import requests
|
||||
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_menu import current_menu
|
||||
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["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["record_detail"], view_func=record_detail)
|
||||
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")
|
||||
|
||||
|
||||
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():
|
||||
"""Application credentials for DOI."""
|
||||
prefix = environ.get("INVENIO_DATACITE_PREFIX")
|
||||
|
||||
@@ -24,7 +24,7 @@ add_ignore = D401
|
||||
directory = invenio_theme_tugraz/translations/
|
||||
|
||||
[extract_messages]
|
||||
copyright_holder = mojib wali
|
||||
copyright_holder = Graz University of Technology
|
||||
msgid_bugs_address = mojib.wali@tugraz.at
|
||||
mapping-file = babel.ini
|
||||
output-file = invenio_theme_tugraz/translations/messages.pot
|
||||
|
||||
2
setup.py
2
setup.py
@@ -79,7 +79,7 @@ setup(
|
||||
long_description=readme + "\n\n" + history,
|
||||
keywords="invenio, theme, invenioRDM, TU-Graz, Graz University of Technology, statistics",
|
||||
license="MIT",
|
||||
author="mojib wali",
|
||||
author="Graz University of Technology",
|
||||
author_email="mojib.wali@tugraz.at",
|
||||
url="https://github.com/tu-graz-library/invenio-theme-tugraz",
|
||||
packages=packages,
|
||||
|
||||
Reference in New Issue
Block a user