diff --git a/invenio_theme_tugraz/config.py b/invenio_theme_tugraz/config.py index 2e998a40..82b38105 100644 --- a/invenio_theme_tugraz/config.py +++ b/invenio_theme_tugraz/config.py @@ -119,7 +119,4 @@ TUG_ROUTES = { "index": "/", "comingsoon": "/comingsoon", - "guide": "/guide", - "terms": "/terms", - "gdpr": "/gdpr", } diff --git a/invenio_theme_tugraz/static/documents/TUGraz_Repository_General_Data_Protection_Rights_de.pdf b/invenio_theme_tugraz/static/documents/TUGraz_Repository_General_Data_Protection_Rights_de.pdf deleted file mode 100644 index c65a6784..00000000 Binary files a/invenio_theme_tugraz/static/documents/TUGraz_Repository_General_Data_Protection_Rights_de.pdf and /dev/null differ diff --git a/invenio_theme_tugraz/static/documents/TUGraz_Repository_General_Data_Protection_Rights_en.pdf b/invenio_theme_tugraz/static/documents/TUGraz_Repository_General_Data_Protection_Rights_en.pdf deleted file mode 100644 index f218b5a3..00000000 Binary files a/invenio_theme_tugraz/static/documents/TUGraz_Repository_General_Data_Protection_Rights_en.pdf and /dev/null differ diff --git a/invenio_theme_tugraz/static/documents/TUGraz_Repository_Guide_01_de.pdf b/invenio_theme_tugraz/static/documents/TUGraz_Repository_Guide_01_de.pdf deleted file mode 100644 index 682e96b7..00000000 Binary files a/invenio_theme_tugraz/static/documents/TUGraz_Repository_Guide_01_de.pdf and /dev/null differ diff --git a/invenio_theme_tugraz/static/documents/TUGraz_Repository_Guide_01_en.pdf b/invenio_theme_tugraz/static/documents/TUGraz_Repository_Guide_01_en.pdf deleted file mode 100644 index 1201a238..00000000 Binary files a/invenio_theme_tugraz/static/documents/TUGraz_Repository_Guide_01_en.pdf and /dev/null differ diff --git a/invenio_theme_tugraz/static/documents/TUGraz_Repository_Guide_02_de.pdf b/invenio_theme_tugraz/static/documents/TUGraz_Repository_Guide_02_de.pdf deleted file mode 100644 index 4c6f0644..00000000 Binary files a/invenio_theme_tugraz/static/documents/TUGraz_Repository_Guide_02_de.pdf and /dev/null differ diff --git a/invenio_theme_tugraz/static/documents/TUGraz_Repository_Guide_02_en.pdf b/invenio_theme_tugraz/static/documents/TUGraz_Repository_Guide_02_en.pdf deleted file mode 100644 index d9c89e08..00000000 Binary files a/invenio_theme_tugraz/static/documents/TUGraz_Repository_Guide_02_en.pdf and /dev/null differ diff --git a/invenio_theme_tugraz/static/documents/TUGraz_Repository_Terms_And_Conditions_de.pdf b/invenio_theme_tugraz/static/documents/TUGraz_Repository_Terms_And_Conditions_de.pdf deleted file mode 100644 index 0af7e4a4..00000000 Binary files a/invenio_theme_tugraz/static/documents/TUGraz_Repository_Terms_And_Conditions_de.pdf and /dev/null differ diff --git a/invenio_theme_tugraz/static/documents/TUGraz_Repository_Terms_And_Conditions_en.pdf b/invenio_theme_tugraz/static/documents/TUGraz_Repository_Terms_And_Conditions_en.pdf deleted file mode 100644 index 9b8faacf..00000000 Binary files a/invenio_theme_tugraz/static/documents/TUGraz_Repository_Terms_And_Conditions_en.pdf and /dev/null differ diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html index cec20fa3..85792380 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html @@ -34,7 +34,7 @@

{{_ ("Repository")}}

{{_ ("Documentation")}}
- {{_ ("Reference Guide")}} @@ -44,12 +44,12 @@

{{_ ("Repository")}}

{{_ ("Search Guide")}}
- {{_ ("Data Protection")}}
- {{_ ("Terms and Conditions")}} diff --git a/invenio_theme_tugraz/views.py b/invenio_theme_tugraz/views.py index 4ac0c95b..9b1d8c96 100644 --- a/invenio_theme_tugraz/views.py +++ b/invenio_theme_tugraz/views.py @@ -12,12 +12,8 @@ from os import environ from typing import Dict -import requests from elasticsearch_dsl.utils import AttrDict -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 flask import Blueprint, render_template from invenio_app_rdm.records_ui.views.decorators import ( pass_is_preview, pass_record_files, @@ -41,9 +37,6 @@ 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.app_template_filter("make_dict_like") def make_dict_like(value: str, key: str) -> Dict[str, str]: @@ -84,30 +77,6 @@ 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_02_{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)) - - @pass_is_preview @pass_record_or_draft @pass_record_files