mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2025-12-22 20:51:58 +00:00
fixed mapping on creators for authors.html
fixed margin of h2,h4 plus added some css style.
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
|
||||
h4{
|
||||
display: block;
|
||||
margin-block-start: 1.33em;
|
||||
margin-block-end: 1.33em;
|
||||
margin-block-start: 0.33em;
|
||||
margin-block-end: 0.33em;
|
||||
margin-inline-start: 0px;
|
||||
margin-inline-end: 0px;
|
||||
}
|
||||
@@ -21,10 +21,3 @@ h2{
|
||||
margin-inline-end: 0px;
|
||||
}
|
||||
|
||||
p{
|
||||
display: block;
|
||||
margin-block-start: 1em;
|
||||
margin-block-end: 1em;
|
||||
margin-inline-start: 0px;
|
||||
margin-inline-end: 0px;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Copyright (C) 2020 TUGRAZ.
|
||||
* Copyright (C) 2020 mojib wali.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* authors.html
|
||||
*/
|
||||
.inline-orcid {
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.text-muted {
|
||||
color: #777;
|
||||
}
|
||||
@@ -10,6 +10,7 @@
|
||||
@import "footer";
|
||||
@import "overrides";
|
||||
@import "frontpage";
|
||||
@import "macros";
|
||||
@import (css)
|
||||
url("https://fonts.googleapis.com/css?family=Source+Sans+Pro&display=swap");
|
||||
|
||||
|
||||
BIN
invenio_theme_tugraz/static/orcid.png
Normal file
BIN
invenio_theme_tugraz/static/orcid.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 566 B |
@@ -0,0 +1,10 @@
|
||||
|
||||
<ul>
|
||||
<li><strong>{{_('Safe')}}</strong> — {{_('your research is stored safely for the future in CERN’s Data Centre for as long as CERN exists.')}}</li>
|
||||
<li><strong>{{_('Trusted')}}</strong> — {{_('built and operated by CERN and OpenAIRE to ensure that everyone can join in Open Science.')}}</li>
|
||||
<li><strong>{{_('Citeable')}}</strong> — {{_('every upload is assigned a Digital Object Identifier (DOI), to make them citable and trackable.')}}</li>
|
||||
<li><strong>{{_('No waiting time')}}</strong> — {{_('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> — {{_('Share e.g. anonymized clinical trial data with only medical professionals via our restricted access mode.')}}</li>
|
||||
<li><strong>{{_('Versioning')}}</strong> — {{_("Easily update your dataset with our versioning feature.")}}</li>
|
||||
<li><strong>{{_('Usage statisics')}}</strong> — {{_("All uploads display standards compliant usage statistics")}}</li>
|
||||
</ul>
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
{%- extends config.INVENIO_THEME_TUGRAZ_BASE_TEMPLATE %}
|
||||
|
||||
{%- from "invenio_theme_tugraz/macros/authors.html" import authors -%}
|
||||
{%- from "invenio_theme_tugraz/macros/authors.html" import creators -%}
|
||||
|
||||
|
||||
{%- block page_body %}
|
||||
@@ -46,12 +46,12 @@
|
||||
</div>
|
||||
|
||||
<h4><a href="{{ record_url }}">{{r.titles[0].title}}</a></h4>
|
||||
<p>{{ authors(r.creators) }}</p>
|
||||
<p>{{ creators(r.creators) }}</p>
|
||||
|
||||
<p class="hidden-xs"><a href="{{record_url}}">{{ r.descriptions[0].description|striptags|truncate(300) }}</a></p>
|
||||
|
||||
<div class="ui tiny header">{% trans user=userprofile, date=creation_date|dateformat('long') %}Uploaded on
|
||||
{{date}}{% endtrans %}</div>
|
||||
<small>{% trans user=userprofile, date=creation_date|dateformat('long') %}Uploaded on
|
||||
{{date}}{% endtrans %}</small>
|
||||
|
||||
{%- if not loop.last %}
|
||||
<div class="ui divider"></div>
|
||||
@@ -85,20 +85,7 @@
|
||||
|
||||
<div class="ui segment" style="padding-bottom: 10px;">
|
||||
<h4>Why use {{config.THEME_SITENAME}}?</h4>
|
||||
<ul>
|
||||
<li><strong>Safe</strong> — your research is stored safely for the future in CERN’s Data Centre for as long as
|
||||
CERN exists.</li>
|
||||
<li><strong>Trusted</strong> — built and operated by CERN and OpenAIRE to ensure that everyone can join in
|
||||
Open Science.</li>
|
||||
<li><strong>Citeable</strong> — every upload is assigned a Digital Object Identifier (DOI), to make them
|
||||
citable and trackable.</li>
|
||||
<li><strong>No waiting time</strong> — 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> — Share e.g. anonymized clinical trial data with only medical
|
||||
professionals via our restricted access mode.</li>
|
||||
<li><strong>Versioning</strong> — Easily update your dataset with our versioning feature.</li>
|
||||
<li><strong>Usage statisics</strong> — All uploads display standards compliant usage statistics</li>
|
||||
</ul>
|
||||
{% include "invenio_theme_tugraz/benefits.html" %}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -8,16 +8,21 @@
|
||||
details.
|
||||
#}
|
||||
|
||||
{%- macro authors(authors_list) %}
|
||||
{%- for author in authors_list %}
|
||||
{%- if author.orcid %}
|
||||
<a href="{{author.orcid|pid_url('orcid')}}"><img class="inline-orcid" src="{{ url_for('static', filename='extra/orcid.png')}}" /></a>
|
||||
{%- macro creators (authors_list) %}
|
||||
|
||||
{%- for creators in authors_list %}
|
||||
|
||||
{%- if creators.identifiers.Orcid %}
|
||||
<a href="{{creators.identifiers.Orcid|pid_url('orcid')}}"><img class="inline-orcid" src="{{ url_for('static', filename='extra/orcid.png')}}" /></a>
|
||||
{%- endif %}
|
||||
<span class="text-muted" {% if author.affiliation %}data-toggle="tooltip" title="{{author.affiliation}}"{% endif %}>{{author.name}}</span>{% if not loop.last %}; {% endif %}
|
||||
|
||||
<span class="text-muted" {% if creators.affiliations %} {% for affiliation in creators.affiliations %} data-toggle="tooltip" title="{{affiliation.name}}" {%- endfor %} {% endif %}>{{creators.name}}</span>
|
||||
{% if not loop.last %}; {% endif %}
|
||||
|
||||
{%- endfor %}
|
||||
{%- endmacro %}
|
||||
|
||||
|
||||
<!--TODO: contributers-->
|
||||
{%- macro contributors(contributors_list) %}
|
||||
{%- for group in contributors_list|groupby('type')%}
|
||||
<h5>{{group.grouper|contributortype_title}}(s)</h5>
|
||||
|
||||
5
setup.py
5
setup.py
@@ -17,12 +17,13 @@ history = open('CHANGES.rst').read()
|
||||
|
||||
tests_require = [
|
||||
'check-manifest>=0.25',
|
||||
'coverage>=4.0',
|
||||
# coverage pinned because of https://github.com/nedbat/coveragepy/issues/716
|
||||
'coverage>=4.0,<5.0.0',
|
||||
'isort>=4.3.3, <5.0.0',
|
||||
'pydocstyle>=2.0.0',
|
||||
'pytest-cov>=2.5.1',
|
||||
'pytest-pep8>=1.0.6',
|
||||
'pytest-invenio>=1.2.1',
|
||||
'pytest-invenio>=1.3.2',
|
||||
]
|
||||
|
||||
extras_require = {
|
||||
|
||||
Reference in New Issue
Block a user