Compare commits

..

24 Commits

Author SHA1 Message Date
Christoph Ladurner
8cd1ba5d99 release v4.12.0 2023-11-10 09:19:26 +01:00
Christoph Ladurner
3f13368aa1 setup: move python supported window 2023-11-10 09:19:01 +01:00
Christoph Ladurner
e3e07541fe overview: rephrase text 2023-11-10 09:19:01 +01:00
Christoph Ladurner
39d87339c2 menu: temporarily remove overwrite 2023-11-10 09:19:01 +01:00
Christoph Ladurner
cf7ecf1f81 ui: change paths to data-models 2023-11-10 09:19:01 +01:00
Christoph Ladurner
4c5e888f18 global: change to invenio-records-global-search
* package name change
2023-11-10 09:19:01 +01:00
Christoph Ladurner
9187ffd661 refactor: apply semantic-ui, indentation, copyright 2023-11-10 09:19:01 +01:00
Christoph Ladurner
fffd744731 layout: improve
* add frontpage overview

* change recent uploads to global search

* add overview to dashboard

* change default link of the dashboard menu entry from uploads to
  overview

* change text of 'my uploads' buggy
2023-11-10 09:19:01 +01:00
Christoph Ladurner
105db720ea theme: add separate search entry for rdm 2023-11-10 09:19:01 +01:00
Christoph Ladurner
0cee624dbb global: make it compatible with v12 2023-11-10 09:19:01 +01:00
Christoph Ladurner
c8035571be release v4.11.3 2023-06-07 23:36:30 +02:00
Christoph Ladurner
6aba6bcaa0 fix: frontpage upload buttons small monitor 2023-06-07 23:36:08 +02:00
Christoph Ladurner
1022fa45f4 release v4.11.2 2023-06-01 12:45:40 +02:00
Christoph Ladurner
eb95994afa frontpage: layout changes 2023-06-01 12:00:30 +02:00
Christoph Ladurner
bcacce0644 translation: add oer frontpage translation 2023-06-01 12:00:30 +02:00
Christoph Ladurner
c2494401e9 WIP: oer upload button on frontpage 2023-06-01 12:00:30 +02:00
Christoph Ladurner
3afaca51c6 release v4.11.1 2023-04-20 23:28:57 +02:00
Christoph Ladurner
3a9fe9f385 fix: increase invenio-config-tugraz
* to solve the v11 compatibility problem. in particular the
  invenio-rdm-records to low dependency
2023-04-20 23:28:36 +02:00
Christoph Ladurner
02e9b3f90c release v4.11.0 2023-04-20 22:09:40 +02:00
Christoph Ladurner
9320fe3d5d global: make dependencies compatible with v11 2023-04-20 22:08:14 +02:00
Christoph Ladurner
d38e50a489 release v4.10.1 2022-11-10 09:21:59 +01:00
Mojib Wali
f1fc4d8b9e dep: bump in invenio-assets 2022-10-13 11:57:18 +02:00
Mojib Wali
b286b9adaa release: v4.10.0 2022-10-13 11:38:53 +02:00
Mojib Wali
19fada5940 global: migrate to v10 2022-10-13 11:32:22 +02:00
31 changed files with 814 additions and 486 deletions

View File

@@ -28,13 +28,13 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.8, 3.9]
python-version: [3.9, "3.10"]
requirements-level: [pypi]
db-service: [postgresql13]
search-service: [elasticsearch7]
search-service: [opensearch2]
include:
- search-service: elasticsearch7
SEARCH_EXTRAS: "elasticsearch7"
- search-service: opensearch2
SEARCH_EXTRAS: "opensearch2"
env:
DB: ${{ matrix.db-service }}

View File

