From f5368f3c93028d6d4bfe9cb7b4c70f8954579ff0 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Thu, 25 May 2023 22:49:39 +0200
Subject: [PATCH] Add the new release paper to the 'Publications' page

---
 query.py            | 5 ++++-
 templates/pubs.html | 4 ++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/query.py b/query.py
index a107ab1..ea6490f 100644
--- a/query.py
+++ b/query.py
@@ -4,12 +4,15 @@ import sys
 
 # Query papers citing the two SWIFT ADS entries
 query = ADSQueryWrapper(sys.argv[1])
-query_data = query.get("citations(2016pasc.conf....2S) or citations(2018ascl.soft05020S)", fl="title,bibcode,first_author_norm,date,year,author_count,bibstem,abstract,volume,issue,page,citation_count", rows=1000)
+query_data = query.get("citations(2016pasc.conf....2S) or citations(2018ascl.soft05020S) or citations(2023arXiv230513380S)", fl="title,bibcode,first_author_norm,date,year,author_count,bibstem,abstract,volume,issue,page,citation_count", rows=1000)
 paper_list = query_data.papers
 total_citations = 0
 
 # Process the data to make the title a string and not an array of strings
 for paper in paper_list:
+    if paper.bibcode == "2023arXiv230513380S":
+        continue
+
     paper.title = paper.title[0]
     paper.bibstem = paper.bibstem[0]
     if hasattr(paper, "page"):
diff --git a/templates/pubs.html b/templates/pubs.html
index bed2f13..d1d9ffb 100644
--- a/templates/pubs.html
+++ b/templates/pubs.html
@@ -14,6 +14,10 @@
       </div>
       <div class="card-text">
 
+	<h4><a href="https://ui.adsabs.harvard.edu/abs/2023arXiv230513380S/abstract">SWIFT: A modern highly-parallel gravity and smoothed particle hydrodynamics
+	    solver for astrophysical and cosmological applications</a> </h4>
+	<p>&emsp;  Schaller M. et al., <i>arXiv</i>, 2023, 2305.13380
+
 	<h4><a href="https://ui.adsabs.harvard.edu/abs/2016pasc.conf....2S/abstract">SWIFT: Using Task-Based Parallelism, Fully Asynchronous Communication, and Graph Partition-Based Domain
 	Decomposition for Strong Scaling on more than 100,000 Cores </a> </h4>
 	<p>&emsp;  Schaller M. et al., <i>PASC</i>, 2016, vol. 1
-- 
GitLab