Skip to content
Snippets Groups Projects
Commit 7dd9344f authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

add a Ref component

parent 6a2822de
No related branches found
No related tags found
1 merge request!22Resolve "footnote markdown"
Pipeline #113453 failed
This commit is part of merge request !22. Comments created here will be created in the context of that merge request.
...@@ -28,6 +28,7 @@ const articleAbstract = computed(() => { ...@@ -28,6 +28,7 @@ const articleAbstract = computed(() => {
<template> <template>
<v-list-item <v-list-item
:href="article?.href" :href="article?.href"
:id="props.doi"
:target="article?.target" :target="article?.target"
density="compact" density="compact"
class="px-1" class="px-1"
......
<script setup lang="ts">
export interface Props {
doi: string;
}
const props = withDefaults(defineProps<Props>(), {});
const { article } = useFetchArticle(props.doi);
</script>
<template>
<v-chip variant="text" :href="`#${props.doi}`" class="pa-0 text-caption font-italic">({{ article?.author[0]?.family ?? 'test' }} et al, {{
article.year
}})</v-chip>
</template>
\ No newline at end of file
...@@ -25,6 +25,7 @@ export interface Article { ...@@ -25,6 +25,7 @@ export interface Article {
DOI: string DOI: string
title: string title: string
subtitle: string subtitle: string
author: Array<{ family: string; given: string }>
containerTitle: string containerTitle: string
abstract: string abstract: string
year: string year: string
...@@ -74,6 +75,7 @@ export function useFetchArticle(doi: string) { ...@@ -74,6 +75,7 @@ export function useFetchArticle(doi: string) {
DOI, DOI,
title: sanitizedTitle, title: sanitizedTitle,
subtitle: toAuthorsString(author || []), subtitle: toAuthorsString(author || []),
author,
containerTitle: sanitizedContainerTitle, containerTitle: sanitizedContainerTitle,
abstract: sanitizedAbstract, abstract: sanitizedAbstract,
year: published?.["date-parts"][0][0] ?? issued?.["date-parts"][0][0] ?? '', year: published?.["date-parts"][0][0] ?? issued?.["date-parts"][0][0] ?? '',
...@@ -89,7 +91,6 @@ export function useFetchArticle(doi: string) { ...@@ -89,7 +91,6 @@ export function useFetchArticle(doi: string) {
if (store.articles.size === 0) { if (store.articles.size === 0) {
const localArticles = await queryContent('/_partials/_articles').where({ _partial: true }).findOne() const localArticles = await queryContent('/_partials/_articles').where({ _partial: true }).findOne()
console.log(localArticles)
if (localArticles?.articles && store.articles.size <= 0) { if (localArticles?.articles && store.articles.size <= 0) {
for (const article of localArticles.articles) { for (const article of localArticles.articles) {
store.add(article) store.add(article)
......
...@@ -11,7 +11,7 @@ tableColumns: ...@@ -11,7 +11,7 @@ tableColumns:
PFAM: PF00078, PF18160, PF18732 PFAM: PF00078, PF18160, PF18732
--- ---
# AbiA # AbiA
The AbiA system have been describe in a total of 2 subsystems. The AbiA system have been describe in a total of 2 subsystems.
Here is some example found in the RefSeq database: Here is some example found in the RefSeq database:
...@@ -24,9 +24,11 @@ AbiA_large subsystem in the genome of *Lactobacillus amylovorus* (GCF_002706375. ...@@ -24,9 +24,11 @@ AbiA_large subsystem in the genome of *Lactobacillus amylovorus* (GCF_002706375.
AbiA_small subsystem in the genome of *Mesobacillus foraminis* (GCF_003667765.1) is composed of 2 proteins: AbiA_small (WP_121614402.1)and, AbiA_SLATT (WP_121614403.1). AbiA_small subsystem in the genome of *Mesobacillus foraminis* (GCF_003667765.1) is composed of 2 proteins: AbiA_small (WP_121614402.1)and, AbiA_SLATT (WP_121614403.1).
## Distribution of the system among prokaryotes ## Distribution of the system among prokaryotes
The AbiA system is present in a total of 35 different species :ref{doi=10.1023/A:1002027321171}.
The AbiA system is present in a total of 35 different species.
Among the 22k complete genomes of RefSeq, this system is present in 50 genomes (0.2 %). Among the 22k complete genomes of RefSeq, this system is present in 50 genomes (0.2 %).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment