mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2026-01-09 12:21:59 +00:00
migrate(datamodel):changed fields to match the new data model structure.
* Orcid => orcid * filter contributertype_title deprecated * records.metadata.title and for additional title there is a new field additional_titles. * records.metadata.description and for additional description there is a new field additional_descriptions. This closes #114.
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
|
||||
<h4>
|
||||
<a href="{{ record_url }}">
|
||||
{{r.metadata.titles[0].title}}
|
||||
{{r.metadata.title}}
|
||||
</a>
|
||||
</h4>
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
|
||||
<p class="hidden-xs">
|
||||
<a href="{{record_url}}">
|
||||
{{ r.metadata.descriptions[0].description | striptags | truncate(300) }}
|
||||
{{ r.metadata.description | striptags | truncate(300) }}
|
||||
</a>
|
||||
</p>
|
||||
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
|
||||
{%- for creators in authors_list %}
|
||||
|
||||
{%- if creators.identifiers.Orcid %}
|
||||
<a href="{{creators.identifiers.Orcid|pid_url('orcid')}}" target="_blank" ><img class="inline-orcid" src="{{ url_for('static', filename='extra/orcid.png')}}" /></a>
|
||||
{%- if creators.identifiers.orcid %}
|
||||
<a href="{{creators.identifiers.orcid|pid_url('orcid')}}" target="_blank" ><img class="inline-orcid" src="{{ url_for('static', filename='extra/orcid.png')}}" /></a>
|
||||
{%- endif %}
|
||||
|
||||
<span class="text-muted" {% if creators.affiliations %} {% for affiliation in creators.affiliations %} data-toggle="tooltip" title="{{affiliation.name}}" {%- endfor %} {% endif %}>{{creators.name}}</span>
|
||||
@@ -25,7 +25,7 @@
|
||||
<!--TODO: contributers-->
|
||||
{%- macro contributors(contributors_list) %}
|
||||
{%- for group in contributors_list|groupby('type')%}
|
||||
<h5>{{group.grouper|contributortype_title}}(s)</h5>
|
||||
<h5>{{group.grouper}}(s)</h5>
|
||||
{{authors(group.list)}}
|
||||
{%- endfor %}
|
||||
{%- endmacro %}
|
||||
Reference in New Issue
Block a user