diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/frontpage.less b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/frontpage.less index a7acea9..17afd38 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/frontpage.less +++ b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/frontpage.less @@ -6,21 +6,41 @@ * under the terms of the MIT License; see LICENSE file for more details. */ -h4{ - display: block; - margin-block-start: 0.33em; - margin-block-end: 0.33em; - margin-inline-start: 0px; - margin-inline-end: 0px; +h4 { + display: block; + margin-block-start: 0.33em; + margin-block-end: 0.33em; + margin-inline-start: 0px; + margin-inline-end: 0px; } -h2{ - margin-block-start: 0.83em; - margin-block-end: 0.83em; - margin-inline-start: 0px; - margin-inline-end: 0px; +h2 { + margin-block-start: 0.83em; + margin-block-end: 0.83em; + margin-inline-start: 0px; + margin-inline-end: 0px; } -.record-version{ - color: #777777; -} \ No newline at end of file +.record-version { + color: #777777; + background-color: #f2f2f2 !important; +} + +.random-records-frontpage article { + border-bottom: 1px solid rgba(34,36,38,.15); + margin-bottom: 1rem; + padding-bottom: 1rem; +} + +.random-records-frontpage .more { + margin-top: 20px !important; + margin-bottom: 35px !important; +} + +.random-records-frontpage h2 { + text-align: center; +} + +.badges { + float: right; +} diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/header.less b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/header.less index 004d432..2d9c99f 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/header.less +++ b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/header.less @@ -190,7 +190,7 @@ svg:not(:root) { } .main-menu-underline-line { - border: 2px solid #e4154b !important; + border: 2px solid #e0e1e2 !important; border-radius: 0; } @@ -247,4 +247,4 @@ svg:not(:root) { } .inline-elements{ display: flex; -} \ No newline at end of file +} diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/overrides.less b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/overrides.less index 26f79ea..9f5a867 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/overrides.less +++ b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/overrides.less @@ -6,162 +6,120 @@ * under the terms of the MIT License; see LICENSE file for more details. */ -/* -* Logos background frontpage. -* from rgba(173, 206, 224, 0.52) -* to #ffffff -*/ +/*** + * Logos background frontpage. + * from rgba(173, 206, 224, 0.52) + * to #ffffff + ***/ .section-content-light-bg { background-color: #ffffff; } -/* -* section title. -* from #0377cd -* to #000000 -*/ +/*** + * section title. + * from #0377cd + * to #000000 + ***/ .section-title { color: #000000; } + /*** -login background color -from : rgba(13,95,137,.8) -To #ffffff -*/ + * login background color + * from : rgba(13,95,137,.8) + * To #ffffff + ***/ .cover-page { //text-align: center; background-color: #ffffff; } + /*** -login & sigup page title -from : #0377cd -To #000000 -*/ + * login & sigup page title + * from : #0377cd + * To #000000 + ***/ .panel-free-title { color: #000000; } + /*** -forcing the font changes -*/ -* { + * force: the font changes + ***/ +*, +html, body, +h1, h2, h3, h4, h5, h6, +pre, +.ui.button, +.ui.items, +.ui.accordion .title:not(.ui), +.ui.items > .item > .content > .header, +.ui.modal > .header, +.ui.menu, +.ui.header, +.ui.form input[type], +.ui.form input[type]:focus { font-family: "Source Sans Pro"; - } - html, body { - font-family: "Source Sans Pro"; - } - body, h1, h2, h3, h4, h5, h6 { - font-family: "Source Sans Pro"; - } - .ui.button{ - font-family: "Source Sans Pro"; - } - .ui.items{ - font-family: "Source Sans Pro"; - } +} + +pre { + font-size: 14px; +} + - .ui.form input:not([type]), - .ui.form input[type=date], - .ui.form input[type=datetime-local], - .ui.form input[type=email], - .ui.form input[type=file], - .ui.form input[type=number], - .ui.form input[type=password], - .ui.form input[type=search], - .ui.form input[type=tel], - .ui.form input[type=text], - .ui.form input[type=time], .ui.form input[type=url] { - font-family: "Source Sans Pro"; - } - .ui.accordion .title:not(.ui) { - font-family: "Source Sans Pro"; - } - .ui.items>.item>.content>.header { - font-family: "Source Sans Pro"; - } - .ui.menu{ - font-family: "Source Sans Pro"; - } - .ui.header { - font-family: "Source Sans Pro"; - } /*** -search.button -**/ - -.ui.search.button{ + * search.button + ***/ +/*.ui.button,*/ +.ui.search.button { background-color:#e4154b; } -.ui.search.button:hover{ +.ui.button:hover, +.ui.search.button:hover { background-color:#000000; } -/** -.ui.button{ - background-color:#e4154b; -} -*/ -.ui.button:hover{ - background-color:#000000; + +.ui.button:hover { color:#fff; } + /*** -remove corners from border -**/ + * force: remove corners from border + ***/ +.label-keyword, +.ui.label, +.ui.button, +.ui.rdm-sidebar, +.ui.menu, +.ui.input > input, /* it seams redundant but it is not */ +.ui.segment, +.ui.selection.dropdown, +.ui.card, +.ui.cards > .card, +.ui.basic.button, .ui.basic.buttons .button, +.ui.action.input:not([class*="left action"]) > .button:last-child, +.ui.action.input:not([class*="left action"]) > .buttons:last-child > .button, +.ui.action.input:not([class*="left action"]) > .dropdown:last-child, +.ui.form input[type], +.ui.form input[type]:focus { + border-radius: 0; +} + +/*** + * force: rdm-side-bar same empty box as on the frontpage + ***/ +.ui.rdm-sidebar { + background-color: unset; + box-shadow: unset; +} + +/*** + * force: font weight: normal + ***/ .ui.label { -border-radius: 0; + font-weight: 400; } - -.ui.button{ - border-radius: 0; -} - -.ui.rdm-sidebar{ - border-radius: 0; -} - -.label-keyword { - border-radius: 0; -} - -.ui.menu { - border-radius: 0; -} - -.ui.form input:not([type]), -.ui.form input[type=date], -.ui.form input[type=datetime-local], -.ui.form input[type=email], -.ui.form input[type=file], -.ui.form input[type=number], -.ui.form input[type=password], -.ui.form input[type=search], -.ui.form input[type=tel], -.ui.form input[type=text], -.ui.form input[type=time], -.ui.form input[type=url] { - border-radius: 0; -} -.ui.input>input { - border-radius: 0; -} -.ui.segment { - border-radius: 0; -} -.ui.selection.dropdown { - border-radius: 0; -} -.ui.card, .ui.cards>.card { - border-radius: 0; -} -.ui.action.input:not([class*="left action"])>.button:last-child, -.ui.action.input:not([class*="left action"])>.buttons:last-child> -.button, .ui.action.input:not([class*="left action"])> -.dropdown:last-child { - border-radius: 0; -} -.ui.basic.button, .ui.basic.buttons .button { - border-radius: 0; -} \ No newline at end of file diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/record.less b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/record.less new file mode 100644 index 0000000..45a8764 --- /dev/null +++ b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/record.less @@ -0,0 +1,11 @@ +/* + * Copyright (C) 2020 Graz University of Technology + * + * invenio-theme-tugraz is free software; you can redistribute it and/or modify + * it under the terms of the MIT License; see LICENSE file for more details. + */ + +.access-right { + color: #e9711c; + float: right; +} diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/theme.less b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/theme.less index aee4b23..1ae0402 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/theme.less +++ b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/theme.less @@ -11,6 +11,7 @@ @import "footer"; @import "overrides"; @import "frontpage"; +@import "record"; @import "macros"; @import "login"; @import (css) diff --git a/invenio_theme_tugraz/config.py b/invenio_theme_tugraz/config.py index af3b8ff..ac58bcb 100644 --- a/invenio_theme_tugraz/config.py +++ b/invenio_theme_tugraz/config.py @@ -10,32 +10,33 @@ from flask_babelex import gettext as _ -INVENIO_THEME_TUGRAZ_DEFAULT_VALUE = 'foobar' +INVENIO_THEME_TUGRAZ_DEFAULT_VALUE = "foobar" """Default value for the application.""" -INVENIO_THEME_TUGRAZ_BASE_TEMPLATE = 'invenio_theme_tugraz/base.html' +INVENIO_THEME_TUGRAZ_BASE_TEMPLATE = "invenio_theme_tugraz/base.html" """TU Graz Default base template""" INVENIO_THEME_TUGRAZ_ACCOUNT_BASE = \ - 'invenio_theme_tugraz/accounts/accounts_base.html' + "invenio_theme_tugraz/accounts/accounts_base.html" """TU Graz Default account base template""" -INVENIO_THEME_TUGRAZ_ICON = 'images/icon_use.png' +INVENIO_THEME_TUGRAZ_ICON = "images/icon_use.png" """icon used in login page""" -INVENIO_THEME_TUGRAZ_LOGIN_IMG = 'images/login_logo.png' +INVENIO_THEME_TUGRAZ_LOGIN_IMG = "images/login_logo.png" """TU Logo for forms""" # Invenio-theme # ============ # See https://invenio-theme.readthedocs.io/en/latest/configuration.html -THEME_LOGO = 'images/tug_logo.png' +# +THEME_LOGO = "images/tug_logo.png" """TU Graz logo""" THEME_SEARCHBAR = False """Enable or disable the header search bar.""" -THEME_HEADER_TEMPLATE = 'invenio_theme_tugraz/header.html' +THEME_HEADER_TEMPLATE = "invenio_theme_tugraz/header.html" """TU Graz header template""" # THEME_FRONTPAGE_TEMPLATE = 'invenio_theme_tugraz/frontpage.html' @@ -44,16 +45,17 @@ THEME_HEADER_TEMPLATE = 'invenio_theme_tugraz/header.html' THEME_FRONTPAGE = False """Use default frontpage.""" -THEME_HEADER_LOGIN_TEMPLATE = 'invenio_theme_tugraz/accounts/header_login.html' +THEME_HEADER_LOGIN_TEMPLATE = \ + "invenio_theme_tugraz/accounts/header_login.html" """login page header""" -THEME_FOOTER_TEMPLATE = 'invenio_theme_tugraz/footer.html' +THEME_FOOTER_TEMPLATE = "invenio_theme_tugraz/footer.html" """footer template""" -THEME_FRONTPAGE_TITLE = _('TU Graz Repository') +THEME_FRONTPAGE_TITLE = _("TU Graz Repository") """Frontpage title.""" -THEME_SITENAME = _('Repository') +THEME_SITENAME = _("Repository") """Site name.""" # Invenio-accounts @@ -63,29 +65,39 @@ THEME_SITENAME = _('Repository') # COVER_TEMPLATE = 'invenio_theme_tugraz/accounts/accounts_base.html' """Cover page template for login and sign up pages.""" -SECURITY_LOGIN_USER_TEMPLATE = 'invenio_theme_tugraz/accounts/login_user.html' +SECURITY_LOGIN_USER_TEMPLATE = \ + "invenio_theme_tugraz/accounts/login_user.html" """Login template""" SECURITY_REGISTER_USER_TEMPLATE = \ - 'invenio_theme_tugraz/accounts/register_user.html' + "invenio_theme_tugraz/accounts/register_user.html" """Sigup template""" # Invenio-I18N # ============ # See https://invenio-i18n.readthedocs.io/en/latest/configuration.html -BABEL_DEFAULT_LOCALE = 'en' +BABEL_DEFAULT_LOCALE = "en" # Default time zone -BABEL_DEFAULT_TIMEZONE = 'Europe/Vienna' +BABEL_DEFAULT_TIMEZONE = "Europe/Vienna" # Other supported languages (do not include BABEL_DEFAULT_LOCALE in list). -I18N_LANGUAGES = [ - ('de', _('German')) - ] +I18N_LANGUAGES = [("de", _("German"))] # Invenio-app-rdm # ============= # See https://invenio-app-rdm.readthedocs.io/en/latest/configuration.html -SEARCH_UI_HEADER_TEMPLATE = 'invenio_theme_tugraz/header.html' +SEARCH_UI_HEADER_TEMPLATE = "invenio_theme_tugraz/header.html" """Search page's header template.""" -DEPOSITS_HEADER_TEMPLATE = 'invenio_theme_tugraz/header.html' +DEPOSITS_HEADER_TEMPLATE = "invenio_theme_tugraz/header.html" """Deposits header page's template.""" + + +# Invenio-rdm-records +# ============= +# See https://invenio-rdm-records.readthedocs.io/en/latest/configuration.html +# Uncomment below to override records landingpage. +# from invenio_rdm_records.config import RECORDS_UI_ENDPOINTS +# RECORDS_UI_ENDPOINTS["recid"].update( +# template="invenio_theme_tugraz/record_landing_page.html" +# ) +"""override the default record landing page""" diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/details/doi.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/details/doi.html new file mode 100644 index 0000000..a41e38f --- /dev/null +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/details/doi.html @@ -0,0 +1,41 @@ +{# + Copyright (C) 2020 CERN. + Copyright (C) 2020 Northwestern University. + Copyright (C) 2020 Graz University of Technology + + invenio-theme-tugraz is free software; you can redistribute it and/or modify + it under the terms of the MIT License; see LICENSE file for more details. + + origin: invenio-rdm-records/doi.html +#} + +{%- set id_doi = record.identifiers | doi_identifier %} + +
{{ id_doi }}+ {{ creators(r.creators) }} +
-+ + {{ r.descriptions[0].description | striptags | truncate(300) }} + +
-{{ creators(r.creators) }}
- -{{ r.descriptions[0].description|striptags|truncate(300) }}
- - {% trans user=userprofile, date=creation_date|dateformat('long') %}Uploaded on - {{date}}{% endtrans %} +{{config.THEME_SITENAME}} prioritizes all requested related to the COVID-19 outbreak.
-We can help with:
++ {{config.THEME_SITENAME}} prioritizes all requested related to the COVID-19 outbreak. +
++ We can help with: +
+ {%- include "invenio_rdm_records/details/creators.html" %} +
+ + {%- if record.contributors %} ++ {%- include "invenio_rdm_records/details/contributors.html" %} +
+ {%- endif %} + ++ No associated files. +
+ {% endif %} + + {# More details #} + + {%- endblock record_body %} +