Skip to content

Commit

Permalink
metadata enrichment
Browse files Browse the repository at this point in the history
  • Loading branch information
krono committed Mar 6, 2024
1 parent 1b16204 commit 30290a8
Show file tree
Hide file tree
Showing 10 changed files with 73 additions and 36 deletions.
3 changes: 3 additions & 0 deletions 2024/8/10/index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ date: "2024-02-15"
authors:
- name: "Shimchenko, Marina"
affiliation: "Uppsala University, Sweden"
id: "0000-0002-0701-8540"

- name: "Österlund, Erik"
affiliation: "Oracle, Sweden"
id: "0000-0003-3686-8568"

- name: "Wrigstad, Tobias"
affiliation: "Uppsala University, Sweden"
id: "0000-0002-4269-5408"

arxiv: "2403.02200"
file: "https://arxiv.org/pdf/2403.02200.pdf"
Expand Down
3 changes: 3 additions & 0 deletions 2024/8/11/index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ date: "2024-02-15"
authors:
- name: "Oeyen, Bjarno"
affiliation: "Vrije Universiteit Brussel, Belgium"
id: "0000-0002-2100-4559"

- name: "De Koster, Joeri"
affiliation: "Vrije Universiteit Brussel, Belgium"
id: "0000-0002-2932-8208"

- name: "De Meuter, Wolfgang"
affiliation: "Vrije Universiteit Brussel, Belgium"
id: "0000-0002-5229-5627"

arxiv: "2403.02296"
file: "https://arxiv.org/pdf/2403.02296.pdf"
Expand Down
4 changes: 4 additions & 0 deletions 2024/8/12/index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,19 @@ date: "2024-02-15"
authors:
- name: "Greenman, Ben"
affiliation: "Brown University, USA / University of Utah, USA"
id: "0000-0001-7078-9287"

- name: "Jeffrey, Alan"
affiliation: "Roblox, USA"
id: "0000-0001-6342-0318"

- name: "Krishnamurthi, Shriram"
affiliation: "Brown University, USA"
id: "0000-0001-5184-1975"

- name: "Shah, Mitesh"
affiliation: "Roblox, USA"
id: "0009-0000-6084-123X"

arxiv: "2403.02409"
file: "https://arxiv.org/pdf/2403.02409.pdf"
Expand Down
5 changes: 5 additions & 0 deletions 2024/8/13/index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,23 @@ date: "2024-02-15"
authors:
- name: "Rein, Patrick"
affiliation: "Hasso Plattner Institute - University of Potsdam, Germany"
id: "0000-0001-9454-8381"

- name: "Flach, Christian"
affiliation: "Hasso Plattner Institute - University of Potsdam, Germany"
id: "0000-0003-0549-5084"

- name: "Ramson, Stefan"
affiliation: "Hasso Plattner Institute - University of Potsdam, Germany"
id: "0000-0002-0913-1264"

- name: "Krebs, Eva"
affiliation: "Hasso Plattner Institute - University of Potsdam, Germany"
id: "0000-0002-9089-7784"

- name: "Hirschfeld, Robert"
affiliation: "Hasso Plattner Institute - University of Potsdam, Germany"
id: "0000-0002-4249-6003"

arxiv: "2403.02428"
file: "https://arxiv.org/pdf/2403.02428.pdf"
Expand Down
2 changes: 2 additions & 0 deletions 2024/8/14/index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ date: "2024-02-15"
authors:
- name: "Åkerblom, Beatrice"
affiliation: "Stockholm University, Sweden"
id: "0009-0005-2855-136X"

- name: "Castegren, Elias"
affiliation: "Uppsala University, Sweden"
id: "0000-0003-4918-6582"

arxiv: "2403.02416"
file: "https://arxiv.org/pdf/2403.02416.pdf"
Expand Down
3 changes: 3 additions & 0 deletions 2024/8/15/index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ date: "2024-02-15"
authors:
- name: "Hideshima, Takato"
affiliation: "University of Tokyo, Japan"
id: "0009-0001-8078-3898"

- name: "Sato, Shigeyuki"
affiliation: "University of Electro-Communications, Japan"
id: "0000-0002-1496-1422"

- name: "Ugawa, Tomoharu"
affiliation: "University of Tokyo, Japan"
id: "0000-0002-3849-8639"

arxiv: "2403.02183"
file: "https://arxiv.org/pdf/2403.02183.pdf"
Expand Down
3 changes: 3 additions & 0 deletions 2024/8/16/index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ date: "2024-02-15"
authors:
- name: "Döderlein, Jean-Baptiste"
affiliation: "ENS Rennes, France"
id: "0000-0002-9741-8571"

- name: "Rozen, Riemer van"
affiliation: "CWI, Netherlands"
id: "0000-0002-3834-682X"

- name: "Storm, Tijs van der"
affiliation: "CWI, Netherlands / University of Groningen, Netherlands"
id: "0000-0001-8853-7934"

arxiv: "2403.02161"
file: "https://arxiv.org/pdf/2403.02161.pdf"
Expand Down
2 changes: 2 additions & 0 deletions 2024/8/9/index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ date: "2024-02-15"
authors:
- name: "Liell-Cock, Jack"
affiliation: "University of Oxford, United Kingdom"
id: "0009-0005-7121-8095"

- name: "Schrijvers, Tom"
affiliation: "KU Leuven, Belgium"
id: "0000-0001-8771-5559"

arxiv: "2403.02296"
file: "https://arxiv.org/pdf/2403.02296.pdf"
Expand Down
3 changes: 2 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ description: The Art, Science, and Engineering of Programming journal is a
the art of programming, broadly construed.

author:
name: The editors of The Art, Science, and Engineering of Programming
name: The editors of The Art, Science, and Engineering of Programming
email: [email protected]

logo: /assets/images/favicon.svg
menu_categories: ["The Journal", "For Authors", "Issues"]

#baseurl: /
Expand Down
81 changes: 46 additions & 35 deletions _includes/article_metadata.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,52 +7,72 @@
{%- assign description = page.description | default: page.excerpt | default: site.description -%}
{%- assign description = description | markdownify | strip_html | normalize_whitespace | escape_once -%}
{%- assign description_short = description | markdownify | strip_html | normalize_whitespace | escape_once | truncate: 140 -%}
{%- if site.logo -%}
{%- assign site_logo = site.logo -%}
{%- unless site_logo contains "://" -%}
{%- assign site_logo = site_logo | absolute_url -%}
{%- endunless -%}
{%- assign site_logo = site_logo | escape -%}
{%- endif -%}
{%- if page.image -%}
{%- assign page_image = page.image.path | default: page.image.facebook | default: page.image -%}
{%- unless page_image contains "://" -%}
{%- assign page_image = page_image | absolute_url -%}
{%- endunless -%}
{%- assign page_image = page_image | escape -%}
{%- endif -%}
{%- capture page_start -%}{{ page.number }}:1{%- endcapture -%}
{%- capture page_end -%}{{ page.number }}:{{ page.numpages }}{%- endcapture -%}
{%- capture resolver -%}https://doi.org/{{ page.doi }}{%- endcapture -%}
{%- capture authornames -%}{{ page.authors | map: "name" | array_to_sentence_string | xml_escape }}{%- endcapture -%}
<script type="application/ld+json">
{"@context": { "@version": 1.1, "@vocab": "https://schema.org/"} ,
{"@context": { "@version": 1.1, "@vocab": "https://schema.org/", "@base": {{ page.url | replace:'/index.html','/' | absolute_url | jsonify }}} ,
"@graph": [
{
"@id": "_:#issue",
"@id": "#issue",
"@type": "PublicationIssue",
"issueNumber": {{ page.issue | jsonify}},
"isPartOf": {
"@id": "_:#periodical",
"@id": "#periodical",
"@type": ["PublicationVolume", "Periodical"],
"name": {{ site.title | jsonify }},
"issn": {{ site.issn | jsonify }},
"volumeNumber": {{ page.volume | jsonify }} } },
{
"@type": "ScholarlyArticle",
"isPartOf": "_:#issue",
"isPartOf": "#issue",
"name": {{ page_title | jsonify }},
"headline": {{ page_title | jsonify }},
"datePublished": {{ page.date | date_to_xmlschema | jsonify }},
"description": {{ description | jsonify }},
"pageStart": {{ page_start | jsonify }},
"pageEnd": {{ page_end | jsonify }},
"sameAs": {{ resolver | jsonify }},
{%- assign authors = page.authors -%}
"author": [{ "@type": "Person", "name": {{ authors[0].name |jsonify }}{%- if authors[0].affiliation -%},"affiliation": {{ authors[0].affiliation |jsonify }}{%- endif -%} }
{%- for author in authors offset: 1 -%},{ "@type": "Person", "name": {{ author.name |jsonify }}{%- if author.affiliation -%},"affiliation": {{ author.affiliation |jsonify }}{%- endif -%} } {%- endfor -%}
{%- assign authors = page.authors %}
"author": [{ "@type": "Person", "name": {{ authors[0].name |jsonify }}
{%- if authors[0].affiliation -%},"affiliation": {{ authors[0].affiliation |jsonify }}{%- endif -%}
{%- if authors[0].id -%}
{%- capture orcid -%}https://orcid.org/{{ authors[0].id }}{%- endcapture -%}
,"@id": {{ orcid |jsonify }}, "url": {{ orcid |jsonify }}
{%- endif -%}}
{%- for author in authors offset: 1 -%},
{ "@type": "Person", "name": {{ author.name |jsonify }}
{%- if author.affiliation -%},"affiliation": {{ author.affiliation |jsonify }}{%- endif -%}
{%- if author.id -%}
{%- capture orcid -%}https://orcid.org/{{ author.id }}{%- endcapture -%}
,"@id": {{ orcid |jsonify }}, "url": {{ orcid |jsonify }}
{%- endif -%}} }
{%- endfor -%}
],
{%- if page_image -%}
"image": {
"@type": "ImageObject",
"url": {{ page_image | jsonify }}
},
{%- else -%}
"image": { "@type": "ImageObject", "height":1, "width": 1, "url": "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" },
{%- endif -%}
{%- if site_logo -%}
"image": { "@type": "ImageObject", "url": {{ page_image | default: site_logo |default: "//:0" | jsonify }}},
{%- if site_logo %}
"publisher": {
"@type": "Organization",
"logo": { "@type": "ImageObject", "url": {{ site_logo | jsonify }} }
},
{%- endif -%}
"url": {{ page.url | replace:'/index.html','/' | absolute_url | jsonify }} }]}</script>
{%- endif %}
"url": {{ page.url | replace:'/index.html','/' | absolute_url | jsonify }} }]}
</script>
<meta name="citation_title" content="{{ page.title | xml_escape}}">
{%- for author in page.authors -%}
<meta name="citation_author" content="{{ author.name | xml_escape }}">
Expand All @@ -61,6 +81,7 @@
{%- endif -%}
{%- endfor -%}
<meta name="citation_language" content="en">
<meta name="citation_type" content="JOUR">
<meta name="citation_publication_date" content="{{ page.date | date: "%Y/%m/%d" }}">
<meta name="citation_online_date" content="{{ page.date | date: "%Y/%m/%d" }}">
<meta name="citation_date" content="{{ page.date | date: "%Y/%m/%d" }}">
Expand All @@ -71,7 +92,9 @@
<meta name="citation_firstpage" content="{{ page_start }}">
<meta name="citation_lastpage" content="{{ page_end }}">
<meta name="citation_doi" content="{{ page.doi | xml_escape }}">
<meta name="dc.identifier" content="{{ page.doi | xml_escape }}">
<meta name="citation_abstract_html_url" content="{{ page.url | absolute_url | xml_escape}}">
<meta name="citation_publisher" content="AOSA, Inc.">
{%- if page.file and page.file != empty -%}
{%- if page.file contains "://" -%}
<meta name="citation_pdf_url" content="{{ page.file | xml_escape }}">
Expand All @@ -80,22 +103,8 @@
<meta name="citation_pdf_url" content="{{ file | absolute_url | xml_escape }}">
{%- endif -%}
{%- endif -%}

