Skip to content

Commit

Permalink
Tring to fix publication lists
Browse files Browse the repository at this point in the history
  • Loading branch information
oshadura committed Jan 6, 2025
1 parent 18635d6 commit fbab8ae
Show file tree
Hide file tree
Showing 10 changed files with 76 additions and 1 deletion.
2 changes: 2 additions & 0 deletions _data/publications/2598292.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
inspire-id: 2598292
project:
- agc
challenge-area:
- agc
2 changes: 2 additions & 0 deletions _data/publications/2738557.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
inspire-id: 2738557
project:
- agc
challenge-area:
- agc
2 changes: 2 additions & 0 deletions _data/publications/2743013.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
inspire-id: 2743013
project:
- agc
challenge-area:
- agc
2 changes: 2 additions & 0 deletions _data/publications/2743608.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
inspire-id: 2743608
project:
- agc
challenge-area:
- agc
2 changes: 2 additions & 0 deletions _data/publications/oshadura-alheld-agc-acat2022.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ focus-area:
- doma
- as
project: agc
challenge-area:
- agc
1 change: 0 additions & 1 deletion _layouts/challenge-area.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ <h2 class="alt-h2 text-center mb-3 mt-lg-6" id="join-us">Join us</h2>
</div>
</div>
</section>

</main>
</div>
{% include_cached footer.html %}
Expand Down
2 changes: 2 additions & 0 deletions _layouts/presentations.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
Presentations:
<a href="/presentations/byarea.html">by area</a>
&#8226;
<a href="/presentations/bychallenge.html">by area</a>
&#8226;
<a href="/presentations/byinstitution.html">by institution</a>
&#8226;
<a href="/presentations/bymonth.html">by date</a>
Expand Down
1 change: 1 addition & 0 deletions _scripts/get_pub.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def summarize_record(recid : int, *, max_authors : int = 5):

mini_dict.update({
'focus-area': '<FILL IN>',
'challenge-area': '<FILL IN>',
'project': '<FILL IN>',
})

Expand Down
15 changes: 15 additions & 0 deletions _scripts/publication.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
"focus-area": {
"$ref": "#/definitions/focus_areas"
},
"challenge-area": {
"$ref": "#/definitions/challenge_areas"
},
"title": { "type": "string" },
"date": { "type": "string", "format": "date" },
"citation": { "type": "string" },
Expand Down Expand Up @@ -50,6 +53,18 @@
{ "type": "array", "items": { "$ref": "#/definitions/focus_area" } }
]
},
"challenge_area": {
"enum": [
"agc"
]
},
"challenge_areas": {
"oneOf": [
{ "type": "null" },
{ "$ref": "#/definitions/challenge_area" },
{ "type": "array", "items": { "$ref": "#/definitions/challenge_area" } }
]
},
"string_or_array": {
"oneOf": [
{ "type": "null" },
Expand Down
48 changes: 48 additions & 0 deletions pages/presentations/bychallenge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
permalink: /presentations/bychallenge.html
layout: presentations
title: Presentations by Challenge
---

{% assign sorted_presentations = site.data['sorted_presentations'] %}

<!--
0 1 2 3 4 5 6 7 8
date | name | title | url | meeting | meetingurl | project | challenge_area | institution
-->

<h2>Presentations by the IRIS-HEP team</h2>
{% assign prescount = 0 %}

{% assign activities = site.pages | where: "layout", "challenge-area" | where_exp: "item", "item.draft != true" | sort_natural: 'title' %}

{% for challenge-area-page in activities %}
{% assign challenge-area-title = challenge-area-page.title %}
{% assign challenge-area-name = challenge-area-page.name | basename %}
<h4>{{ challenge-area-title }}</h4>
<ul>
{% for talk in sorted_presentations %}
{% if talk.challenge-area contains challenge-area-name %}
<li>
{%- include print_pres.html talk=talk -%}
</li>
{% assign prescount = prescount | plus: "1" %}
{% endif %}
{% endfor %}
</ul>
{% endfor %}


<h4>General</h4>
<ul>
{% for talk in sorted_presentations %}
{% if talk.challenge-area == nil %}
<li>
{%- include print_pres.html talk=talk -%}
</li>
{% assign prescount = prescount | plus: "1" %}
{% endif %}
{% endfor %}
</ul>

Total presentations (presentations spanning multiple areas listed multiple times): {{ prescount }}.

0 comments on commit fbab8ae

Please sign in to comment.