This commit is contained in:
Justin Visser 2026-02-22 16:23:35 +01:00
parent 5499904cef
commit 1c01b29be7
31 changed files with 1725 additions and 53 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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>