Fixed jinja formatting

This commit is contained in:
2025-05-02 15:06:19 +01:00
parent 1d5cd3501e
commit 35a17bde25
16 changed files with 205 additions and 203 deletions

View File

@@ -1,7 +1,7 @@
{#
Copyright (C) 2024 Graz University of Technology.
invenio-theme-iform 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
details.
#}

View File

@@ -1,7 +1,7 @@
{#
Copyright (C) 2020-2021 Graz University of Technology.
invenio-theme-iform 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
details.
#}
@@ -46,7 +46,7 @@
{%- block header %}{% endblock header %}
{%- block css %}
{{ webpack['theme.css'] }}
{{ webpack['invenio-theme-iform-theme.css'] }}
{{ webpack['invenio-theme-tugraz-theme.css'] }}
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
@@ -56,10 +56,10 @@
{%- endblock head %}
</head>
<body ng-csp {% if body_css_classes %} class="{{ body_css_classes|join(' ') }}"{% endif %}{% if g.ln %} lang="{{ g.ln.split('_', 1)[0]|safe }}"{% if rtl_direction %} {{ rtl_direction|safe }}{% endif %}{% endif %} itemscope itemtype="http://schema.org/WebPage" data-spy="scroll" data-target=".scrollspy-target">
{% if not config.THEME_IFORM_PRODUCTION %}
{% if not config.THEME_TUGRAZ_PRODUCTION %}
<div class="ui sticky test-instance">
<h4>{{_ ("Test Instance") }}</h4>
<p>{{_ ("This is the test instance of the I-Form Repository.") }}</p>
<p>{{_ ("This is the test instance of the TU Graz Repository.") }}</p>
</div>
{% endif %}
{%- block body %}
@@ -71,7 +71,7 @@
{%- block body_inner %}
{%- block navbar_header %}
{%- include "invenio_theme_IFORM/navbar.html" %}
{%- include "invenio_theme_tugraz/navbar.html" %}
<!--Flask messages for accounts-->
{%- block flashmessages %}
{%- from "invenio_theme/macros/messages.html" import flashed_messages with context -%}
@@ -79,7 +79,7 @@
{%- endblock %}
{%- endblock navbar_header %}
{#
{%- block page_header %}
{% include config.THEME_HEADER_TEMPLATE %}

View File

@@ -1,12 +1,12 @@
{#
Copyright (C) 2020-2021 Graz University of Technology.
invenio-theme-iform 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
details.
#}
{% extends config.INVENIO_THEME_IFORM_ACCOUNT_BASE %}
{% extends config.INVENIO_THEME_TUGRAZ_ACCOUNT_BASE %}
{% from "invenio_accounts/_macros.html" import render_field, form_errors %}
@@ -37,7 +37,7 @@
{{
_('Log in with %(title)s', title=config.SSO_SAML_IDPS[name]['title']|default("SAML", true))
}}
<img src="{{ url_for('static', filename=config.INVENIO_THEME_IFORM_ICON)}}" height="20px" />
<img src="{{ url_for('static', filename=config.INVENIO_THEME_TUGRAZ_ICON)}}" height="20px" />
</a>
</div>
{% endfor %}

View File

@@ -1,12 +1,12 @@
{#
Copyright (C) 2020 Graz University of Technology.
invenio-theme-iform 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
details.
#}
{% extends config.INVENIO_THEME_IFORM_ACCOUNT_BASE %}
{% extends config.INVENIO_THEME_TUGRAZ_ACCOUNT_BASE %}
{% from "invenio_accounts/_macros.html" import render_field, form_errors %}
@@ -38,11 +38,11 @@
<div class="column" id="switch_right">
{# Sigup with SSO #}
{%- if config.INVENIO_CONFIG_IFORM_SHIBBOLETH %}
{%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %}
<div class="ui divider"></div>
<a href="{{ url_for("sso_saml.sso", idp="idp") }}" class="login-page-button ui fluid large button">
<span style="font-size: 18px;">{{ _("Sign up with I-Form") }}</span>
<img src="{{ url_for("static", filename=config.INVENIO_THEME_IFORM_ICON) }}" height="20px" />
<span style="font-size: 18px;">{{ _("Sign up with TUGRAZ") }}</span>
<img src="{{ url_for("static", filename=config.INVENIO_THEME_TUGRAZ_ICON) }}" height="20px" />
</a>
<div class="ui inverted horizontal divider"><span class="text-color">{{_ ("Or") }}</span></div>
{%- endif %}

View File

@@ -1,96 +1,97 @@
{#
Copyright (C) 2020-2023 Graz University of Technology.
Copyright (C) 2020-2023 Graz University of Technology.
invenio-theme-iform is free software; you can redistribute it and/or
modify it under the terms of the MIT License; see LICENSE file for more
details.
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.
#}
<!DOCTYPE html>
<html lang="{{ current_i18n.locale.language|safe }}" dir="{{ current_i18n.locale.text_direction }}">
<head>
{%- block head %}
{%- block head_meta %}
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<head>
{%- block head %}
{%- block head_meta %}
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
{%- if description %}
<meta name="description" content="{{ description }}" />
{% endif %}
{%- if description %}
<meta name="description" content="{{ description }}" />
{% endif %}
{%- if keywords %}
<meta name="keywords" content="{{ keywords }}" />
{% endif %}
{%- if keywords %}
<meta name="keywords" content="{{ keywords }}" />
{% endif %}
{%- if config.get("THEME_GOOGLE_SITE_VERIFICATION", None) %}
{%- for google_id in config.THEME_GOOGLE_SITE_VERIFICATION %}
<meta name="google-site-verification" content="{{google_id}}"/>
{%- endfor %}
{%- endif %}
{%- endblock head_meta %}
{%- if config.get("THEME_GOOGLE_SITE_VERIFICATION", None) %}
{%- for google_id in config.THEME_GOOGLE_SITE_VERIFICATION %}
<meta name="google-site-verification" content="{{google_id}}" />
{%- endfor %}
{%- endif %}
{%- endblock head_meta %}
{%- block head_title %}
{%- set title = title or _(config.THEME_SITENAME) or _("Invenio") %}
<title>{{title}}</title>
{%- endblock head_title %}
{%- block head_title %}
{%- set title = title or _(config.THEME_SITENAME) or _("Invenio") %}
<title>{{title}}</title>
{%- endblock head_title %}
{%- block head_links %}
<link rel="shortcut icon" href="{{ url_for("static", filename="favicon.ico") }}"/>
{%- block head_links %}
<link rel="shortcut icon" href="{{ url_for(" static", filename="favicon.ico" ) }}" />
{%- if keywords %}
<link rel="canonical" href="{{ canonical_url }}"/>
{% endif %}
{%- if keywords %}
<link rel="canonical" href="{{ canonical_url }}" />
{% endif %}
{%- block head_links_langs %}
{%- if alternate_urls %}
{%- for alt_ln, alternate_url in alternate_urls.items() %}
<link rel="alternate" hreflang="{{ alt_ln }}" href="{{ alternate_url }}"/>
{%- endfor %}
{%- endif %}
{%- endblock %}
{%- endblock head_links %}
{%- block head_links_langs %}
{%- if alternate_urls %}
{%- for alt_ln, alternate_url in alternate_urls.items() %}
<link rel="alternate" hreflang="{{ alt_ln }}" href="{{ alternate_url }}" />
{%- endfor %}
{%- endif %}
{%- endblock %}
{%- endblock head_links %}
{%- block header %}{% endblock header %}
{%- block header %}{% endblock header %}
{%- block css %}
{{ webpack["theme.css"] }}
{{ webpack["invenio-theme-tugraz-theme.css"] }}
{%- endblock css %}
{%- endblock head %}
</head>
{%- block css %}
{{ webpack["theme.css"] }}
{{ webpack["invenio-theme-iform-theme.css"] }}
{%- endblock css %}
{%- endblock head %}
</head>
<body itemscope itemtype="http://schema.org/WebPage" data-spy="scroll" data-target=".scrollspy-target">
{%- block body %}
{%- block browserupgrade %}
<!--[if lt IE 10]>
<body itemscope itemtype="http://schema.org/WebPage" data-spy="scroll" data-target=".scrollspy-target">
{%- block body %}
{%- block browserupgrade %}
<!--[if lt IE 10]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
{%- endblock browserupgrade %}
{%- endblock browserupgrade %}
{%- block body_inner %}
{%- block page_header %}
{% include config.THEME_HEADER_TEMPLATE %}
{%- endblock page_header %}
{%- block body_inner %}
{%- block page_header %}
{% include config.THEME_HEADER_TEMPLATE %}
{%- endblock page_header %}
{%- block page_body %}
{% include "invenio_theme/body.html" %}
{%- endblock page_body %}
{%- block page_body %}
{% include "invenio_theme/body.html" %}
{%- endblock page_body %}
{%- block page_footer %}
{% include config.THEME_FOOTER_TEMPLATE %}
{%- endblock page_footer %}
{%- endblock body_inner %}
{%- block page_footer %}
{% include config.THEME_FOOTER_TEMPLATE %}
{%- endblock page_footer %}
{%- endblock body_inner %}
{%- block javascript %}
{% include config.THEME_JAVASCRIPT_TEMPLATE %}
{%- endblock javascript %}
{%- block trackingcode %}
{% include config.THEME_TRACKINGCODE_TEMPLATE %}
{%- endblock %}
{%- endblock body %}
</body>
{%- block javascript %}
{% include config.THEME_JAVASCRIPT_TEMPLATE %}
{%- endblock javascript %}
{%- block trackingcode %}
{% include config.THEME_TRACKINGCODE_TEMPLATE %}
{%- endblock %}
{%- endblock body %}
</body>
</html>

View File

@@ -1,27 +1,21 @@
{#
Copyright (C) 2020-2024 Graz University of Technology.
Copyright (C) 2020-2024 Graz University of Technology.
invenio-theme-iform is free software; you can redistribute it and/or
modify it under the terms of the MIT License; see LICENSE file for more
details.
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" style="padding-bottom: 10px;">
<h4>{{ _("Good reasons to use the I-Form Repository") }}</h4>
<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 I-Form, 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>
<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

@@ -1,20 +1,20 @@
{#
Copyright (C) 2020-2024 Graz University of Technology.
Copyright (C) 2020-2024 Graz University of Technology.
invenio-theme-iform is free software; you can redistribute it and/or
modify it under the terms of the MIT License; see LICENSE file for more
details.
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_IFORM_CONTACT_FORM %}
<div style="padding-bottom: 10px;">
<a id="feedback-form" class="fluid ui button">
{{ _("Contact us") }}
</a>
</div>
{%- 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:") }}

View File

@@ -1,7 +1,7 @@
{#
Copyright (C) 2024 Graz University of Technology.
invenio-theme-iform 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
details.
#}
@@ -14,7 +14,7 @@
{{ _(
'Please contact <a href="mailto:{support_email}">our support</a>
to let us know about this error.'
).format(support_email=config.THEME_IFORM_SUPPORT_EMAIL)
).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 #}

View File

@@ -1,17 +1,17 @@
{#
Copyright (C) 2020-2023 Graz University of Technology.
Copyright (C) 2020-2023 Graz University of Technology.
invenio-theme-iform is free software; you can redistribute it and/or
modify it under the terms of the MIT License; see LICENSE file for more
details.
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.
#}
{%- block css %}
{{ webpack['invenio-theme-iform-theme.css'] }}
{{ webpack['invenio-theme-tugraz-theme.css'] }}
{%- endblock %}
{%- block javascript %}
{{ webpack['invenio-theme-iform-js.js'] }}
{{ webpack['invenio-theme-tugraz-js.js'] }}
{%- endblock javascript %}
<div class="spacer"></div>
@@ -25,33 +25,36 @@ details.
<div class="ui list">
<div class="item">
<a href="https://tu-graz-library.github.io/docs-repository" title="Repository documentation"
target="_blank">
{{ _("Documentation") }} <i class="external alternate icon"></i>
target="_blank">
{{ _("Documentation") }} <i class="external alternate icon"></i>
</a>
</div>
<div class="item">
<a href="{{ url_for('invenio_config_iform.guide') }}" title="Quick guide" target="_blank">
{{ _("Reference Guide") }} <i class="download icon"></i>
<a href="{{ url_for('invenio_config_tugraz.guide') }}"
title="Quick guide" target="_blank">
{{ _("Reference Guide") }} <i class="download icon"></i>
</a>
</div>
<div class="item">
<a href="{{ url_for('invenio_app_rdm.help_search') }}" title="Search guide">
{{ _("Search Guide") }}<i class="angle right icon"></i>
<a href="{{ url_for('invenio_app_rdm.help_search') }}"
title="Search guide">
{{ _("Search Guide") }}<i class="angle right icon"></i>
</a>
</div>
<div class="item">
<a href="{{ url_for('invenio_config_iform.gdpr') }}" title="General Data Protection Rights"
target="_blank">
{{ _("Data Protection") }} <i class="download icon"></i>
<a href="{{ url_for('invenio_config_tugraz.gdpr') }}"
title="General Data Protection Rights" target="_blank">
{{ _("Data Protection") }} <i class="download icon"></i>
</a>
</div>
<div class="item">
<a href="{{ url_for('invenio_config_iform.terms') }}" title="Terms and Conditions" target="_blank">
{{ _("Terms and Conditions") }} <i class="download icon"></i>
<a href="{{ url_for('invenio_config_tugraz.terms') }}"
title="Terms and Conditions" target="_blank">
{{ _("Terms and Conditions") }} <i class="download icon"></i>
</a>
</div>
</div>
@@ -118,8 +121,9 @@ details.
<div class="logos">
<strong>Powered by</strong>
<a href="http://inveniosoftware.org/products/rdm" target="_blank" title="invenioRDM">
<img src="{{ url_for(" static", filename="images/inveniordm-tail.svg" )}}" alt="InvenioRDM logo"
style="display: block; height: 90px; margin-top: 8px;">
<img src="{{ url_for("static", filename="images/inveniordm-tail.svg")}}"
alt="InvenioRDM logo"
style="display: block; height: 90px; margin-top: 8px;">
</a>
</div>
</div>
@@ -127,8 +131,9 @@ details.
<div class="logos">
<strong>Enabled by</strong>
<a href="https://forschungsdaten.at/en/fair-data-austria/" target="_blank" title="Fair Data Austria">
<img src="{{ url_for(" static", filename="images/Fair_Data_Austria_orangerot.png" )}}"
alt="Fair Data Austria" style="display: block; height: auto; margin-top: 15px; width: 230px;">
<img src="{{ url_for("static", filename="images/Fair_Data_Austria_orangerot.png")}}"
alt="Fair Data Austria"
style="display: block; height: auto; margin-top: 15px; width: 230px;">
</a>
</div>
</div>
@@ -137,8 +142,9 @@ details.
<div class="logos">
<strong>Supported by</strong>
<a href="https://www.openeducation.at" target="_blank" title="Open Education Austria">
<img src="{{ url_for(" static", filename="images/oea.svg" )}}" alt="Open Education Austria"
style="display: block; height: auto; margin-top: 15px; width: 200px;">
<img src="{{ url_for("static", filename="images/oea.svg")}}"
alt="Open Education Austria"
style="display: block; height: auto; margin-top: 15px; width: 200px;">
</a>
</div>
</div>
@@ -150,10 +156,10 @@ details.
<div class="column">
<div class="logos">
<strong>Listed on</strong>
<a href="https://www.re3data.org/repository/r3d100013565" target="_blank"
title="Registry of Research Data Repositories">
<img src="{{ url_for(" static", filename="images/re3data.svg" )}}"
alt="Registry of Research Data Repositories" style="display: block; height: auto; width: 300px;">
<a href="https://www.re3data.org/repository/r3d100013565" target="_blank" title="Registry of Research Data Repositories">
<img src="{{ url_for("static", filename="images/re3data.svg")}}"
alt="Registry of Research Data Repositories"
style="display: block; height: auto; width: 300px;">
</a>
</div>
</div>

View File

@@ -1,9 +1,9 @@
{#
Copyright (C) 2020-2023 Graz University of Technology.
Copyright (C) 2020-2023 Graz University of Technology.
invenio-theme-iform is free software; you can redistribute it and/or
modify it under the terms of the MIT License; see LICENSE file for more
details.
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="sixteen wide column random-records-frontpage">

View File

@@ -1,12 +1,12 @@
{#
Copyright (C) 2020-2023 Graz University of Technology.
invenio-theme-iform 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
details.
#}
{% if not config.THEME_IFORM_PRODUCTION %}
{% if not config.THEME_TUGRAZ_PRODUCTION %}
<div class="ui sticky test-instance">
<h4>{{ _("Test Instance") }}</h4>
<p>{{ _("This is the test instance of the TU Graz Repository.") }}</p>
@@ -23,14 +23,14 @@
{%- block navbar %}
<nav>
{%- block navbar_header %}
{%- include "invenio_theme_iform/navbar.html" %}
{%- include "invenio_theme_tugraz/navbar.html" %}
{%- endblock navbar_header %}
<div class="ui container">
<div class="ui grid stackable container">
<div class="three column row centered" style="padding-bottom: 0;">
<div class="two wide column main-menu-entry">
<a href="{{url_for('invenio_theme_iform.index')}}" title="Home" class="no-decoration">
<a href="{{url_for('invenio_theme_tugraz.index')}}" title="Home" class="no-decoration">
<span class="home-inline">
<svg shape-rendering="geometricPrecision" id="int-menu-q-home-icon"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg"

View File

@@ -1,15 +1,15 @@
{#
Copyright (C) 2020-2023 Graz University of Technology.
invenio-theme-iform 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
details.
#}
{%- extends config.INVENIO_THEME_IFORM_BASE_TEMPLATE %}
{%- extends config.INVENIO_THEME_TUGRAZ_BASE_TEMPLATE %}
{%- block javascript %}
{{ webpack['invenio-theme-iform-js.js'] }}
{{ webpack['invenio-theme-tugraz-js.js'] }}
{%- endblock javascript %}
{%- block page_body %}
@@ -19,14 +19,14 @@
<div class="ui stackable grid">
{% include "invenio_theme_iform/frontpage_overview.html" %}
{% include "invenio_theme_tugraz/frontpage_overview.html" %}
{% include "invenio_theme_iform/recent_uploads.html" %}
{% include "invenio_theme_tugraz/recent_uploads.html" %}
<!---segments-->
<div class="six wide column">
{% include "invenio_theme_iform/contact_us.html" %}
{% include "invenio_theme_iform/benefits.html" %}
{% include "invenio_theme_tugraz/contact_us.html" %}
{% include "invenio_theme_tugraz/benefits.html" %}
</div>
</div>
</div>

View File

@@ -2,7 +2,7 @@
Copyright (C) 2020 Zenodo
Copyright (C) 2020 TUGRAZ
invenio-theme-iform 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
details.
#}

View File

@@ -1,33 +1,33 @@
{#
Copyright (C) 2020-2023 Graz University of Technology.
Copyright (C) 2020-2023 Graz University of Technology.
invenio-theme-iform is free software; you can redistribute it and/or
modify it under the terms of the MIT License; see LICENSE file for more
details.
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.
#}
{% set options = [
{
"key": "records",
"text": _("All"),
"value": url_for("invenio_search_ui.search"),
"title": "repo",
},{
"key": "rdm",
"text": _("Research Results"),
"value": "/records/search",
"title": "Research Data",
},{
"key": "marc21",
"text": _("Publications"),
"value": url_for("invenio_records_marc21.search"),
"title": "publication",
},{
"key": "lom",
"text": _("Educational Resources"),
"value": url_for("invenio_records_lom.search"),
"title": "oer",
}
{
"key": "records",
"text": _("All"),
"value": url_for("invenio_search_ui.search"),
"title": "repo",
},{
"key": "rdm",
"text": _("Research Results"),
"value": "/records/search",
"title": "Research Data",
},{
"key": "marc21",
"text": _("Publications"),
"value": url_for("invenio_records_marc21.search"),
"title": "publication",
},{
"key": "lom",
"text": _("Educational Resources"),
"value": url_for("invenio_records_lom.search"),
"title": "oer",
}
]
%}
@@ -44,11 +44,12 @@ details.
<div class="short-menu-left-lang">
{%- for l in current_i18n.get_locales() %}
{%- if current_i18n.language != l.language %}
<a href="{{ url_for(" invenio_i18n.set_lang", lang_code=l.language) }}" class="no-decoration">
{{ l.get_display_name().upper()[0:2] }}
</a>
{%- endif %}
{%- if current_i18n.language != l.language %}
<a href="{{ url_for("invenio_i18n.set_lang", lang_code=l.language) }}"
class="no-decoration">
{{ l.get_display_name().upper()[0:2] }}
</a>
{%- endif %}
{%- endfor %}
</div>
</div>
@@ -57,7 +58,7 @@ details.
<div class="short-menu-right">
{%- block navbar_right %}
{%- include config.THEME_HEADER_LOGIN_TEMPLATE %}
{%- include config.THEME_HEADER_LOGIN_TEMPLATE %}
{%- endblock navbar_right %}
</div>
</div>
@@ -70,10 +71,10 @@ details.
<div class="left floated left aligned six wide column" id="repo-logo">
<div class="inline-elements">
<div class="repo-img">
<img height="51.862" src="{{ url_for(" static", filename="images/library_logo.png" )}}">
<img height="51.862" src="{{ url_for("static", filename="images/library_logo.png")}}">
</div>
<div class="affiliation-text">
<a title="Home" href="{{url_for(" invenio_theme_iform.index")}}" class="no-decoration">
<a title="Home" href="{{url_for("invenio_theme_tugraz.index")}}" class="no-decoration">
{{ _("TU GRAZ") }}
<br>
{{ _("REPOSITORY") }}
@@ -92,7 +93,7 @@ details.
<div class="affiliation-logo-claim-single">{{ _("PASSION") }}</div>
<div class="affiliation-logo-claim-single">{{ _("TECHNOLOGY") }}</div>
</div>
{%- include "invenio_theme_iform/iform_logo.svg" %}
{%- include "invenio_theme_tugraz/tu_graz_logo.svg" %}
</a>
</div>
</div>

View File

@@ -1,19 +1,19 @@
{#
Copyright (C) 2020-2023 Graz University of Technology.
invenio-theme-iform 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
details.
#}
{%- extends config.INVENIO_THEME_IFORM_BASE_TEMPLATE %}
{%- extends config.INVENIO_THEME_TUGRAZ_BASE_TEMPLATE %}
{%- set active_dashboard_menu_item = "overview" %}
{%- set title = _("Overview") %}
{% block javascript %}
{{ super() }}
{{ webpack['invenio-theme-iform-unlock.js'] }}
{{ webpack['invenio-theme-tugraz-unlock.js'] }}
{% endblock javascript %}
{%- block page_body %}
@@ -25,7 +25,7 @@
<h2>Overview</h2>
<div class="ui five column stackable grid overview">
{% if is_iform_authenticated %}
{% if is_tugraz_authenticated %}
{# 3 columns: Research-Uploads, Communities, and Requests #}
<div class="column">
<div class="ui segment" style="height: 480px">
@@ -60,11 +60,11 @@
</div>
</div>
</div>
{% else %} {# not is_iform_authenticated #}
{% 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="iform-unlock-modal">
<div class="ui small modal" id="tugraz-unlock-modal">
<div class="header">{{ _("On unlocking research uploads") }}</div>
<div class="content">
<p>
@@ -75,7 +75,7 @@
</p>
<div id="anchor-unlock-form"> {# will be replaced with ZammadForm when generating it #}
<button class="ui fluid button" onclick="
$('#iform-unlock-modal')
$('#tugraz-unlock-modal')
.modal('hide')"
>Got it!</button>
<button id="generate-unlock-form" class="ui fluid button">
@@ -89,7 +89,7 @@
<div class="ui disabled segment" style="height: 480px">
<h2>{{ _("Research Results") }}</h2>
<div class="ui left floated image" style="cursor: pointer" onclick="
$('#iform-unlock-modal')
$('#tugraz-unlock-modal')
.modal('show')"
>
<img width="400px" alt="Research Results" src="{{ url_for("static", filename="images/diamond.svg") }}">

View File

@@ -1,7 +1,7 @@
{#
Copyright (C) 2020-2023 Graz University of Technology.
invenio-theme-iform 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
details.
#}