diff --git a/query.py b/query.py index 92a2f90fe1d9332a4b1d57f919ea81af30eb8e64..84ee02f1228687939521d866fc29317e03f67c92 100644 --- a/query.py +++ b/query.py @@ -9,6 +9,12 @@ query_data = query.get("citations(2016pasc.conf....2S) or citations(2018ascl.sof paper_list = list(query_data.papers) total_citations = 0 +query_data = query.get("citations(2016pasc.conf....2S)", fl="bibcode", rows=1000) +citations_pasc = len(list(query_data.papers)) + +query_data = query.get("citations(2018ascl.soft05020S)", fl="bibcode", rows=1000) +citations_ascl = len(list(query_data.papers)) + # Process the data to make the title a string and not an array of strings for paper in paper_list: if paper.bibcode == "2023arXiv230513380S": @@ -18,6 +24,10 @@ for paper in paper_list: if len(paper.title) == 1: paper.title = paper.title[0] paper.bibstem = paper.bibstem[0] + if str(paper.issue) == 'nan': + delattr(paper, "issue") + if str(paper.volume) == 'nan': + delattr(paper, "volume") if hasattr(paper, "page") and "PhDT" not in paper.bibcode: if not isinstance(paper.page, float): paper.page = paper.page[0] @@ -32,6 +42,8 @@ paper_list.remove(to_remove) my_list = dict({"num_papers": query_data.num_found - 1, "total_citations": total_citations, "citations_release": citations_release, + "citations_pasc": citations_pasc, + "citations_ascl": citations_ascl, "cards": paper_list}) # Silence the yaml object naming diff --git a/templates/pubs.html b/templates/pubs.html index 79002eeca98b9de0d2c89aa99590d163cc8619dc..0acf7d71aa7106bdeb3505249a7b402b2df4258d 100644 --- a/templates/pubs.html +++ b/templates/pubs.html @@ -16,12 +16,15 @@ <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>  Schaller M. et al., <i>arXiv</i>, 2023, 2305.13380   (citations: {{ citations_release }}) + <p>  Schaller M. et al., <i>MNRAS</i>, 2024   (citations: {{ citations_release }}) + <h4><a href="https://ui.adsabs.harvard.edu/abs/2016pasc.conf....2S/abstract">SWIFT: SPH With Inter-dependent Fine-grained Tasking </a> </h4> + <p>  Schaller M. et al., <i>Astrophysics Source Code Library</i>, 2018, <a href="https://ascl.net/1805.020">record ascl:1805.020</a>   (citations: {{ citations_ascl }}) + <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>  Schaller M. et al., <i>PASC</i>, 2016, vol. 1 - + <p>  Schaller M. et al., <i>PASC</i>, 2016, vol. 1   (citations: {{ citations_pasc }}) + </div> <br/> @@ -50,7 +53,7 @@ {% if card.bibstem != "arXiv" %} {% if card.volume %} , vol. {{ card.volume }} - {% if card.issue %} + {% if card.issue and card.issue != nan %} , issue {{ card.issue }} {% endif %} {% endif %}