update_frontpage and _project_pages workflows: extend to render objectives #10
3 changed files with 9 additions and 2 deletions
|
|
@ -22,7 +22,7 @@ jobs:
|
||||||
dtc get-records $DUMPTHINGS_APIURL public --pid xyzrins:. \
|
dtc get-records $DUMPTHINGS_APIURL public --pid xyzrins:. \
|
||||||
| qri inject-links-pid --link generated_by generated \
|
| qri inject-links-pid --link generated_by generated \
|
||||||
| qri inject-links-pid --link part_of parts \
|
| qri inject-links-pid --link part_of parts \
|
||||||
| qri inline-records -c public -p associated_with -p associated_with::roles -p identifiers::creator -p part_of \
|
| qri inline-records -c public -p associated_with -p associated_with::roles -p influenced_by -p influenced_by::roles -p identifiers::creator -p part_of \
|
||||||
| qri render-record page_templates/project.md.j2 'content/{__pid_curie_reference}/_index.md'
|
| qri render-record page_templates/project.md.j2 'content/{__pid_curie_reference}/_index.md'
|
||||||
- name: Deposit changes
|
- name: Deposit changes
|
||||||
uses: ./.forgejo/actions/deposit-changes
|
uses: ./.forgejo/actions/deposit-changes
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ jobs:
|
||||||
| qri filter-links-pid --link part_of xyzrins:. --recursive --collection public \
|
| qri filter-links-pid --link part_of xyzrins:. --recursive --collection public \
|
||||||
| qri inject-links-pid --link generated_by generated \
|
| qri inject-links-pid --link generated_by generated \
|
||||||
| qri inject-links-pid --link part_of parts \
|
| qri inject-links-pid --link part_of parts \
|
||||||
| qri inline-records -c public -p associated_with -p associated_with::roles -p identifiers::creator -p part_of \
|
| qri inline-records -c public -p associated_with -p associated_with::roles -p influenced_by -p influenced_by::roles -p identifiers::creator -p part_of \
|
||||||
| qri render-record page_templates/project.md.j2 'content/{__pid_curie_reference}/_index.md'
|
| qri render-record page_templates/project.md.j2 'content/{__pid_curie_reference}/_index.md'
|
||||||
- name: Deposit changes
|
- name: Deposit changes
|
||||||
uses: ./.forgejo/actions/deposit-changes
|
uses: ./.forgejo/actions/deposit-changes
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
---
|
---
|
||||||
title: "{{ title }}"
|
title: "{{ title }}"
|
||||||
{{ taxonomy_terms('projects', 'xyzri:XYZProject', parts, typeattr='schema_type', pidattr='pid') -}}
|
{{ taxonomy_terms('projects', 'xyzri:XYZProject', parts, typeattr='schema_type', pidattr='pid') -}}
|
||||||
|
{{ taxonomy_terms('objectives', 'xyzri:XYZObjective', influenced_by, typeattr='schema_type', pidattr='pid') -}}
|
||||||
{{ taxonomy_terms('persons', 'xyzri:XYZPerson', associated_with) -}}
|
{{ taxonomy_terms('persons', 'xyzri:XYZPerson', associated_with) -}}
|
||||||
{{ taxonomy_terms('instruments', 'xyzri:XYZInstrument', generated, typeattr='schema_type', pidattr='pid') -}}
|
{{ taxonomy_terms('instruments', 'xyzri:XYZInstrument', generated, typeattr='schema_type', pidattr='pid') -}}
|
||||||
params:
|
params:
|
||||||
|
|
@ -20,6 +21,12 @@ params:
|
||||||
|
|
||||||
{% if part_of %}This project is part of{% for p in part_of %} [{{ p.title }}](/{{ p.pid|replace('xyzrins:', '') }}){% endfor %}.{% endif %}
|
{% if part_of %}This project is part of{% for p in part_of %} [{{ p.title }}](/{{ p.pid|replace('xyzrins:', '') }}){% endfor %}.{% endif %}
|
||||||
|
|
||||||
|
## Objectives
|
||||||
|
|
||||||
|
{% for inf in influenced_by if inf.object.schema_type == "xyzri:XYZObjective" and not inf.ended -%}
|
||||||
|
- [{{ inf.object.title }}](/{{ inf.object.pid|replace('xyzrins:', '') }}) ({%for role in inf.roles %}{{ ', ' if not loop.first }}{{ role.display_label|default(role.name) }}{% endfor -%})
|
||||||
|
{% endfor -%}
|
||||||
|
|
||||||
## People
|
## People
|
||||||
|
|
||||||
{% for ass in associated_with if ass.object.schema_type == "xyzri:XYZPerson" and not ass.ended -%}
|
{% for ass in associated_with if ass.object.schema_type == "xyzri:XYZPerson" and not ass.ended -%}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue