Skip to content

Commit

Permalink
update title for pubs page
Browse files Browse the repository at this point in the history
  • Loading branch information
glass-ships committed Sep 16, 2023
1 parent 4fc0567 commit 0554e6b
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions frontend/src/pages/about/PagePublications.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@

<template>
<AppSection>
<AppHeading>Publications</AppHeading>
<AppHeading>Monarch-Related Publications</AppHeading>

<Apex
class="chart"
type="bar"
:options="options"
:series="[citesPerYear]"
height="300px"
/>
<p class="metadata">
This list includes papers by the Monarch Team that were foundational to the current Monarch work. The graph below shows the number of citations to Monarch papers over time.
</p>

<Apex class="chart" type="bar" :options="options" :series="[citesPerYear]" height="300px" />

<AppGallery>
<p v-for="(item, index) in metadata" :key="index" class="metadata">
Expand All @@ -29,22 +27,15 @@
<AppHeading>Years</AppHeading>
<!-- row of links to year sections -->
<p>
<template
v-for="(group, index) in publications.publications"
:key="index"
>
<template v-for="(group, index) in publications.publications" :key="index">
<AppLink :to="'#' + group.year">{{ group.year }}</AppLink>
<span v-if="index !== publications.publications.length - 1"> · </span>
</template>
</p>
</AppSection>

<!-- by year -->
<AppSection
v-for="(group, index) in publications.publications"
:key="index"
width="big"
>
<AppSection v-for="(group, index) in publications.publications" :key="index" width="big">
<AppHeading>{{ group.year }}</AppHeading>
<AppGallery>
<AppCitation
Expand All @@ -69,15 +60,13 @@ import publications from "./publications.json";
/** data for chart */
const citesPerYear = {
name: "citations",
data: Object.entries(publications.metadata.cites_per_year).map(
([year, count]) => ({ x: year, y: count }),
),
data: Object.entries(publications.metadata.cites_per_year).map(([year, count]) => ({ x: year, y: count })),
};

/** extra metadata fields */
const metadata: {
name: string;
key: keyof (typeof publications)["metadata"];
key: keyof typeof publications["metadata"];
}[] = [
{ name: "Total publications", key: "num_publications" },
{ name: "Total citations", key: "total" },
Expand Down

0 comments on commit 0554e6b

Please sign in to comment.