{%- if site.logo -%}
{%- assign site_logo = site.logo -%}
{%- unless site_logo contains "://" -%}
{%- assign site_logo = site_logo | absolute_url -%}
{%- endunless -%}
{%- assign site_logo = site_logo | escape -%}
{%- endif -%}

{%- if page.image -%}
{%- assign page_image = page.image.path | default: page.image.facebook | default: page.image -%}
{%- unless page_image contains "://" -%}
{%- assign page_image = page_image | absolute_url -%}
{%- endunless -%}
{%- assign page_image = page_image | escape -%}
{%- endif -%}
<meta name="citation_journal_abbrev" content="Programming">
<meta name="citation_journal_title" content="The Art, Science, and Engineering of Programmging">
<title>{{ title }}</title>
<meta property="og:type" content="article" />
<meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}" />
Expand All @@ -114,8 +123,10 @@
{%- if page.image.width -%}
<meta property="og:image:width" content="{{ page.image.width }}" />
{%- endif -%}
{%- elsif site_logo -%}
<meta property="og:image" content="{{site_logo | relative_url }}" />
{%- else -%}
<meta property="og:image" content="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" />
<meta property="og:image" content="//:0" />
{%- endif -%}
<meta name="author" content="{{ authornames }}" />

Expand Down

0 comments on commit 30290a8

Please sign in to comment.