- - {{ r.metadata.title }} - -
- -- {{ creators(r.metadata.creators) }} -
- -- - {{ r.metadata.description | striptags | truncate(300) }} - -
- -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 1ceb574..fc11edb 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 @@ -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%; +} 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 7a144b3..006af3b 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 @@ -37,3 +37,7 @@ .nowrap-link { white-space: nowrap; } + +.ui.label.schema { + border: 1px solid #bfb5b5; +} diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/variables.less b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/variables.less index 02d8ab9..37824d1 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/variables.less +++ b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/variables.less @@ -23,6 +23,8 @@ @accessRightClosed : @accessRightEmbargoed; @accessRightMetadata : #2185D0; +@schema: #17b3f3; + // primary colors TU Graz @tugrazBlack: #231f20; @tugrazRed : #e4154b; diff --git a/invenio_theme_tugraz/search.py b/invenio_theme_tugraz/search.py index a12d6ed..fbdbfb8 100644 --- a/invenio_theme_tugraz/search.py +++ b/invenio_theme_tugraz/search.py @@ -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 @@ -9,7 +9,6 @@ """Frontpage records.""" from invenio_search.api import RecordsSearch -from invenio_search.engine import dsl class FrontpageRecordsSearch(RecordsSearch): @@ -18,8 +17,4 @@ class FrontpageRecordsSearch(RecordsSearch): class Meta: """Default index and filter for frontpage search.""" - index = "rdmrecords-records" - default_filter = dsl.Q( - "query_string", - query=("access.record:public " "AND versions.is_latest:true"), - ) + index = "dublin-core" diff --git a/invenio_theme_tugraz/static/images/cyan_400x400.png b/invenio_theme_tugraz/static/images/cyan_400x400.png new file mode 100644 index 0000000..bee4fad Binary files /dev/null and b/invenio_theme_tugraz/static/images/cyan_400x400.png differ diff --git a/invenio_theme_tugraz/static/images/dark_blue_400x400.png b/invenio_theme_tugraz/static/images/dark_blue_400x400.png new file mode 100644 index 0000000..e6be001 Binary files /dev/null and b/invenio_theme_tugraz/static/images/dark_blue_400x400.png differ diff --git a/invenio_theme_tugraz/static/images/light_green_400x400.png b/invenio_theme_tugraz/static/images/light_green_400x400.png new file mode 100644 index 0000000..791f4fa Binary files /dev/null and b/invenio_theme_tugraz/static/images/light_green_400x400.png differ diff --git a/invenio_theme_tugraz/static/images/red_400x400.png b/invenio_theme_tugraz/static/images/red_400x400.png new file mode 100644 index 0000000..9eb3e68 Binary files /dev/null and b/invenio_theme_tugraz/static/images/red_400x400.png differ diff --git a/invenio_theme_tugraz/static/images/rosa_400x400.png b/invenio_theme_tugraz/static/images/rosa_400x400.png new file mode 100644 index 0000000..de4784e Binary files /dev/null and b/invenio_theme_tugraz/static/images/rosa_400x400.png differ diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/frontpage_overview.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/frontpage_overview.html new file mode 100644 index 0000000..acad57f --- /dev/null +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/frontpage_overview.html @@ -0,0 +1,104 @@ +{# + 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. +#} + +
{{ _('There are no public records to show.') }}
-- {{ creators(r.metadata.creators) }} -
- -- - {{ r.metadata.description | striptags | truncate(300) }} - -
- -
+
+
+
+
+
+
+ {{ _("There are no public records to show.") }}
++ {%- for creator in r.metadata.creators %} + {{ creator }} + {%- endfor %} +
+ ++ + {{ r.metadata.descriptions | join(" ") | striptags | truncate(300) }} + +
+ +