@@ -8,6 +8,50 @@
Changes
=======
Version v4.12.0 (release 2023-11-10)
- setup: move python supported window
- overview: rephrase text
- menu: temporarily remove overwrite
- ui: change paths to data-models
- global: change to invenio-records-global-search
- refactor: apply semantic-ui, indentation, copyright
- layout: improve
- theme: add separate search entry for rdm
- global: make it compatible with v12
Version v4.11.3 (release 2023-06-07)
- fix: frontpage upload buttons small monitor
Version v4.11.2 (release 2023-06-01)
- frontpage: layout changes
- translation: add oer frontpage translation
- WIP: oer upload button on frontpage
Version v4.11.1 (release 2023-04-20)
- fix: increase invenio-config-tugraz
Version v4.11.0 (release 2023-04-20)
- global: make dependencies compatible with v11
Version v4.10.1 (release 2022-11-10)
- dep: bump in invenio-assets
Version v4.10.0 (release 2022-10-13)
- global: migrate to v10 (#282)
Version v4.0.2 (release 2022-09-09)
- release v4.0.1

View File

@@ -62,7 +62,7 @@ release = __version__
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = "en"
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:

View File

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

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2021 Graz University of Technology.
* Copyright (C) 2020-2023 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.
@@ -7,18 +7,8 @@
#footer {
color: @footerGrey;
/*background-image: url("/static/images/footer.jpg");*/
-webkit-background-size: 100% 100%;
-moz-background-size: 100% 100%;
-o-background-size: 100% 100%;
background-size: 100% 100%;
min-height: 100%;
/* the following 2 lines are a hack for IE6 */
height: auto !important;
height: 100%;
width: 100%;
background-attachment: fixed;
&.footer-bottom {
background-color: @footerBottomBackground;
@@ -39,7 +29,7 @@
color: @tugrazRed;
}
}
// remove blue focus outline if clicked with mouse
&:focus:not(:focus-visible) {
outline-style: none;

View File

@@ -150,7 +150,6 @@ pre {
&.metadata-only {
background-color: @accessRightMetadata;
}
}
@font-face {
@@ -166,3 +165,15 @@ pre {
font-weight: 400;
font-style: italic;
}
/**
* mainly for the overview. maybe this should be written more specific to apply
* only for the overview use case.
*/
.ui.segment:first-child {
margin-top: 1em;
}
.ui.equal.height .ui.segment {
height: 100%;
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 Graz University of Technology
* Copyright (C) 2020-2023 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.
@@ -26,14 +26,3 @@
.identifiers {
display: inline;
}
// // align badges to the right
// .ui.items > .item .extra.labels-actions {
// float: right;
// width: auto;
// // remove action buttons from search results
// .ui.small.compact.right.floated.button {
// display: none;
// }
// }

View File

@@ -37,3 +37,14 @@
.nowrap-link {
white-space: nowrap;
}
.ui.label.schema {
border: 1px solid #bfb5b5;
}
.random-records-frontpage {}
.random-records-frontpage .grid .column {
width: 380px !important;
padding: 14px !important;
}

View File

@@ -23,6 +23,8 @@
@accessRightClosed : @accessRightEmbargoed;
@accessRightMetadata : #2185D0;
@schema: #17b3f3;
// primary colors TU Graz
@tugrazBlack: #231f20;
@tugrazRed : #e4154b;

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020-2021 Graz University of Technology.
# Copyright (C) 2020-2023 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,7 +8,7 @@
"""invenio module for TUGRAZ theme."""
from flask_babelex import gettext as _
from invenio_i18n import gettext as _
INVENIO_THEME_TUGRAZ_DEFAULT_VALUE = _("TU Graz Repository")
"""Default value for the application."""

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020-2021 Graz University of Technology.
# Copyright (C) 2020-2023 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,7 +8,6 @@
"""Frontpage records."""
from elasticsearch_dsl.query import Q
from invenio_search.api import RecordsSearch
@@ -18,8 +17,4 @@ class FrontpageRecordsSearch(RecordsSearch):
class Meta:
"""Default index and filter for frontpage search."""
index = "rdmrecords-records"
default_filter = Q(
"query_string",
query=("access.record:public " "AND versions.is_latest:true"),
)
index = "global-search"

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -1,5 +1,5 @@
{#
Copyright (C) 2020-2021 Graz University of Technology.
Copyright (C) 2020-2023 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
@@ -7,79 +7,88 @@
#}
<!DOCTYPE html>
<html{% if html_css_classes %} class="{{ html_css_classes|join(' ') }}"{% endif %} lang="{{ current_i18n.locale.language|safe }}" dir="{{ current_i18n.locale.text_direction }}">
<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">
{%- if description %}<meta name="description" content="{{ description }}" />{% 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 %}
{%- 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') }}"/>
{%- 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 %}
{%- block head_apple_icons %}
{%- for size in [144, 114, 72, 57] %}
{%- set icon_name = 'apple-touch-icon-%d-precomposed.png' | format(size) %}
<link rel="apple-touch-icon-precomposed" sizes="{{ size }}x{{ size }}" href="{{ url_for('static', filename=icon_name) }}"/>
{%- endfor %}
{%- endblock head_apple_icons %}
{%- endblock head_links %}
{%- block header %}{% endblock header %}
{%- block css %}
{{ webpack['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>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
{%- endblock css %}
{%- 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 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 %}
{%- 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") }}"/>
{%- 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 header %}{% endblock header %}
{%- block css %}
{{ webpack["theme.css"] }}
{{ webpack["invenio-theme-tugraz-theme.css"] }}
{%- endblock css %}
{%- 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">
{%- block body %}
{%- block browserupgrade %}
<!--[if lt IE 8]>
<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 %}
{%- 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_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 %}
<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 %}
{%- 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_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>
</html>

View File

@@ -1,10 +1,17 @@
{#
Copyright (C) 2020-2023 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.
#}
<ul>
<li><strong>{{_('Safe')}}</strong> &mdash; {{_('your research is stored safely for the future in TU Graz library for as long as TU Graz library exists.')}}</li>
<li><strong>{{_('Trusted')}}</strong> &mdash; {{_('built and operated by CERN and OpenAIRE to ensure that everyone can join in Open Science.')}}</li>
<li><strong>{{_('Citeable')}}</strong> &mdash; {{_('every upload is assigned a Digital Object Identifier (DOI), to make them citable and trackable.')}}</li>
<li><strong>{{_('No waiting time')}}</strong> &mdash; {{_('Uploads are made available online as soon as you hit publish, and your DOI is registered within seconds.')}}</li>
<li><strong>{{_('Open or closed')}}</strong> &mdash; {{_('Share e.g. anonymized clinical trial data with only medical professionals via our restricted access mode.')}}</li>
<li><strong>{{_('Versioning')}}</strong> &mdash; {{_("Easily update your dataset with our versioning feature.")}}</li>
<li><strong>{{_('Usage statisics')}}</strong> &mdash; {{_("All uploads display standards compliant usage statistics")}}</li>
</ul>
<li><strong>{{_("Safe") }}</strong> &mdash; {{_("your research is stored safely for the future in TU Graz library for as long as TU Graz library exists.") }}</li>
<li><strong>{{_("Trusted") }}</strong> &mdash; {{_("built and operated by CERN and OpenAIRE to ensure that everyone can join in Open Science.") }}</li>
<li><strong>{{_("Citeable") }}</strong> &mdash; {{_("every upload is assigned a Digital Object Identifier (DOI), to make them citable and trackable.") }}</li>
<li><strong>{{_("No waiting time") }}</strong> &mdash; {{_("Uploads are made available online as soon as you hit publish, and your DOI is registered within seconds.") }}</li>
<li><strong>{{_("Open or closed") }}</strong> &mdash; {{_("Share e.g. anonymized clinical trial data with only medical professionals via our restricted access mode.") }}</li>
<li><strong>{{_("Versioning") }}</strong> &mdash; {{_("Easily update your dataset with our versioning feature.") }}</li>
<li><strong>{{_("Usage statisics") }}</strong> &mdash; {{ _("All uploads display standards compliant usage statistics") }}</li>
</ul>

View File

@@ -1,7 +1,15 @@
{#
Copyright (C) 2020-2023 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.INVENIO_THEME_TUGRAZ_BASE_TEMPLATE %}
{%- block page_body %}
<div class="ui container">
<h1 style="text-align: center;">comingsoon</h1>
</div>
<div class="ui container">
<h1 style="text-align: center;">comingsoon</h1>
</div>
{%- endblock %}

View File

@@ -1,168 +1,169 @@
{#
Copyright (C) 2020-2021 Graz University of Technology.
Copyright (C) 2020-2023 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.
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-tugraz-theme.css'] }}
{{ webpack['invenio-theme-tugraz-theme.css'] }}
{%- endblock %}
{%- block javascript %}
{{ webpack['invenio-theme-tugraz-js.js'] }}
{{ webpack['invenio-theme-tugraz-js.js'] }}
{%- endblock javascript %}
<div class="spacer"></div>
<footer id="footer" class="footer-bottom">
<div class="ui container">
<div class="ui grid">
<div class="doubling four column row">
<div class="column">
<h2>{{ _("Repository") }}</h2>
<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>
</a>
</div>
<h2>{{_ ("Repository")}}</h2>
<p class="bodytext">
<a href="https://tu-graz-library.github.io/docs-repository" title="Repository documentation"
target="_blank">
{{_ ("Documentation")}} <i class="external alternate icon"></i>
</a>
<br>
<a href="{{ url_for('invenio_config_tugraz.guide') }}"
title="Quick guide" target="_blank">
{{_ ("Reference Guide")}} <i class="download icon"></i>
</a>
<br>
<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_config_tugraz.gdpr') }}"
title="General Data Protection Rights" target="_blank">
{{_ ("Data Protection")}} <i class="download icon"></i>
</a>
<br>
<a href="{{ url_for('invenio_config_tugraz.terms') }}"
title="Terms and Conditions" target="_blank">
{{_ ("Terms and Conditions")}} <i class="download icon"></i>
</a>
<br>
<!-- <a href="{{ url_for('invenio_theme_tugraz.comingsoon') }}">
{{_ ("Impressum")}}<i class="angle right icon"></i>
</a>
<br>
<a href="{{ url_for('invenio_theme_tugraz.comingsoon') }}">
{{_ ("Feedback")}}<i class="angle right icon"></i>
</a> -->
</p>
<div class="item">
<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>
</div>
<div class="item">
<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_tugraz.terms') }}"
title="Terms and Conditions" target="_blank">
{{ _("Terms and Conditions") }} <i class="download icon"></i>
</a>
</div>
</div>
</div>
<div class="column">
<h2>{{ _("Features") }}</h2>
<h2>{{_ ("Features")}}</h2>
<h4>{{_ ("Scalability")}}</h4>
<h4>{{_ ("Institutional integration")}}</h4>
<h4>{{_ ("Next Generation Repository")}}
</h4>
<h4>{{_ ("Repository Profiles")}}</h4>
<h4>{{_ ("Resilient")}}</h4>
<div class="ui list">
<div class="item">{{ _("Scalability") }}</div>
<div class="item">{{ _("Institutional integration") }}</div>
<div class="item">{{ _("Next Generation Repository") }}</div>
<div class="item">{{ _("Repository Profiles") }}</div>
<div class="item">{{ _("Resilient") }}</div>
</div>
</div>
<div class="column">
<h2>{{ _("Connected Services") }}</h2>
<div class="ui list">
<div class="item">
<a href="https://pure.tugraz.at" title="PURE" target="_blank">
{{ _("PURE") }} <i class="external alternate icon"></i>
</a>
</div>
<h2>{{_ ("Connected Services")}}</h2>
<p class="bodytext">
<a href="https://pure.tugraz.at" title="PURE" target="_blank">
{{_ ("PURE")}} <i class="external alternate icon"></i></a><br>
<a href="http://campusonline.tugraz.at" title="CAMPUS online" target="_blank">
{{_ ("CampusOnline")}} <i class="external alternate icon"></i></a><br>
<a href="https://rdm.tugraz.at" title="Research Data Management" target="_blank">
{{_ ("Research Data Management")}} <i class="external alternate icon"></i></a><br>
</p>
<div class="item">
<a href="http://campusonline.tugraz.at" title="CAMPUS online" target="_blank">
{{ _("CampusOnline") }} <i class="external alternate icon"></i>
</a>
</div>
<div class="item">
<a href="https://rdm.tugraz.at" title="Research Data Management" target="_blank">
{{ _("Research Data Management") }} <i class="external alternate icon"></i>
</a>
</div>
</div>
</div>
<div class="column">
<h2>{{_ ("Accessibility")}}</h2>
<p class="bodytext">{{_ ("Tipp:")}}<br> {{_ ("Use Ctrl + and Crtl -")}}<br> {{_ ("to change the font size.")}}
</p>
<h2>{{ _("Accessibility") }}</h2>
<div class="ui list">
<div class="item">
{{ _("Tipp:") }}
</div>
<div class="item">
{{ _("Use Ctrl + and Crtl -") }}
</div>
<div class="item">
{{ _("to change the font size.") }}
</div>
</div>
</div>
</div>
<div class="ui divider"></div>
<div class="doubling four column row">
<div class="column">
<div class="logos">
{% trans invenio_rdm="http://inveniosoftware.org/products/rdm" %}<strong>Powered by</strong>
<a href="{{invenio_rdm}}" target="_blank" title="invenioRDM">{% endtrans %}
<br>
<img src="{{ url_for('static', filename='images/inveniordm-tail.svg')}}" alt="invenioRDM" height="90px">
</a>
</div>
<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;">
</a>
</div>
</div>
<div class="column">
<div class="logos">
{% trans fair_data="https://forschungsdaten.at/en/fair-data-austria/" %}<strong>Enabled by</strong>
<a href="{{fair_data}}" target="_blank" title="Fair Data Austria">{% endtrans %}
<br>
<img src="{{ url_for('static', filename='images/Fair_Data_Austria_orangerot.png')}}" alt="Fair Data Austria"
style="
width: 230px;
margin-top: 15px;
height: auto;">
<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;">
</a>
</div>
</div>
<div class="column">
<div class="logos">
{% trans oea="https://www.openeducation.at" %}
<a href="{{oea}}" target="_blank" title="Open Education Austria">{% endtrans %}
<br>
<img src="{{ url_for('static', filename='images/oea.svg')}}" alt="Open Education Austria"
style="
margin-top: -5px;
margin-left: 10px;
width: 200px;
height: auto;">
<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;">
</a>
</div>
</div>
</div>
<div class="ui divider"></div>
<div class="sixteen wide column">
<div class="logos">
{% trans re3data="https://www.re3data.org/repository/r3d100013565" %}
<a href="{{re3data}}" target="_blank" title="Registry of Research Data Repositories">{% endtrans %}
<img src="{{ url_for('static', filename='images/re3data.svg')}}" alt="Registry of Research Data Repositories"
style="
width: 300px;
height: auto;">
</a>
<div class="doubling four column row">
<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>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</footer>

View File

@@ -0,0 +1,79 @@
{#
Copyright (C) 2020-2023 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="sixteen wide column random-records-frontpage">
<div class="center aligned ui equal height grid">
<div class="left aligned column">
<div class="ui segment image">
<h2>{{ _("Research Result") }}</h2>
<div>
this is a short description for what research results could be found in this repository. there are three links.
one link will lead you to a browse functionality which shows what is inside of the repository. one link will
lead you to the search page which gives the possibility to search explicitly in the research results. the last
link leads to the upload page to upload new research results to the repository
</div>
<ul>
<li>
<a href="research-results/browse">Browse</a>
</li>
<li>
<a href="records/search">Search</a>
</li>
<li>
<a href="me/uploads">Upload</a>
</li>
</ul>
</div>
</div>
<div class="left aligned column">
<div class="ui segment image">
<h2>{{ _("Publications") }}</h2>
<div>
this short description describes what publication means within this repository. there are two links. one lead
to a browse function and one to the search. publications are not meant to be open for everyone, but for
librarians only.
</div>
<ul>
<li>
<a href="publications/browse">Browse</a>
</li>
<li>
<a href="publications/search">Search</a>
</li>
</ul>
</div>
</div>
<div class="left aligned column">
<div class="ui segment image">
<h2>{{ _("OER") }}</h2>
<div>
this short description describes what OER's are. there are three links. as the others already introduced there
is a link to the browse functionality, one to the search and one to the upload. about the upload you get more
information what is necessary to be allowed to upload if you click on the upload button.
</div>
<ul>
<li>
<a href="oer/browse">Browse</a>
</li>
<li>
<a href="oer/search">Search</a>
</li>
<li>
<a href="oer/uploads">Upload</a>
</li>
</ul>
</div>
</div>
</div>
</div>

View File

@@ -1,5 +1,5 @@
{#
Copyright (C) 2020-2021 Graz University of Technology.
Copyright (C) 2020-2023 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
@@ -7,65 +7,58 @@
#}
{% 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>
</div>
<div class="ui sticky test-instance">
<h4>{{ _("Test Instance") }}</h4>
<p>{{ _("This is the test instance of the TU Graz Repository.") }}</p>
</div>
{% endif %}
<div>
<header>
{%- block navbar %}
<nav>
{%- block navbar_header %}
{%- include "invenio_theme_tugraz/navbar.html" %}
{%- endblock navbar_header %}
<nav>
{%- block navbar_header %}
{%- 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_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"
version="1.1" xml:space="preserve" height="36.997" width="35.969"
enable-background="new 0 0 595.28 841.89" y="0px" x="0px" xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/" viewBox="0 0 35.969 36.997451">
<polyline style="stroke:#E4154B;stroke-linecap:square;stroke-width:4;fill:none"
points="282.72 437.28 282.72 414.77 297.71 406.69 312.69 414.77 312.69 437.28"
transform="translate(-279.72 -403.28)">
</polyline>
</svg>
{{_ ("Home")}}
</span>
</a>
<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_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"
version="1.1" xml:space="preserve" height="36.997" width="35.969"
enable-background="new 0 0 595.28 841.89" y="0px" x="0px" xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/" viewBox="0 0 35.969 36.997451">
<polyline style="stroke:#E4154B;stroke-linecap:square;stroke-width:4;fill:none"
points="282.72 437.28 282.72 414.77 297.71 406.69 312.69 414.77 312.69 437.28"
transform="translate(-279.72 -403.28)">
</polyline>
</svg>
{{ _("Home") }}
</span>
</a>
</div>
<div class="two wide column main-menu-entry">
<a role="menuitem" href="/communities" class="no-decoration">{{ _("Communities") }}</a>
</div>
<div class="two wide column main-menu-entry">
<a role="menuitem" href="/me/overview" class="no-decoration">{{ _("My dashboard") }}</a>
</div>
</div>
<div id="margin-divider" class="ui divider main-menu-underline-line">
{%- for item in current_menu.submenu('main').children|sort(attribute='order') if item.visible recursive %}
<div class="two wide column main-menu-entry">
<a role="menuitem" href="{{ item.url }}" class="no-decoration">{{ item.text|safe }}</a>
</div>
{% endfor %}
{% for item in current_menu.submenu('actions').children|sort(attribute='order') if item.visible recursive %}
<div class="two wide column main-menu-entry">
<a role="menuitem" href="{{ item.url }}" class="no-decoration">{{ item.text|safe }}</a>
</div>
{% endfor %}
</div>
</div>
<div id="margin-divider" class="ui divider main-menu-underline-line">
</div>
<div class="spacer"></div>
</div>
<div class="spacer"></div>
</div>
</nav>
</nav>
{%- endblock navbar %}
{%- block flashmessages %}
@@ -73,10 +66,4 @@
{{ flashed_messages() }}
{%- endblock %}
</header>
{#
{%- block breadcrumbs %}
{%- include "invenio_theme/breadcrumbs.html" %}
{%- endblock breadcrumbs %}
#}
</div>

View File

@@ -1,5 +1,5 @@
{#
Copyright (C) 2020-2021 Graz University of Technology.
Copyright (C) 2020-2023 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
@@ -12,8 +12,6 @@
{{ webpack['invenio-theme-tugraz-js.js'] }}
{%- endblock javascript %}
{%- from "invenio_theme_tugraz/macros/authors.html" import creators -%}
{%- block page_body %}
<div class="ui container">
@@ -21,119 +19,39 @@
<div class="ui stackable grid">
<!---Recent uploads-->
<div class="ten wide column random-records-frontpage">
<h2>{{_('Recent uploads')}}</h2>
{% if not records %}
<div class="ui centered grid">
<p style="font-size: medium;">{{_('There are no public records to show.')}}</p>
</div>
{% endif %}
{%- for r in records %}
{%- set creation_date = r.created|from_isodatetime -%}
{%- set record_url = url_for('invenio_app_rdm_records.record_detail', pid_value=r.id) %}
<article>
<!--TODO:
something with doi
-->
<div class="badges">
<!--Publication date/Version badge-->
<span class="ui label blue" data-tooltip="{{_('Publication date')}}" data-inverted="">
{{ r.metadata.publication_date }} {{ '(' ~ r.metadata.version ~ ')' if r.metadata.version }}
</span>
<!--Resource type badge-->
<span class="ui label grey" data-tooltip="{{_('Resource type')}}" data-inverted>
{{ r.ui.resource_type.title_l10n }}
</span>
<span class="ui label access-status {{ r.ui.access_status.id }}" data-tooltip="{{ r.ui.access_status.description_l10n }}" data-inverted="">
{% if r.ui.access_status.icon %}<i class="icon {{ r.ui.access_status.icon }}"></i>{% endif %}
{{ r.ui.access_status.title_l10n }}
</span>
<span class="label record-version">
<!--TODO: add subtype--->
</span>
</div>
<h4>
<a href="{{ record_url }}" class="no-decoration">
{{r.metadata.title}}
</a>
</h4>
<p>
{{ creators(r.metadata.creators) }}
</p>
<p class="hidden-xs">
<a href="{{record_url}}" class="no-decoration">
{{ r.metadata.description | striptags | truncate(300) }}
</a>
</p>
<div class="ui grid">
<div class="two column row">
<div class="left floated column">
{%- for s in r.metadata.subjects %}
<div class="ui tiny label">{{s.subject}}</div>
{%- endfor %}
<div>
<small>
{% trans user=userprofile, date=creation_date | dateformat('long')%}
Uploaded on {{date}}
{% endtrans %}
</small>
</div>
</div>
</div>
</div>
</article>
{%- endfor %}
{% if records %}
<div class="ui centered grid">
<a class="ui button more" href="{{url_for('invenio_search_ui.search')}}">{{_('More')}}</a>
</div>
{%- endif %}
</div>
{% include "invenio_theme_tugraz/frontpage_overview.html" %}
{% include "invenio_theme_tugraz/recent_uploads.html" %}
<!---segments-->
<div class="six wide column">
<!--contact us-->
<div class="ui segment" style="padding-bottom: 10px;">
<h4>{{_ ("Need help?")}}</h4>
<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")}}
{{ _("Contact us") }}
</a>
</div>
{%- endif %}
<p>
{{config.THEME_SITENAME}} {{_ ("prioritizes all Recent uploads.")}}
{{ config.THEME_SITENAME }} {{ _("prioritizes all Recent uploads.") }}
</p>
<p>
{{_ ("We can help with:")}}
{{ _("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>
<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>
<h4>{{ _("Why use") }} {{ config.THEME_SITENAME }}</h4>
{% include "invenio_theme_tugraz/benefits.html" %}
</div>

View File

@@ -1,5 +1,5 @@
{#
Copyright (C) 2020-2022 Graz University of Technology.
Copyright (C) 2020-2023 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
@@ -9,9 +9,14 @@
{% set options = [
{
"key": "records",
"text": _("All") + " " + config.THEME_SITENAME,
"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"),
@@ -39,88 +44,56 @@
<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>
</div>
</div>
<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>
<!----END MENU------------------------------------------------------------->
<div class="ui grid" id="main-logo">
<!--Left-->
<!-- Left -->
<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_tugraz.index')}}" class="no-decoration">
TU GRAZ
<a title="Home" href="{{url_for("invenio_theme_tugraz.index")}}" class="no-decoration">
{{ _("TU GRAZ") }}
<br>
{{_ ("REPOSITORY")}}
{{ _("REPOSITORY") }}
<br>
{{_ ("LIBRARY & ARCHIVES")}}
{{ _("LIBRARY & ARCHIVES") }}
</a>
</div>
</div>
</div>
<!--Right-->
<!-- Right -->
<div class="right floated right aligned six wide column">
<div class="affiliation-logo" id="int-header-logo">
<a href="https://www.tugraz.at" title="TU Graz Home" target="_blank" class="no-decoration">
<div class="affiliation-logo-claim">
<div class="affiliation-logo-claim-single">{{_ ("SCIENCE")}}</div>
<div class="affiliation-logo-claim-single">{{_ ("PASSION")}}</div>
<div class="affiliation-logo-claim-single">{{_ ("TECHNOLOGY")}}</div>
<div class="affiliation-logo-claim-single">{{ _("SCIENCE") }}</div>
<div class="affiliation-logo-claim-single">{{ _("PASSION") }}</div>
<div class="affiliation-logo-claim-single">{{ _("TECHNOLOGY") }}</div>
</div>
<svg id="int-header-logo-img" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.w3.org/2000/svg" xml:space="preserve" height="51.862" width="141.1" version="1.1"
xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"
viewBox="0 0 141.10001 51.862499">
<g transform="matrix(1.25 0 0 -1.25 0 51.862)">
<g transform="scale(.1)">
<path d="m0 103.73h207.45v207.46l-207.45 0.01v-207.47z"></path>
<path d="m228.19 103.73h207.46v207.46h-207.46v-207.46z"></path>
<path d="m456.41 103.73h207.44v207.46h-207.44v-207.46z"></path>
<path d="m103.72 0h207.47v207.46h-207.47v-207.46z"></path>
<path d="m352.68 207.46h207.44v207.46h-207.44v-207.46z"></path>
<path style="fill:#231f20"
d="m751.04 277.91h-66.426v33.195h171.19v-33.195h-66.407v-173.73h-38.359v173.73"></path>
<path style="fill:#231f20"
d="m1048.3 180.22c0-12.461-2.25-23.711-6.72-33.75-4.5-10.039-10.61-18.555-18.36-25.567-7.76-7.031-16.9-12.421-27.503-16.21-10.605-3.809-22.109-5.7036-34.551-5.7036-12.422 0-23.945 1.8946-34.551 5.7036-10.605 3.789-19.824 9.179-27.656 16.21-7.851 7.012-13.984 15.528-18.34 25.567-4.394 10.039-6.582 21.289-6.582 33.75v130.89h38.379v-129.59c0-5.039 0.801-10.351 2.442-15.898 1.64-5.547 4.336-10.664 8.125-15.332s8.789-8.516 15.039-11.523c6.211-3.008 13.926-4.512 23.144-4.512 9.199 0 16.914 1.504 23.145 4.512 6.23 3.007 11.25 6.855 15.039 11.523 3.77 4.668 6.48 9.785 8.12 15.332 1.63 5.547 2.45 10.859 2.45 15.898v129.59h38.38v-130.89">
</path>
<path style="fill:#231f20"
d="m832.56 75.664c-7.597 3.2812-17.46 4.8632-25.332 4.8632-22.929 0-35.605-14.434-35.605-33.184 0-18.613 12.383-32.637 33.34-32.637 5.351 0 9.59 0.5274 12.969 1.3086v23.867h-20.84v14.414h39.687v-49.297c-10.41-2.6172-21.25-4.707-31.816-4.707-31.797 0-53.906 14.805-53.906 45.742 0 31.348 20.566 48.906 53.906 48.906 11.406 0 20.41-1.4453 28.867-3.8086l-1.27-15.469">
</path>
<path style="fill:#231f20"
d="m856.2 69.375h16.758v-15.332h0.293c0.84 6.289 8.574 16.914 19.824 16.914 1.836 0 3.828 0 5.782-0.5273v-17.715c-1.68 0.918-5.059 1.4454-8.457 1.4454-15.333 0-15.333-17.832-15.333-27.52v-24.785h-18.867v67.52">
</path>
<path style="fill:#231f20"
d="m913.75 65.84c7.324 3.1446 17.187 5.1172 25.215 5.1172 22.09 0 31.23-8.5351 31.23-28.457v-8.6523c0-6.8165 0.156-11.934 0.293-16.914 0.137-5.1172 0.41-9.8242 0.84-15.078h-16.602c-0.703 3.5352-0.703 8.0078-0.839 10.098h-0.293c-4.36-7.4618-13.81-11.661-22.38-11.661-12.793 0-25.332 7.207-25.332 20.059 0 10.078 5.195 15.976 12.383 19.258 7.187 3.2812 16.464 3.9453 24.355 3.9453h10.41c0 10.879-5.195 14.551-16.328 14.551-8.008 0-16.035-2.8907-22.363-7.3438l-0.586 15.078zm22.11-52.715c5.782 0 10.274 2.3633 13.223 6.0352 3.105 3.8086 3.945 8.6523 3.945 13.906h-8.164c-8.437 0-20.957-1.3086-20.957-11.68 0-5.7617 5.195-8.2617 11.953-8.2617">
</path>
<path style="fill:#231f20"
d="m985.69 69.375h57.422v-14.414l-36.04-39.473h37.31v-13.633h-60.235v14.297l36.715 39.59h-35.172v13.633">
</path>
<path d="m1059.6 0h69.102v69.121h-69.102v-69.121z"></path>
</g>
</g>
</svg>
{%- include "invenio_theme_tugraz/tu_graz_logo.svg" %}
</a>
</div>
</div>

View File

@@ -0,0 +1,82 @@
{#
Copyright (C) 2020-2023 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.INVENIO_THEME_TUGRAZ_BASE_TEMPLATE %}
{%- set active_dashboard_menu_item = "overview" %}
{%- set title = _("Overview") %}
{%- block page_body %}
{%- block user_dashboard_header %}
{% include "invenio_app_rdm/users/header.html" %}
{%- endblock user_dashboard_header %}
<div class="ui container rel-mt-2">
<h2>Overview</h2>
<div class="ui five column stackable grid overview">
<div class="column">
<div class="ui segment" style="height: 480px">
<h2>{{ _("Research Result") }}</h2>
<a class="ui left floated image" href="/me/uploads">
<img alt="Research Result" src="{{ url_for("static", filename="images/cyan_400x400.png") }}">
</a>
<div class="ui right floated text">
Research results gives the base on which publications are built.
</div>
</div>
</div>
<div class="column">
<div class="ui segment" style="height: 480px">
<h2>{{ _("Communities") }}</h2>
<a class="ui left floated image" href="/me/communities">
<img alt="Communities" src="{{ url_for("static", filename="images/dark_blue_400x400.png") }}">
</a>
<div>
Communities form the area local interests could be planted on.
</div>
</div>
</div>
<div class="column">
<div class="ui segment" style="height: 480px">
<h2>{{ _("Requests") }}</h2>
<a class="ui left floated image" href="/me/requests">
<img alt="Requests" src="{{ url_for("static", filename="images/light_green_400x400.png") }}">
</a>
<div>
Requests build the bridge to communicate with the administration.
</div>
</div>
</div>
<div class="column">
<div class="ui segment" style="height: 480px">
<h2>{{ _("Publications") }}</h2>
<a class="ui left floated image" href="/publications/uploads">
<img alt="Publications" src="{{ url_for("static", filename="images/red_400x400.png") }}">
</a>
<div>
Publications are the synthesized result of research.
</div>
</div>
</div>
<div class="column">
<div class="ui segment" style="height: 480px">
<h2>{{ _("OER") }}</h2>
<a class="ui left floated image" href="/oer/uploads">
<img alt="Open Educational Resources" src="{{ url_for("static", filename="images/rosa_400x400.png") }}">
</a>
<div>
Open Educational Resources are the basis for training other possible scientists.
</div>
</div>
</div>
</div>
</div>
{%- endblock %}

View File

@@ -0,0 +1,92 @@
{#
Copyright (C) 2020-2023 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.
#}
<!---Recent uploads-->
<div class="ten wide column random-records-frontpage">
<h2>{{ _("Recent uploads") }}</h2>
{% if not records %}
<div class="ui centered grid">
<p style="font-size: medium;">{{ _("There are no public records to show.") }}</p>
</div>
{% endif %}
{%- for r in records %}
{%- set creation_date = r.created | from_isodatetime -%}
{%- set record_url = r.original.view %}
<article>
<div class="badges">
<!--Publication date/Version badge-->
<span class="ui label blue" data-tooltip="{{ _("Publication date") }}" data-inverted="">
{{ r.created_date_l10n_long }}
</span>
<!--Resource type badge-->
<span class="ui label grey" data-tooltip="{{ _("Resource type") }}" data-inverted="">
{%- for type in r.metadata.types %}
{{ type }}
{%- endfor %}
</span>
<span class="ui label access-status {{ r.access_status.id }}"
data-tooltip="{{ r.access_status.description_l10n }}" data-inverted="">
<i class="icon {{ r.access_status.icon }}"></i>
{{ r.access_status.title_l10n }}
</span>
<span class="ui label schema" data-tooltip="Schema Type" data-inverted="">
{{ r.original.schema_l10n }}
</span>
</div>
<h4>
<a href="{{ record_url }}" class="no-decoration">
{{ r.metadata.titles[0] }}
</a>
</h4>
<p>
{%- for creator in r.metadata.creators %}
<span>{{ creator }}</span>
{%- endfor %}
</p>
<p class="hidden-xs">
<a href="{{record_url}}" class="no-decoration">
{{ r.metadata.descriptions | join(" ") | striptags | truncate(300) }}
</a>
</p>
<div class="ui grid">
<div class="two column row">
<div class="left floated column">
{%- for subject in r.metadata.subjects %}
<div class="ui tiny label">{{ subject }}</div>
{%- endfor %}
<div>
<small>
{#
{% trans user=userprofile, date=creation_date | dateformat("long")%}
Uploaded on {{date}}
{% endtrans %}
#}
</small>
</div>
</div>
</div>
</div>
</article>
{%- endfor %}
{% if records %}
<div class="ui centered grid">
<a class="ui button more" href="{{ url_for("invenio_search_ui.search") }}">{{ _("More") }}</a>
</div>
{%- endif %}
</div>

View File

@@ -0,0 +1,32 @@
<svg id="int-header-logo-img" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.w3.org/2000/svg" xml:space="preserve" height="51.862" width="141.1" version="1.1"
xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"
viewBox="0 0 141.10001 51.862499">
<g transform="matrix(1.25 0 0 -1.25 0 51.862)">
<g transform="scale(.1)">
<path d="m0 103.73h207.45v207.46l-207.45 0.01v-207.47z"></path>
<path d="m228.19 103.73h207.46v207.46h-207.46v-207.46z"></path>
<path d="m456.41 103.73h207.44v207.46h-207.44v-207.46z"></path>
<path d="m103.72 0h207.47v207.46h-207.47v-207.46z"></path>
<path d="m352.68 207.46h207.44v207.46h-207.44v-207.46z"></path>
<path style="fill:#231f20"
d="m751.04 277.91h-66.426v33.195h171.19v-33.195h-66.407v-173.73h-38.359v173.73"></path>
<path style="fill:#231f20"
d="m1048.3 180.22c0-12.461-2.25-23.711-6.72-33.75-4.5-10.039-10.61-18.555-18.36-25.567-7.76-7.031-16.9-12.421-27.503-16.21-10.605-3.809-22.109-5.7036-34.551-5.7036-12.422 0-23.945 1.8946-34.551 5.7036-10.605 3.789-19.824 9.179-27.656 16.21-7.851 7.012-13.984 15.528-18.34 25.567-4.394 10.039-6.582 21.289-6.582 33.75v130.89h38.379v-129.59c0-5.039 0.801-10.351 2.442-15.898 1.64-5.547 4.336-10.664 8.125-15.332s8.789-8.516 15.039-11.523c6.211-3.008 13.926-4.512 23.144-4.512 9.199 0 16.914 1.504 23.145 4.512 6.23 3.007 11.25 6.855 15.039 11.523 3.77 4.668 6.48 9.785 8.12 15.332 1.63 5.547 2.45 10.859 2.45 15.898v129.59h38.38v-130.89">
</path>
<path style="fill:#231f20"
d="m832.56 75.664c-7.597 3.2812-17.46 4.8632-25.332 4.8632-22.929 0-35.605-14.434-35.605-33.184 0-18.613 12.383-32.637 33.34-32.637 5.351 0 9.59 0.5274 12.969 1.3086v23.867h-20.84v14.414h39.687v-49.297c-10.41-2.6172-21.25-4.707-31.816-4.707-31.797 0-53.906 14.805-53.906 45.742 0 31.348 20.566 48.906 53.906 48.906 11.406 0 20.41-1.4453 28.867-3.8086l-1.27-15.469">
</path>
<path style="fill:#231f20"
d="m856.2 69.375h16.758v-15.332h0.293c0.84 6.289 8.574 16.914 19.824 16.914 1.836 0 3.828 0 5.782-0.5273v-17.715c-1.68 0.918-5.059 1.4454-8.457 1.4454-15.333 0-15.333-17.832-15.333-27.52v-24.785h-18.867v67.52">
</path>
<path style="fill:#231f20"
d="m913.75 65.84c7.324 3.1446 17.187 5.1172 25.215 5.1172 22.09 0 31.23-8.5351 31.23-28.457v-8.6523c0-6.8165 0.156-11.934 0.293-16.914 0.137-5.1172 0.41-9.8242 0.84-15.078h-16.602c-0.703 3.5352-0.703 8.0078-0.839 10.098h-0.293c-4.36-7.4618-13.81-11.661-22.38-11.661-12.793 0-25.332 7.207-25.332 20.059 0 10.078 5.195 15.976 12.383 19.258 7.187 3.2812 16.464 3.9453 24.355 3.9453h10.41c0 10.879-5.195 14.551-16.328 14.551-8.008 0-16.035-2.8907-22.363-7.3438l-0.586 15.078zm22.11-52.715c5.782 0 10.274 2.3633 13.223 6.0352 3.105 3.8086 3.945 8.6523 3.945 13.906h-8.164c-8.437 0-20.957-1.3086-20.957-11.68 0-5.7617 5.195-8.2617 11.953-8.2617">
</path>
<path style="fill:#231f20"
d="m985.69 69.375h57.422v-14.414l-36.04-39.473h37.31v-13.633h-60.235v14.297l36.715 39.59h-35.172v13.633">
</path>
<path d="m1059.6 0h69.102v69.121h-69.102v-69.121z"></path>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

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: 2022-08-05 10:15+0200\n"
"PO-Revision-Date: 2022-08-05 10:21+0200\n"
"POT-Creation-Date: 2023-05-26 09:37+0200\n"
"PO-Revision-Date: 2023-05-31 15:27+0200\n"
"Last-Translator: \n"
"Language-Team: de <LL@li.org>\n"
"Language: de\n"
@@ -198,8 +198,8 @@ msgstr "Um die Schriftgröße zu ändern."
#, fuzzy, python-format
msgid ""
"<strong>Powered by</strong>\n"
" <a href=\"%(invenio_rdm)s\" target=\"_blank\" title=\"invenioRDM"
"\">"
" <a href=\"%(invenio_rdm)s\" target=\"_blank\" "
"title=\"invenioRDM\">"
msgstr ""
"<strong>Powered by</strong> <a href=\"%(invenio_rdm)s\" target=\"_blank\">"
@@ -272,43 +272,71 @@ msgstr ""
msgid "More"
msgstr "Mehr"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:111
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:110
msgid "You can upload different types of records:"
msgstr "Upload verschiedener Arten von Datensätzen:"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:114
msgid ""
"Visibility of uploaded content is maximized through synchronization with "
"data hubs (DataCite)."
msgstr ""
"Steigerung der Sichtbarkeit der Datensätze durch Synchronisation mit "
"Harvestern (DataCite)."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:118
msgid "Upload Research Output"
msgstr "Upload Forschungsergebnisse"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:123
msgid ""
"Open Educational Resources (OER) will be visible on various discovery tools "
"like the OERhub."
msgstr ""
"Open Educational Resources (OER) werden auf Suchmaschinen wie OERhub "
"sichtbar sein."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:128
msgid "Upload OER"
msgstr "Upload OER"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:135
msgid "Need help?"
msgstr "Brauchen Sie Hilfe?"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:115
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:139
msgid "Contact us"
msgstr "Kontaktiere uns"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:120
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:144
msgid "prioritizes all Recent uploads."
msgstr "reiht die neuesten Uploads vor."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:123
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:147
msgid "We can help with:"
msgstr "Dabei können wir helfen:"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:128
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:151
msgid "Uploading your research data, software, preprints, etc."
msgstr "Hochladen Ihrer Forschungsdaten, Software, Preprints usw."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:129
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:152
msgid "One-on-one with"
msgstr "One-on-one mit"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:129
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:152
msgid "supporters."
msgstr "Unterstützern"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:130
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:153
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:131
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:154
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:136
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:159
msgid "Why use"
msgstr "Warum"
@@ -458,9 +486,6 @@ msgstr "Mit Ihren Repository Daten registrieren"
#~ msgid "DOI"
#~ msgstr "DOI"
#~ msgid "Uploads"
#~ msgstr "Hochladen"
#~ msgid "German"
#~ msgstr "Deutsche"

View File

@@ -1,22 +1,22 @@
# Translations template for invenio-theme-tugraz.
# Copyright (C) 2022 Graz University of Technology
# Copyright (C) 2023 Graz University of Technology
# This file is distributed under the same license as the
# invenio-theme-tugraz project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2022.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2023.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: invenio-theme-tugraz 4.0.0\n"
"Project-Id-Version: invenio-theme-tugraz 4.11.1\n"
"Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n"
"POT-Creation-Date: 2022-08-05 10:15+0200\n"
"POT-Creation-Date: 2023-05-26 09:37+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"
"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.10.1\n"
#: invenio_theme_tugraz/config.py:13 invenio_theme_tugraz/config.py:60
msgid "TU Graz Repository"
@@ -256,43 +256,67 @@ msgstr ""
msgid "More"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:111
msgid "Need help?"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:110
msgid "You can upload different types of records:"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:115
msgid "Contact us"
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:114
msgid ""
"Visibility of uploaded content is maximized through synchronization with "
"data hubs (DataCite)."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:120
msgid "prioritizes all Recent uploads."
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:118
msgid "Upload Research Output"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:123
msgid "We can help with:"
msgid ""
"Open Educational Resources (OER) will be visible on various discovery "
"tools like the OERhub."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:128
msgid "Upload OER"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:135
msgid "Need help?"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:139
msgid "Contact us"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:144
msgid "prioritizes all Recent uploads."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:147
msgid "We can help with:"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:151
msgid "Uploading your research data, software, preprints, etc."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:129
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:152
msgid "One-on-one with"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:129
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:152
msgid "supporters."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:130
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:153
msgid "Quota increases beyond our default policy."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:131
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:154
msgid "Scripts for automated uploading of larger datasets."
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:136
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:159
msgid "Why use"
msgstr ""

View File

@@ -10,9 +10,17 @@
from typing import Dict
from elasticsearch_dsl.utils import AttrDict
from flask import Blueprint, render_template
from invenio_rdm_records.resources.serializers import UIJSONSerializer
from flask import Blueprint, g, render_template
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_records_global_search.resources.serializers import (
GlobalSearchJSONSerializer,
)
from invenio_users_resources.proxies import current_user_resources
from opensearch_dsl.utils import AttrDict
from .search import FrontpageRecordsSearch
@@ -24,6 +32,19 @@ blueprint = Blueprint(
)
@blueprint.route("/me/overview")
@login_required
def overview():
"""Overview."""
url = current_user_resources.users_service.links_item_tpl.expand(
g.identity, current_user
)["avatar"]
return render_template(
"invenio_theme_tugraz/overview.html",
user_avatar=url,
)
@blueprint.app_template_filter("make_dict_like")
def make_dict_like(value: str, key: str) -> Dict[str, str]:
"""Convert the value to a dict like structure.
@@ -39,6 +60,34 @@ 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")
# order matters, this has to be here, otherwise it want override the orginal
# entry
# this is to buggy, it depends on the load order of the packages which is indeterminate
# user_dashboard_menu.submenu("uploads").register(
# "invenio_app_rdm_users.uploads",
# text=_("Research Results"),
# order=1,
# )
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,
)
def ui_blueprint(app):
"""Blueprint for the routes and resources provided by Invenio-theme-tugraz."""
routes = app.config.get("TUG_ROUTES")
@@ -51,10 +100,8 @@ def ui_blueprint(app):
def records_serializer(records=None):
"""Serialize list of records."""
record_list = []
for record in records:
record_list.append(UIJSONSerializer().dump_obj(record.to_dict()))
return record_list
serializer = GlobalSearchJSONSerializer()
return [serializer.dump_obj(r.to_dict()) for r in records]
def index():

View File

@@ -25,31 +25,29 @@ classifiers =
Programming Language :: Python
Topic :: Internet :: WWW/HTTP :: Dynamic Content
Topic :: Software Development :: Libraries :: Python Modules
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Development Status :: 3 - Alpha
[options]
include_package_data = True
packages = find:
python_requires = >=3.8
python_requires = >=3.9
zip_safe = False
install_requires =
Flask-BabelEx>=0.9.4
Flask-WebpackExt>=1.0.0
invenio-assets>=1.2.7,<1.3.0
invenio-i18n>=1.3.1,<1.4.0
invenio_config_tugraz>=0.9.0,<0.10.0
invenio-assets>=2.0.0
invenio-i18n>=1.3.1
invenio_config_tugraz>=0.11.0
invenio_records_global_search>=0.0.1
[options.extras_require]
tests =
pytest-black>=0.3.0,<0.3.10
sphinx>=4.2.0,<5
pytest-invenio>=1.4.7
invenio-app>=1.3.0,<2.0.0
elasticsearch7 =
invenio-search[elasticsearch7]>=1.4.2,<2.0
pytest-black-ng>=0.4.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 =
@@ -98,6 +96,10 @@ output-dir = invenio_theme_tugraz/translations/
[isort]
profile=black
[check-manifest]
ignore =
*-requirements.txt
[tool:pytest]
addopts = --black --isort --pydocstyle --doctest-glob="*.rst" --doctest-modules --cov=invenio_theme_tugraz --cov-report=term-missing tests invenio_theme_tugraz
testpaths = tests invenio_theme_tugraz