s
This commit is contained in:
parent
5499904cef
commit
1c01b29be7
31 changed files with 1725 additions and 53 deletions
|
|
@ -1,5 +1,13 @@
|
|||
import { apiRequest } from "@/lib/api/client";
|
||||
|
||||
export interface DisplayIdentifier {
|
||||
kind: string;
|
||||
value: string;
|
||||
label: string;
|
||||
url: string | null;
|
||||
confidence_score: number;
|
||||
}
|
||||
|
||||
export interface AdminDbIntegrityCheck {
|
||||
name: string;
|
||||
count: number;
|
||||
|
|
@ -34,6 +42,7 @@ export interface AdminPdfQueueItem {
|
|||
publication_id: number;
|
||||
title: string;
|
||||
doi: string | null;
|
||||
display_identifier: DisplayIdentifier | null;
|
||||
pdf_url: string | null;
|
||||
status: string;
|
||||
attempt_count: number;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,14 @@ import { apiRequest } from "@/lib/api/client";
|
|||
|
||||
export type PublicationMode = "all" | "unread" | "latest";
|
||||
|
||||
export interface DisplayIdentifier {
|
||||
kind: string;
|
||||
value: string;
|
||||
label: string;
|
||||
url: string | null;
|
||||
confidence_score: number;
|
||||
}
|
||||
|
||||
export interface PublicationItem {
|
||||
publication_id: number;
|
||||
scholar_profile_id: number;
|
||||
|
|
@ -12,6 +20,7 @@ export interface PublicationItem {
|
|||
venue_text: string | null;
|
||||
pub_url: string | null;
|
||||
doi: string | null;
|
||||
display_identifier: DisplayIdentifier | null;
|
||||
pdf_url: string | null;
|
||||
pdf_status: "untracked" | "queued" | "running" | "resolved" | "failed";
|
||||
pdf_attempt_count: number;
|
||||
|
|
|
|||
|
|
@ -748,8 +748,14 @@ watch(
|
|||
<td>
|
||||
<div class="grid gap-1">
|
||||
<span class="font-medium text-ink-primary">{{ item.title }}</span>
|
||||
<a v-if="item.doi" :href="`https://doi.org/${item.doi}`" target="_blank" rel="noreferrer" class="link-inline text-xs">
|
||||
DOI: {{ item.doi }}
|
||||
<a
|
||||
v-if="item.display_identifier?.url"
|
||||
:href="item.display_identifier.url"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
class="link-inline text-xs"
|
||||
>
|
||||
{{ item.display_identifier.label }}
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue