Compare commits

...

23 Commits

Author SHA1 Message Date
Christoph Ladurner
8866b87459 release v4.13.0 2025-01-24 14:44:20 +01:00
Christoph Ladurner
3a91743f9b setup: necessary because devs not released 2025-01-24 14:43:45 +01:00
Christoph Ladurner
fa705221dd view: add route for rdm-search
* it is necessary to add it here because the old approach with adding to
  the invenio-search-ui blueprint is not possible anymore since it has
  been changed to a function.
2025-01-24 14:43:45 +01:00
Christoph Ladurner
aa21adb1cf setup: relax upper pins
* the idea is to break early.
2025-01-24 14:43:45 +01:00
Martin Obersteiner
5865f0df54 add default-page for unhandled errors 2024-09-19 10:21:41 +02:00
Martin Obersteiner
4b8d5bee9f guard views/dashboard by tugraz_authenticated 2024-07-08 10:16:38 +02:00
Martin Obersteiner
923d4e8120 fix deprecated before_app_first_request 2024-06-11 13:27:04 +02:00
Christoph Ladurner
049063fd7d release v4.12.9 2024-05-07 10:53:37 +02:00
Christoph Ladurner
4a13f22de4 overview: view publications only if permission 2024-05-07 10:53:01 +02:00
Christoph Ladurner
dac35b2e0e release v4.12.8 2024-03-11 20:20:52 +01:00
Christoph Ladurner
cf5ecfd2f6 ui: add banner to header 2024-03-11 20:20:16 +01:00
Christoph Ladurner
0919760cfd release v4.12.7 2024-02-12 13:34:50 +01:00
Christoph Ladurner
40be6ff4b4 translation: fix typo 2024-02-12 13:34:18 +01:00
Christoph Ladurner
602c4b6523 release v4.12.6 2024-02-02 12:43:31 +01:00
Christoph Ladurner
4a581d6703 fix: error_handler gets 1 parameter 2024-02-02 12:43:11 +01:00
Christoph Ladurner
b426e0cc39 release v4.12.5 2024-02-02 11:21:42 +01:00
Christoph Ladurner
b975800532 release v4.12.4 2024-02-02 10:39:20 +01:00
Christoph Ladurner
19143a7860 ui: add 423 error page 2024-02-02 10:38:57 +01:00
Christoph Ladurner
2d47e30416 fix: types could be empty list
* it is true that types will always exists, but it could be an empty
2024-02-02 09:51:18 +01:00
Christoph Ladurner
87bead9b7e setup: sort tests imports
* remove unnecessary special opensearch2. moved to tests.
2024-01-31 10:33:13 +01:00
Christoph Ladurner
11bce0a1ce workflows: change to reusable workflows 2024-01-31 10:33:13 +01:00
Christoph Ladurner
ebcd040be0 wording: update one string frontpage 2024-01-31 10:12:09 +01:00
Christoph Ladurner
515a02aed5 wording: update frontpage 2024-01-31 10:12:09 +01:00
22 changed files with 625 additions and 343 deletions

View File

@@ -5,22 +5,5 @@ on:
jobs:
build-n-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel babel
- name: Build package
run: |
python setup.py compile_catalog sdist bdist_wheel
- name: pypi-publish
uses: pypa/gh-action-pypi-publish@v1.3.1
with:
user: __token__
password: ${{ secrets.pypi_password }}
uses: tu-graz-library/.github/.github/workflows/pypi-publish.yml@main
secrets: inherit

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020-2022 Graz University of Technology.
# Copyright (C) 2020-2024 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
@@ -24,48 +24,5 @@ on:
default: 'Manual trigger'
jobs:
Tests:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.9, "3.10"]
requirements-level: [pypi]
db-service: [postgresql13]
search-service: [opensearch2]
include:
- search-service: opensearch2
SEARCH_EXTRAS: "opensearch2"
env:
DB: ${{ matrix.db-service }}
SEARCH: ${{ matrix.search-service }}
EXTRAS: tests,${{ matrix.SEARCH_EXTRAS }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Generate dependencies
run: |
pip install wheel requirements-builder
requirements-builder -e "$EXTRAS" --level=${{ matrix.requirements-level }} setup.py > .${{ matrix.requirements-level }}-${{ matrix.python-version }}-requirements.txt
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('.${{ matrix.requirements-level }}-${{ matrix.python-version }}-requirements.txt') }}
- name: Install dependencies
run: |
pip install -r .${{ matrix.requirements-level }}-${{ matrix.python-version }}-requirements.txt
pip install ".[$EXTRAS]"
pip freeze
docker --version
docker-compose --version
- name: Run tests
run: |
./run-tests.sh
tests:
uses: tu-graz-library/.github/.github/workflows/tests.yml@main

View File

@@ -8,6 +8,51 @@
Changes
=======
Version v4.13.0 (release 2025-01-24)
- setup: necessary because devs not released
- view: add route for rdm-search
- setup: relax upper pins
- add default-page for unhandled errors
- guard views/dashboard by `tugraz_authenticated`
- fix deprecated `before_app_first_request`
Version v4.12.9 (release 2024-05-07)
- overview: view publications only if permission
Version v4.12.8 (release 2024-03-11)
- ui: add banner to header
Version v4.12.7 (release 2024-02-12)
- translation: fix typo
Version v4.12.6 (release 2024-02-02)
- fix: error_handler gets 1 parameter
Version v4.12.5 (release 2024-02-02)
Version v4.12.4 (release 2024-02-02)
- ui: add 423 error page
- fix: types could be empty list
- setup: sort tests imports
- workflows: change to reusable workflows
- wording: update one string frontpage
- wording: update frontpage
Version v4.12.3 (release 2024-01-28)
- wording: update text in benefits

View File

@@ -10,6 +10,6 @@
from .ext import InvenioThemeTugraz
__version__ = "4.12.3"
__version__ = "4.13.0"
__all__ = ("__version__", "InvenioThemeTugraz")

View File

@@ -0,0 +1,42 @@
// Copyright (C) 2024 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 details.
import $ from "jquery";
async function generateForm() {
// get email from `/api/me`
let email = "???";
const response = await fetch("/api/me");
if (response.ok) {
const json = await response.json();
email = json?.email || "???";
}
// show form
$.getScript("https://ub-support.tugraz.at/assets/form/form.js", () => {
$("#anchor-unlock-form").ZammadForm({
attributes: [
{},
{ defaultValue: email },
{
defaultValue: `Could you unlock my account (${email}) for research-uploads?`,
// TODO: add to defaultValue once policy on how to get accepted is decided...
},
],
modal: false,
});
// focus first entry of now-shown form
document.getElementById("zammad-form-name-inline").focus();
});
}
$(function () {
// called when DOM is ready
const generateFormElement = document.getElementById("generate-unlock-form");
if (generateFormElement) {
generateFormElement.onclick = generateForm;
}
});

View File

