mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2025-12-23 05:01:58 +00:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4aa72c003b | ||
|
|
fb906bda72 | ||
|
|
808aca3f60 | ||
|
|
5f49389fb1 | ||
|
|
4930e78c3a | ||
|
|
1ad73cc001 | ||
|
|
7623af2fb1 | ||
|
|
b05d9cbf97 |
@@ -27,13 +27,13 @@
|
|||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
// align badges to the right
|
// // align badges to the right
|
||||||
.ui.items > .item .extra.labels-actions {
|
// .ui.items > .item .extra.labels-actions {
|
||||||
float: right;
|
// float: right;
|
||||||
width: auto;
|
// width: auto;
|
||||||
|
|
||||||
// remove action buttons from search results
|
// // remove action buttons from search results
|
||||||
.ui.small.compact.right.floated.button {
|
// .ui.small.compact.right.floated.button {
|
||||||
display: none;
|
// display: none;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -58,13 +58,13 @@
|
|||||||
-->
|
-->
|
||||||
<div class="badges">
|
<div class="badges">
|
||||||
<!--Publication date/Version badge-->
|
<!--Publication date/Version badge-->
|
||||||
<span class="ui label blue" title="{{_('Publication date')}}">
|
<span class="ui label blue" data-tooltip="{{_('Publication date')}}" data-inverted="">
|
||||||
{{ r.metadata.publication_date }} {{ '(' ~ r.metadata.version ~ ')' if r.metadata.version }}
|
{{ r.metadata.publication_date }} {{ '(' ~ r.metadata.version ~ ')' if r.metadata.version }}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<!--Resource type badge-->
|
<!--Resource type badge-->
|
||||||
<span class="ui label grey" title="{{_('Resource type')}}">
|
<span class="ui label grey" data-tooltip="{{_('Resource type')}}" data-inverted>
|
||||||
{{r.metadata.resource_type | cast_to_dict | vocabulary_title('resource_type') }}
|
{{ r.ui.resource_type.title_l10n }}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span class="ui label access-status {{ r.ui.access_status.id }}" data-tooltip="{{ r.ui.access_status.description_l10n }}" data-inverted="">
|
<span class="ui label access-status {{ r.ui.access_status.id }}" data-tooltip="{{ r.ui.access_status.description_l10n }}" data-inverted="">
|
||||||
|
|||||||
@@ -94,7 +94,7 @@
|
|||||||
<span class="label text-muted"> | Version {{ record.ui.version }}</span>
|
<span class="label text-muted"> | Version {{ record.ui.version }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right floated right aligned column">
|
<div class="right floated right aligned column">
|
||||||
<span class="ui label small grey">{{ record.ui.resource_type }}</span>
|
<span class="ui label small grey">{{ record.ui.resource_type.title_l10n }}</span>
|
||||||
<span class="ui label small access-status {{ record.ui.access_status.id }}" data-tooltip="{{ record.ui.access_status.description_l10n }}" data-inverted="">
|
<span class="ui label small access-status {{ record.ui.access_status.id }}" data-tooltip="{{ record.ui.access_status.description_l10n }}" data-inverted="">
|
||||||
{% if record.ui.access_status.icon %}<i class="icon {{ record.ui.access_status.icon }}"></i>{% endif %}
|
{% if record.ui.access_status.icon %}<i class="icon {{ record.ui.access_status.icon }}"></i>{% endif %}
|
||||||
{{ record.ui.access_status.title_l10n }}
|
{{ record.ui.access_status.title_l10n }}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<a href="{{creators.identifiers.orcid|pid_url('orcid')}}" target="_blank" ><img class="inline-orcid" src="{{ url_for('static', filename='extra/orcid.png')}}" /></a>
|
<a href="{{creators.identifiers.orcid|pid_url('orcid')}}" target="_blank" ><img class="inline-orcid" src="{{ url_for('static', filename='extra/orcid.png')}}" /></a>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
<span class="text-muted" {% if creators.affiliations %} {% for affiliation in creators.affiliations %} data-toggle="tooltip" title="{{affiliation.name}}" {%- endfor %} {% endif %}>{{creators.person_or_org.name}}</span>
|
<span class="text-muted" {% if creators.affiliations %} {% for affiliation in creators.affiliations %} data-tooltip="{{affiliation.name}}" data-inverted="" {%- endfor %} {% endif %}>{{creators.person_or_org.name}}</span>
|
||||||
{% if not loop.last %}; {% endif %}
|
{% if not loop.last %}; {% endif %}
|
||||||
|
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|||||||
@@ -12,4 +12,4 @@ This file is imported by ``invenio_theme_tugraz.__init__``,
|
|||||||
and parsed by ``setup.py``.
|
and parsed by ``setup.py``.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__version__ = "3.0.2"
|
__version__ = "3.4.0"
|
||||||
|
|||||||
@@ -61,15 +61,21 @@ def ui_blueprint(app):
|
|||||||
return blueprint
|
return blueprint
|
||||||
|
|
||||||
|
|
||||||
|
def records_serializer(records=None):
|
||||||
|
"""Serialize list of records."""
|
||||||
|
record_list = []
|
||||||
|
for record in records:
|
||||||
|
record_list.append(UIJSONSerializer().serialize_object_to_dict(record.to_dict()))
|
||||||
|
return record_list
|
||||||
|
|
||||||
|
|
||||||
def index():
|
def index():
|
||||||
"""Frontpage."""
|
"""Frontpage."""
|
||||||
records = FrontpageRecordsSearch()[:5].sort("-created").execute()
|
records = FrontpageRecordsSearch()[:5].sort("-created").execute()
|
||||||
for r in records:
|
|
||||||
r = UIJSONSerializer().serialize_object_to_dict(r.to_dict())
|
|
||||||
|
|
||||||
return render_template(
|
return render_template(
|
||||||
"invenio_theme_tugraz/index.html",
|
"invenio_theme_tugraz/index.html",
|
||||||
records=records
|
records=records_serializer(records)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@@ -82,7 +88,7 @@ def guide():
|
|||||||
"""TUGraz_Repository_Guide."""
|
"""TUGraz_Repository_Guide."""
|
||||||
locale = get_locale()
|
locale = get_locale()
|
||||||
return redirect(url_for('static',
|
return redirect(url_for('static',
|
||||||
filename=f'documents/TUGraz_Repository_Guide_01_{locale}.pdf',
|
filename=f'documents/TUGraz_Repository_Guide_02_{locale}.pdf',
|
||||||
_external=True))
|
_external=True))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ theme = WebpackThemeBundle(
|
|||||||
'prop-types': '^15.7.2',
|
'prop-types': '^15.7.2',
|
||||||
'react-dnd': '^11.1.3',
|
'react-dnd': '^11.1.3',
|
||||||
'react-dnd-html5-backend': '^11.1.3',
|
'react-dnd-html5-backend': '^11.1.3',
|
||||||
'react-invenio-deposit': '^0.13.5',
|
'react-invenio-deposit': '^0.14.0',
|
||||||
'react-invenio-forms': '^0.7.0',
|
'react-invenio-forms': '^0.7.0',
|
||||||
'react-dropzone': "^11.0.3",
|
'react-dropzone': "^11.0.3",
|
||||||
'yup': '^0.27.0',
|
'yup': '^0.27.0',
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -56,7 +56,7 @@ install_requires = [
|
|||||||
"Flask-WebpackExt>=1.0.0",
|
"Flask-WebpackExt>=1.0.0",
|
||||||
"invenio-assets>=1.2.0",
|
"invenio-assets>=1.2.0",
|
||||||
"invenio-i18n>=1.2.0",
|
"invenio-i18n>=1.2.0",
|
||||||
"invenio_config_tugraz>=0.5.8",
|
"invenio_config_tugraz>=0.6.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
packages = find_packages()
|
packages = find_packages()
|
||||||
|
|||||||
Reference in New Issue
Block a user