@@ -177,3 +177,7 @@ pre {
.ui.equal.height .ui.segment {
height: 100%;
}
.ui.flashed.message.manage {
text-align: center;
}

View File

@@ -35,10 +35,16 @@ THEME_TUGRAZ_PRODUCTION = False
has to be 'INVENIO_THEME_TUGRAZ_PRODUCTION'.
"""
THEME_TUGRAZ_SUPPORT_EMAIL = ""
"""Shown as contact-info on default error-page."""
# Invenio-theme
# ============
# See https://invenio-theme.readthedocs.io/en/latest/configuration.html
#
THEME_500_TEMPLATE = "invenio_theme_tugraz/default_error.html"
"""Used for any internal server errors and uncaught exceptions."""
THEME_LOGO = "images/tug_logo.png"
"""TU Graz logo"""

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020-2021 Graz University of Technology.
# Copyright (C) 2020-2024 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
@@ -8,8 +8,12 @@
"""invenio module for TUGRAZ theme."""
from flask_login import login_required
from invenio_i18n import lazy_gettext as _
from invenio_records_marc21.ui.theme import current_identity_can_view
from . import config
from .views import index
from .views import index, locked, require_tugraz_authenticated
class InvenioThemeTugraz(object):
@@ -26,6 +30,13 @@ class InvenioThemeTugraz(object):
# https://flask.palletsprojects.com/en/1.1.x/api/#flask.Flask.add_url_rule
app.add_url_rule("/", "index", index)
self.init_config(app)
app.register_error_handler(423, locked)
@app.context_processor
def inject_visibility():
return {"can_view_marc21": current_identity_can_view()}
app.extensions["invenio-theme-tugraz"] = self
def init_config(self, app):
@@ -33,3 +44,53 @@ class InvenioThemeTugraz(object):
for k in dir(config):
if k.startswith("INVENIO_THEME_TUGRAZ_") or k.startswith("THEME_TUGRAZ_"):
app.config.setdefault(k, getattr(config, k))
def finalize_app(app):
"""Finalize app."""
modify_user_dashboard(app)
guard_view_functions(app)
def modify_user_dashboard(app):
"""Modify user dashboard."""
root_menu = app.extensions["menu"].root_node
user_dashboard_menu = root_menu.submenu("dashboard")
user_dashboard_menu.submenu("overview").register(
"invenio_theme_tugraz.overview",
text=_("Overview"),
order=0,
)
root_menu.submenu("actions.deposit").register(
"invenio_theme_tugraz.overview",
_("My dashboard"),
order=1,
)
def guard_view_functions(app):
"""Guard view-functions against unauthenticated access."""
endpoints_to_guard = [
"invenio_app_rdm_users.communities",
"invenio_app_rdm_users.requests",
"invenio_app_rdm_users.uploads",
]
for endpoint in endpoints_to_guard:
view_func = app.view_functions.get(endpoint)
if not view_func:
continue
# decorate view-func
# same as if view-func were defined with:
# @login_required
# @require_tugraz_authenticated_user
view_func = login_required(
require_tugraz_authenticated(
view_func,
),
)
app.view_functions[endpoint] = view_func

View File

@@ -0,0 +1,14 @@
{#
Copyright (C) 2024 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
details.
#}
{% extends config.THEME_ERROR_TEMPLATE %}
{% block message %}
<h1><i class="bolt icon"></i> {{_("Locked")}}</h1>
<p>{{_("The resource that is being accessed is locked.")}}</p>
{% endblock message %}

View File

@@ -6,12 +6,16 @@
details.
#}
<ul>
<li><strong>{{_("Safe") }}</strong> &mdash; {{_("Your research is stored safely for the future in TU Graz library.") }}</li>
<li><strong>{{_("Trusted") }}</strong> &mdash; {{_("Built by CERN and TU Graz. Operated by TU Graz.") }}</li>
<li><strong>{{_("Citeable") }}</strong> &mdash; {{_("Every upload is assigned a Digital Object Identifier (DOI).") }}</li>
<li><strong>{{_("No waiting time") }}</strong> &mdash; {{_("Uploads are made available online as soon as you hit publish. Your DOI is registered within seconds.") }}</li>
<li><strong>{{_("Open or closed") }}</strong> &mdash; {{_("Share private or anonymized data via the restricted access mode.") }}</li>
<li><strong>{{_("Versioning") }}</strong> &mdash; {{_("Easily update your dataset with the versioning feature.") }}</li>
<li><strong>{{_("Usage statisics") }}</strong> &mdash; {{ _("All uploads display standards compliant usage statistics.") }}</li>
</ul>
<div class="ui segment" style="padding-bottom: 10px;">
<h4>{{ _("Good reasons to use the Repository of the TU Graz") }}</h4>
<ul>
<li><strong>{{_("Safe") }}</strong> &mdash; {{_("Your research results are permanently available.") }}</li>
<li><strong>{{_("Trusted") }}</strong> &mdash; {{_("A service from TU Graz, developed in cooperation with CERN.") }}</li>
<li><strong>{{_("Citeable") }}</strong> &mdash; {{_("Every upload is assigned a Digital Object Identifier (DOI).") }}</li>
<li><strong>{{_("No waiting time") }}</strong> &mdash; {{_("Uploads are made available online as soon as you hit publish. Your DOI is registered within seconds.") }}</li>
<li><strong>{{_("Open or closed") }}</strong> &mdash; {{_("You determine the visibility of your uploads. A restricted access mode is possible.") }}</li>
<li><strong>{{_("Versioning") }}</strong> &mdash; {{_("Easily update your dataset with the versioning feature.") }}</li>
<li><strong>{{_("Usage statistics") }}</strong> &mdash; {{ _("All uploads display standards compliant usage statistics. ") }} <a href="help/statistics">({{ _("More") }})</a></li>
</ul>
</div>

View File

@@ -0,0 +1,29 @@
{#
Copyright (C) 2020-2024 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
details.
#}
<div class="ui segment">
<h4>{{ _("Need help?") }}</h4>
{%- if config.THEME_TUGRAZ_CONTACT_FORM %}
<div style="padding-bottom: 10px;">
<a id="feedback-form" class="fluid ui button">
{{ _("Contact us") }}
</a>
</div>
{%- endif %}
<p>
{{ _("We can help with:") }}
</p>
<ul>
<li>{{ _("Upload your research results, software, preprints, etc.") }}</li>
<li>{{ _("Increase upload limit beyond our default policy of 10GB.") }}</li>
<li>{{ _("Establish contact with data stewards.") }}</li>
<li>{{ _("Find individual solutions.") }}</li>
</ul>
</div>

View File

@@ -0,0 +1,21 @@
{#
Copyright (C) 2024 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
details.
#}
{% extends config.THEME_ERROR_TEMPLATE %}
{% block message %}
<h1> {{ _('Internal server error') }} </h1>
<p>
{{ _(
'Please contact <a href="mailto:{support_email}">our support</a>
to let us know about this error.'
).format(support_email=config.THEME_TUGRAZ_SUPPORT_EMAIL)
}}
</p>
{# TODO: provide g.sentry_event_id here once sentry is configured, cf. invenio_theme/500.html #}
{% endblock message %}

View File

@@ -15,6 +15,11 @@
<div>
<header>
{%- block site_banner %}
{% from 'invenio_banners/banner.html' import banner %}
{{ banner() }}
{%- endblock site_banner %}
{%- block navbar %}
<nav>
{%- block navbar_header %}

View File

@@ -25,36 +25,8 @@
<!---segments-->
<div class="six wide column">
<!--contact us-->
<div class="ui segment">
<h4>{{ _("Need help?") }}</h4>
{%- if config.THEME_TUGRAZ_CONTACT_FORM %}
<div style="padding-bottom: 10px;">
<a id="feedback-form" class="fluid ui button">
{{ _("Contact us") }}
</a>
</div>
{%- endif %}
<p>
{{ config.THEME_SITENAME }} {{ _("prioritizes all Recent uploads.") }}
</p>
<p>
{{ _("We can help with:") }}
</p>
<ul>
<li>{{ _("Uploading your research data, software, preprints, etc.") }}</li>
<li>{{ _("One-on-one with") }} {{ config.THEME_SITENAME }} {{ _("supporters.") }}</li>
<li>{{ _("Quota increases beyond our default policy.") }}</li>
<li>{{ _("Scripts for automated uploading of larger datasets.") }}</li>
</ul>
</div>
<div class="ui segment" style="padding-bottom: 10px;">
<h4>{{ _("Why use") }} {{ config.THEME_SITENAME }}</h4>
{% include "invenio_theme_tugraz/benefits.html" %}
</div>
{% include "invenio_theme_tugraz/contact_us.html" %}
{% include "invenio_theme_tugraz/benefits.html" %}
</div>
</div>
</div>

View File

@@ -11,6 +11,11 @@
{%- set active_dashboard_menu_item = "overview" %}
{%- set title = _("Overview") %}
{% block javascript %}
{{ super() }}
{{ webpack['invenio-theme-tugraz-unlock.js'] }}
{% endblock javascript %}
{%- block page_body %}
{%- block user_dashboard_header %}
{% include "invenio_app_rdm/users/header.html" %}
@@ -19,8 +24,9 @@
<div class="ui container rel-mt-2">
<h2>Overview</h2>
<div class="ui five column stackable grid overview">
{% if is_tugraz_authenticated %}
{# 3 columns: Research-Uploads, Communities, and Requests #}
<div class="column">
<div class="ui segment" style="height: 480px">
<h2>{{ _("Research Results") }}</h2>
@@ -54,6 +60,47 @@
</div>
</div>
</div>
{% else %} {# not is_tugraz_authenticated #}
{# 1 column: greyed out Research-Uploads #}
<div class="column">
{# a modal's HTML can be placed anywhere, so I placed it here, right before it's used #}
<div class="ui small modal" id="tugraz-unlock-modal">
<div class="header">{{ _("On unlocking research uploads") }}</div>
<div class="content">
<p>
{{ _('To ensure a well-curated repository, new users need to get unlocked
before being allowed to upload. Once unlocked, you can upload your research,
request its inclusion in a community, generate a DOI for it, and publish it.') }}
{# TODO: extra lines on policy about who gets accepted how for Research-Uploads #}
</p>
<div id="anchor-unlock-form"> {# will be replaced with ZammadForm when generating it #}
<button class="ui fluid button" onclick="
$('#tugraz-unlock-modal')
.modal('hide')"
>Got it!</button>
<button id="generate-unlock-form" class="ui fluid button">
{{ _("Request unlocking") }}
</button>
</div>
</div>
</div>
{# actual column contents start here #}
<div class="ui disabled segment" style="height: 480px">
<h2>{{ _("Research Results") }}</h2>
<div class="ui left floated image" style="cursor: pointer" onclick="
$('#tugraz-unlock-modal')
.modal('show')"
>
<img width="400px" alt="Research Results" src="{{ url_for("static", filename="images/diamond.svg") }}">
</div>
<div class="ui right floated text">
{{ _("Overview: Description for research results") }}
</div>
</div>
</div>
{% endif %}
{% if can_view_marc21 %}
<div class="column">
<div class="ui segment" style="height: 480px">
<h2>{{ _("Publications") }}</h2>
@@ -65,6 +112,7 @@
</div>
</div>
</div>
{% endif %}
<div class="column">
<div class="ui segment" style="height: 480px">
<h2>{{ _("Educational Resources") }}</h2>

View File

@@ -30,9 +30,11 @@
</span>
{# Resource type badge #}
<span class="ui label grey" data-tooltip="{{ _("Resource type") }}" data-inverted="">
{{ r.metadata.types[0] }}
</span>
{% if r.metadata.types | length > 0%}
<span class="ui label grey" data-tooltip="{{ _("Resource type") }}" data-inverted="">
{{ r.metadata.types[0] }}
</span>
{% endif %}
<span class="ui label access-status {{ r.access_status.id }}"
data-tooltip="{{ r.access_status.description_l10n }}"

View File

@@ -8,8 +8,8 @@ msgid ""
msgstr ""
"Project-Id-Version: invenio-theme-tugraz 1.0.4\n"
"Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n"
"POT-Creation-Date: 2024-01-25 22:36+0100\n"
"PO-Revision-Date: 2024-01-25 22:47+0100\n"
"POT-Creation-Date: 2024-02-02 10:08+0100\n"
"PO-Revision-Date: 2024-02-09 22:25+0100\n"
"Last-Translator: \n"
"Language-Team: de <LL@li.org>\n"
"Language: de\n"
@@ -38,41 +38,52 @@ msgstr "Übersicht"
msgid "My dashboard"
msgstr "Meine Übersicht"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/423.html:12
msgid "Locked"
msgstr "Locked"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/423.html:13
msgid "The resource that is being accessed is locked."
msgstr "Die angeforderte Ressource ist zurzeit gesperrt."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/accounts_base.html:26
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/base.html:34
msgid "Invenio"
msgstr "Invenio"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:10
msgid "Good reasons to use the Repository of the TU Graz"
msgstr "Gute Gründe, das Repository der TU Graz zu nutzen"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:13
msgid "Safe"
msgstr "Sicher"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:10
msgid "Your research is stored safely for the future in TU Graz library."
msgstr ""
"Ihre Forschung ist in der Bibliothek der TU Graz für die Zukunft gespeichert."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:13
msgid "Your research results are permanently available."
msgstr "Ihre Forschungsergebnisse sind dauerhaft verfügbar."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:11
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:14
msgid "Trusted"
msgstr "Vertrauenswürdig"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:11
msgid "Built by CERN and TU Graz. Operated by TU Graz."
msgstr "Gebaut von CERN und TU Graz. Betrieben von der TU Graz."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:14
msgid "A service from TU Graz, developed in cooperation with CERN."
msgstr "Ein Service der TU Graz, entwickelt in Kooperation mit CERN."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:12
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:15
msgid "Citeable"
msgstr "Zitierfähig"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:12
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:15
msgid "Every upload is assigned a Digital Object Identifier (DOI)."
msgstr "Jedem Upload wird ein Digital Object Identifier (DOI) zugewiesen."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:13
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:16
msgid "No waiting time"
msgstr "Keine Wartezeit"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:13
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:16
msgid ""
"Uploads are made available online as soon as you hit publish. Your DOI is "
"registered within seconds."
@@ -80,34 +91,75 @@ msgstr ""
"Uploads sind online verfügbar, sobald Sie auf \"Veröffentlichen\" klicken. "
"Ihre DOI wird innerhalb von Sekunden registriert."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:14
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:17
msgid "Open or closed"
msgstr "Offen oder geschlossen"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:14
msgid "Share private or anonymized data via the restricted access mode."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:17
msgid ""
"You determine the visibility of your uploads. A restricted access mode is "
"possible."
msgstr ""
"Teilen Sie private oder anonymisierte Daten über den eingeschränkten "
"Zugriffsmodus."
"Sie bestimmen die Sichtbarkeit Ihrer Uploads. Ein eingeschränkter "
"Zugriffsmodus ist möglich."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:15
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:18
msgid "Versioning"
msgstr "Versionierung"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:15
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:18
msgid "Easily update your dataset with the versioning feature."
msgstr ""
"Aktualisieren Sie Ihren Datensatz ganz einfach mit der "
"Versionierungsfunktion."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:16
msgid "Usage statisics"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:19
#, fuzzy
#| msgid "Usage statisics"
msgid "Usage statistics"
msgstr "Nutzungsstatistiken"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:16
msgid "All uploads display standards compliant usage statistics."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:19
#, fuzzy
#| msgid "All uploads display standards compliant usage statistics."
msgid "All uploads display standards compliant usage statistics. "
msgstr "Alle Uploads zeigen standardkonforme Nutzungsstatistiken an."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:19
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/recent_uploads.html:88
msgid "More"
msgstr "Mehr"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/contact_us.html:10
msgid "Need help?"
msgstr "Brauchen Sie Hilfe?"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/contact_us.html:15
msgid "Contact us"
msgstr "Kontaktieren Sie uns"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/contact_us.html:20
msgid "We can help with:"
msgstr "Dabei können wir helfen:"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/contact_us.html:24
msgid "Upload your research results, software, preprints, etc."
msgstr "Hochladen Ihrer Forschungsergebnisse, Software, Preprints usw."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/contact_us.html:25
msgid "Increase upload limit beyond our default policy of 10GB."
msgstr "Upload-Limit Erhöhung über unsere Standardrichtlinie von 10 GB hinaus."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/contact_us.html:26
#, fuzzy
#| msgid "Create contact with data stewards."
msgid "Establish contact with data stewards."
msgstr "Kontakt mit den Data Stewards herstellen."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/contact_us.html:27
msgid "Find individual solutions."
msgstr "Individuelle Lösungen finden."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:29
msgid "Documentation"
msgstr "Dokumentation"
@@ -188,7 +240,7 @@ msgstr "Um die Schriftgröße zu ändern."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:17
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/overview.html:26
msgid "Research Results"
msgstr "Forschungsergebenisse"
msgstr "Forschungsergebnisse"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/frontpage_overview.html:16
#, fuzzy
@@ -278,46 +330,6 @@ msgstr "Communities"
msgid "Dashboard"
msgstr "Übersicht"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:30
msgid "Need help?"
msgstr "Brauchen Sie Hilfe?"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:34
msgid "Contact us"
msgstr "Kontaktiere uns"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:39
msgid "prioritizes all Recent uploads."
msgstr "reiht die neuesten Uploads vor."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:42
msgid "We can help with:"
msgstr "Dabei können wir helfen:"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:46
msgid "Uploading your research data, software, preprints, etc."
msgstr "Hochladen Ihrer Forschungsdaten, Software, Preprints usw."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:47
msgid "One-on-one with"
msgstr "One-on-one mit"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:47
msgid "supporters."
msgstr "UnterstützerInnen."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:48
msgid "Quota increases beyond our default policy."
msgstr "Quota Erhöhungen über unsere Standard Policy hinaus."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:49
msgid "Scripts for automated uploading of larger datasets."
msgstr "Skripte zum automatisierten Hochladen größerer Datensätze."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:54
msgid "Why use"
msgstr "Warum"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:12
msgid "All"
msgstr "Alle"
@@ -393,14 +405,10 @@ msgstr "Es sind keine öffentlich zugänglichen Datensätze vorhanden."
msgid "Publication date"
msgstr "Datum der Veröffentlichung"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/recent_uploads.html:33
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/recent_uploads.html:34
msgid "Resource type"
msgstr "Art der Veröffentlichung"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/recent_uploads.html:86
msgid "More"
msgstr "Mehr"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:8
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:82
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:82
@@ -491,6 +499,34 @@ msgstr "Mit Ihrem TUGonline-Account registrieren"
msgid "Sign up with repository credentials"
msgstr "Mit Ihren Repository Daten registrieren"
#~ msgid "Why use"
#~ msgstr "Warum"
#~ msgid "Your research is stored safely for the future in TU Graz library."
#~ msgstr ""
#~ "Ihre Forschung ist in der Bibliothek der TU Graz für die Zukunft "
#~ "gespeichert."
#~ msgid "Built by CERN and TU Graz. Operated by TU Graz."
#~ msgstr "Gebaut von CERN und TU Graz. Betrieben von der TU Graz."
#~ msgid "Share private or anonymized data via the restricted access mode."
#~ msgstr ""
#~ "Teilen Sie private oder anonymisierte Daten über den eingeschränkten "
#~ "Zugriffsmodus."
#~ msgid "prioritizes all Recent uploads."
#~ msgstr "reiht die neuesten Uploads vor."
#~ msgid "One-on-one with"
#~ msgstr "One-on-one mit"
#~ msgid "supporters."
#~ msgstr "UnterstützerInnen."
#~ msgid "Scripts for automated uploading of larger datasets."
#~ msgstr "Skripte zum automatisierten Hochladen größerer Datensätze."
#~ msgid ""
#~ "built and operated by CERN and OpenAIRE to ensure that everyone can join "
#~ "in Open Science."

View File

@@ -8,8 +8,8 @@ msgid ""
msgstr ""
"Project-Id-Version: invenio-theme-tugraz 4.12.0\n"
"Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n"
"POT-Creation-Date: 2024-01-25 22:36+0100\n"
"PO-Revision-Date: 2024-01-25 22:44+0100\n"
"POT-Creation-Date: 2024-02-02 10:08+0100\n"
"PO-Revision-Date: 2024-02-02 10:09+0100\n"
"Last-Translator: \n"
"Language-Team: en <LL@li.org>\n"
"Language: en\n"
@@ -38,67 +38,114 @@ msgstr ""
msgid "My dashboard"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/423.html:12
msgid "Locked"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/423.html:13
msgid "The resource that is being accessed is locked."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/accounts_base.html:26
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/base.html:34
msgid "Invenio"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:10
msgid "Good reasons to use the Repository of the TU Graz"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:13
msgid "Safe"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:10
msgid "Your research is stored safely for the future in TU Graz library."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:13
msgid "Your research results are permanently available."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:11
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:14
msgid "Trusted"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:11
msgid "Built by CERN and TU Graz. Operated by TU Graz."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:14
msgid "A service from TU Graz, developed in cooperation with CERN."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:12
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:15
msgid "Citeable"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:12
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:15
msgid "Every upload is assigned a Digital Object Identifier (DOI)."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:13
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:16
msgid "No waiting time"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:13
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:16
msgid ""
"Uploads are made available online as soon as you hit publish. Your DOI is "
"registered within seconds."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:14
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:17
msgid "Open or closed"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:14
msgid "Share private or anonymized data via the restricted access mode."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:17
msgid ""
"You determine the visibility of your uploads. A restricted access mode is "
"possible."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:15
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:18
msgid "Versioning"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:15
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:18
msgid "Easily update your dataset with the versioning feature."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:16
msgid "Usage statisics"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:19
msgid "Usage statistics"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:16
msgid "All uploads display standards compliant usage statistics."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:19
msgid "All uploads display standards compliant usage statistics. "
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:19
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/recent_uploads.html:88
msgid "More"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/contact_us.html:10
msgid "Need help?"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/contact_us.html:15
msgid "Contact us"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/contact_us.html:20
msgid "We can help with:"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/contact_us.html:24
msgid "Upload your research results, software, preprints, etc."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/contact_us.html:25
msgid "Increase upload limit beyond our default policy of 10GB."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/contact_us.html:26
msgid "Establish contact with data stewards."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/contact_us.html:27
msgid "Find individual solutions."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:29
@@ -269,46 +316,6 @@ msgstr ""
msgid "Dashboard"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:30
msgid "Need help?"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:34
msgid "Contact us"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:39
msgid "prioritizes all Recent uploads."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:42
msgid "We can help with:"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:46
msgid "Uploading your research data, software, preprints, etc."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:47
msgid "One-on-one with"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:47
msgid "supporters."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:48
msgid "Quota increases beyond our default policy."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:49
msgid "Scripts for automated uploading of larger datasets."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:54
msgid "Why use"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:12
msgid "All"
msgstr ""
@@ -381,14 +388,10 @@ msgstr ""
msgid "Publication date"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/recent_uploads.html:33
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/recent_uploads.html:34
msgid "Resource type"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/recent_uploads.html:86
msgid "More"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:8
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:82
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:82

View File

@@ -7,16 +7,16 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: invenio-theme-tugraz 4.12.2\n"
"Project-Id-Version: invenio-theme-tugraz 4.12.3\n"
"Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n"
"POT-Creation-Date: 2024-01-25 22:36+0100\n"
"POT-Creation-Date: 2024-02-02 10:08+0100\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"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.10.3\n"
"Generated-By: Babel 2.13.1\n"
#: invenio_theme_tugraz/config.py:13 invenio_theme_tugraz/config.py:60
msgid "TU Graz Repository"
@@ -36,67 +36,114 @@ msgstr ""
msgid "My dashboard"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/423.html:12
msgid "Locked"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/423.html:13
msgid "The resource that is being accessed is locked."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/accounts_base.html:26
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/base.html:34
msgid "Invenio"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:10
msgid "Good reasons to use the Repository of the TU Graz"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:13
msgid "Safe"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:10
msgid "Your research is stored safely for the future in TU Graz library."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:13
msgid "Your research results are permanently available."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:11
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:14
msgid "Trusted"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:11
msgid "Built by CERN and TU Graz. Operated by TU Graz."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:14
msgid "A service from TU Graz, developed in cooperation with CERN."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:12
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:15
msgid "Citeable"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:12
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:15
msgid "Every upload is assigned a Digital Object Identifier (DOI)."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:13
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:16
msgid "No waiting time"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:13
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:16
msgid ""
"Uploads are made available online as soon as you hit publish. Your DOI is"
" registered within seconds."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:14
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:17
msgid "Open or closed"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:14
msgid "Share private or anonymized data via the restricted access mode."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:17
msgid ""
"You determine the visibility of your uploads. A restricted access mode is"
" possible."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:15
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:18
msgid "Versioning"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:15
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:18
msgid "Easily update your dataset with the versioning feature."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:16
msgid "Usage statisics"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:19
msgid "Usage statistics"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:16
msgid "All uploads display standards compliant usage statistics."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:19
msgid "All uploads display standards compliant usage statistics. "
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:19
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/recent_uploads.html:88
msgid "More"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/contact_us.html:10
msgid "Need help?"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/contact_us.html:15
msgid "Contact us"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/contact_us.html:20
msgid "We can help with:"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/contact_us.html:24
msgid "Upload your research results, software, preprints, etc."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/contact_us.html:25
msgid "Increase upload limit beyond our default policy of 10GB."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/contact_us.html:26
msgid "Establish contact with data stewards."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/contact_us.html:27
msgid "Find individual solutions."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:29
@@ -248,46 +295,6 @@ msgstr ""
msgid "Dashboard"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:30
msgid "Need help?"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:34
msgid "Contact us"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:39
msgid "prioritizes all Recent uploads."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:42
msgid "We can help with:"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:46
msgid "Uploading your research data, software, preprints, etc."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:47
msgid "One-on-one with"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:47
msgid "supporters."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:48
msgid "Quota increases beyond our default policy."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:49
msgid "Scripts for automated uploading of larger datasets."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:54
msgid "Why use"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:12
msgid "All"
msgstr ""
@@ -352,14 +359,10 @@ msgstr ""
msgid "Publication date"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/recent_uploads.html:33
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/recent_uploads.html:34
msgid "Resource type"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/recent_uploads.html:86
msgid "More"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:8
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:82
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:82

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020-2024 Graz University of Technology.
# Copyright (C) 2020-2025 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
@@ -8,14 +8,12 @@
"""invenio module for TUGRAZ theme."""
from functools import wraps
from typing import Dict
from flask import Blueprint, g, render_template
from flask import Blueprint, current_app, g, redirect, render_template, url_for
from flask_login import current_user, login_required
from flask_menu import current_menu
from invenio_i18n import lazy_gettext as _
# from invenio_rdm_records.resources.serializers import UIJSONSerializer
from invenio_rdm_records.proxies import current_rdm_records
from invenio_records_global_search.resources.serializers import (
GlobalSearchJSONSerializer,
)
@@ -32,6 +30,46 @@ blueprint = Blueprint(
)
@blueprint.route("/records/search")
def records_search():
"""Search page ui.
With this route it is possible to override the default route
"/search" to get to the rdm-records search. The default route will
be overriden by the global search with changing the
SEARCH_UI_SEARCH_TEMPLATE variable to the value
"invenio_records_global_search/search/search.html" in the
invenio.cfg file.
"""
return render_template("invenio_app_rdm/records/search.html")
def current_identity_is_tugraz_authenticated() -> bool:
"""Checks whether current identity has tugraz-authentication.
NOTE: Default permission-policy has no field for `tugraz_authenticated`.
Should the field not exist, the service checks against admin-permissions instead.
You probably meant to configure a custom permission-policy.
"""
rdm_service = current_rdm_records.records_service
return rdm_service.check_permission(g.identity, "tugraz_authenticated")
def require_tugraz_authenticated(view_func):
"""Decorator for guarding view-functions against unauthenticated users.
Redirects un-authenticated users to their personal dashboard's overview.
"""
@wraps(view_func)
def decorated_view(*args, **kwargs):
if not current_identity_is_tugraz_authenticated():
return redirect(url_for("invenio_theme_tugraz.overview"))
return view_func(*args, **kwargs)
return decorated_view
@blueprint.route("/me/overview")
@login_required
def overview():
@@ -39,8 +77,10 @@ def overview():
url = current_user_resources.users_service.links_item_tpl.expand(
g.identity, current_user
)["avatar"]
is_tugraz_authenticated = current_identity_is_tugraz_authenticated()
return render_template(
"invenio_theme_tugraz/overview.html",
is_tugraz_authenticated=is_tugraz_authenticated,
user_avatar=url,
)
@@ -60,22 +100,16 @@ def cast_to_dict(attr_dict):
return AttrDict.to_dict(attr_dict)
@blueprint.before_app_first_request
def modify_user_dashboard():
"""Modify user dashboard."""
user_dashboard_menu = current_menu.submenu("dashboard")
def default_error_handler(e: Exception):
"""Called when an otherwise unhandled error occurs."""
# TODO: use sentry here once it's configured
# information we might want to log for debugging the error:
# - `flask.request`, a proxy to the current http-request in which the error occured
# - `flask.session`, a proxy to the current http-session
# - `e`, the passed-in exception
# to get proxied-to objects: `flask.request._get_current_object()`
user_dashboard_menu.submenu("overview").register(
"invenio_theme_tugraz.overview",
text=_("Overview"),
order=0,
)
current_menu.submenu("actions.deposit").register(
"invenio_theme_tugraz.overview",
_("My dashboard"),
order=1,
)
return render_template(current_app.config["THEME_500_TEMPLATE"]), 500
def ui_blueprint(app):
@@ -84,6 +118,9 @@ def ui_blueprint(app):
blueprint.add_url_rule(routes["index"], view_func=index)
# base case for any otherwise unhandled exception
app.register_error_handler(Exception, default_error_handler)
return blueprint
@@ -100,3 +137,8 @@ def index():
return render_template(
"invenio_theme_tugraz/index.html", records=records_serializer(records)
)
def locked(e):
"""Error page for status locked."""
return render_template("invenio_theme_tugraz/423.html")

View File

@@ -17,9 +17,10 @@ theme = WebpackThemeBundle(
entry={
"invenio-theme-tugraz-theme": "./less/invenio_theme_tugraz/theme.less",
"invenio-theme-tugraz-js": "./js/invenio_theme_tugraz/theme.js",
"invenio-theme-tugraz-unlock": "./js/invenio_theme_tugraz/unlock.js",
},
dependencies={
# add any additional npm dependencies here...
"jquery": "^3.2.1", # zammad-form, semantic-ui's modals
},
)
},

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020-2021 Graz University of Technology.
# Copyright (C) 2020-2025 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
@@ -25,29 +25,31 @@ classifiers =
Programming Language :: Python
Topic :: Internet :: WWW/HTTP :: Dynamic Content
Topic :: Software Development :: Libraries :: Python Modules
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.12
Development Status :: 3 - Alpha
[options]
include_package_data = True
packages = find:
python_requires = >=3.9
python_requires = >=3.12
zip_safe = False
install_requires =
invenio-assets>=2.0.0
invenio-i18n>=1.3.1
invenio_config_tugraz>=0.11.0
invenio_records_global_search>=0.0.1
invenio_records_marc21>=0.21.0
[options.extras_require]
tests =
invenio-app>=1.3.4,<2.0.0
invenio-previewer>=2.2.0
invenio-rdm-records<17.0.0
invenio-search[opensearch2]>=2.1.0
pytest<8.0.0
pytest-black-ng>=0.4.0
pytest-invenio>=2.1.0
Sphinx>=4.5.0
pytest-invenio>=2.1.0,<3.0.0
invenio-app>=1.3.4,<1.4.0
opensearch2 =
invenio-search[opensearch2]>=2.1.0,<3.0.0
[options.entry_points]
invenio_base.apps =
@@ -60,6 +62,8 @@ invenio_assets.webpack =
invenio_theme_tugraz_theme = invenio_theme_tugraz.webpack:theme
invenio_config.module =
invenio_theme_tugraz = invenio_theme_tugraz.config
invenio_base.finalize_app =
invenio_theme_tugraz = invenio_theme_tugraz.ext:finalize_app
[aliases]
test = pytest