diff --git a/components/evidence-libraries/configuration/sections/docid-account.tsx b/components/evidence-libraries/configuration/sections/docid-account.tsx index ede9ebd17..377c5ebb8 100644 --- a/components/evidence-libraries/configuration/sections/docid-account.tsx +++ b/components/evidence-libraries/configuration/sections/docid-account.tsx @@ -2,59 +2,27 @@ // The DOCiD account Openscholar Reports registers with (plans/identifier-services), beside Zenodo and Crossref in // the publishing settings. DOCiD has no test service: every DOCiD is a real, permanent Handle, so there is only the -// real account. Its lists come from DOCiD when the account is verified and saved; until then the pickers say so. +// real account. What DOCiD files each report as is mapped from the report, by name, against the lists DOCiD gives the +// account when it is verified and saved. import { useTranslations } from "next-intl"; import { Input } from "@/components/ui/input"; import { Switch } from "@/components/ui/switch"; -import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; -import { TooltipHint } from "@/components/ui/tooltip"; -import { Lock, TriangleAlert } from "@/components/icons"; +import { docidResourceType } from "@opendeved/doi-sync-core/docid"; +import { TriangleAlert } from "@/components/icons"; import type { PublicationSettings } from "@/convex/evidenceLibraries/publicationValidators"; import { Field } from "../section-card"; import { FieldGroup } from "../fields"; type Docid = NonNullable; -type Option = { id: number; name: string }; export const NO_DOCID: Docid = { mode: "off", email: "" }; -function Pick({ label, hint, value, options, onChange }: { label: string; hint?: string; value: number | undefined; options: Option[] | undefined; onChange: (id: number) => void }) { - const t = useTranslations("publicationSettings"); - return ( - - {(id) => - options ? ( - - ) : ( - // No lists until the account is verified: drawn as the app draws what can't be used yet, saying why. - - - - {t("docidChoose")} - - - ) - } - - ); -} - export function DocidAccount({ docid = NO_DOCID, onChange, password, onPassword, stored }: { docid: Docid | undefined; onChange: (next: Docid) => void; password: string; onPassword: (value: string) => void; /** A password is kept from an earlier save. */ stored: boolean }) { const t = useTranslations("publicationSettings"); const on = docid.mode === "custom"; const update = (patch: Partial) => onChange({ ...docid, ...patch }); - const allowsNone = docid.options && !docid.options.resourceTypes.length; + // Verified, and DOCiD doesn't let the account file reports under the resource type they map to. + const cantFile = docid.options && !docidResourceType("Report", docid.options.resourceTypes); return ( } @@ -70,11 +38,8 @@ export function DocidAccount({ docid = NO_DOCID, onChange, password, onPassword,
{(id) => update({ email: e.target.value })} />} {(id) => onPassword(e.target.value)} />} - update({ resourceTypeId })} /> - update({ publicationTypeId })} /> - update({ funderTypeId })} />
- {allowsNone ? ( + {cantFile ? (

{t("docidNoResourceTypes")} diff --git a/components/reports/details-step.tsx b/components/reports/details-step.tsx index f867aa35b..433b9bc3d 100644 --- a/components/reports/details-step.tsx +++ b/components/reports/details-step.tsx @@ -26,6 +26,7 @@ import { Button } from "@/components/ui/button"; import { NextButton } from "@/components/reports/next-button"; import { Input } from "@/components/ui/input"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; +import { FUNDER_TYPES, type FunderType } from "@opendeved/doi-sync-core/docid"; import { Switch } from "@/components/ui/switch"; import { Textarea } from "@/components/ui/textarea"; import { TooltipHint } from "@/components/ui/tooltip"; @@ -404,8 +405,8 @@ export function DetailsStep({ }: { /** The report an abstract is written from, and the workspace its author asks from; none for a reviewer. Without it the form offers none. */ writing?: { key: string; workspaceId?: Id<"workspaces"> }; - /** The registrars the report is sent to, so each part's "?" leaves out one that isn't used. */ - registrars?: { crossref: boolean; zenodo: boolean }; + /** The registrars the report is sent to, so each part's "?" leaves out one that isn't used, and DOCiD's funder types show where it is one. */ + registrars?: { crossref: boolean; zenodo: boolean; docid?: boolean | undefined }; initial: Metadata; /** Given the details, and the `version` the form opened on. */ onRun: (m: Metadata, version: number | undefined) => Promise; @@ -810,7 +811,12 @@ export function DetailsStep({ set("countries", countries)} bypassLimit /> -

+
{t("funderType")} : undefined} + > set("funding", m.funding.filter((f) => next.includes(funderChip(f.funder))))} @@ -832,7 +838,7 @@ export function DetailsStep({ {funders.shown.map((f, at) => { const i = funders.offset + at; return ( -
  • +
  • {/* The full name shows on hover once the ROR mark beside it leaves too little room for it. */} @@ -849,6 +855,21 @@ export function DetailsStep({ label={t("addGrant", { name: f.funder.name })} mono /> + {/* Only DOCiD records what kind of funder it is: a grantor unless its author says otherwise. */} + {registrars?.docid ? ( + + ) : null}
  • ); })} diff --git a/components/reports/field-help.tsx b/components/reports/field-help.tsx index aac8aee7f..8129a4b26 100644 --- a/components/reports/field-help.tsx +++ b/components/reports/field-help.tsx @@ -60,33 +60,36 @@ type Help = { filled?: keyof typeof FILLED; entry?: keyof typeof ENTRY; sources?: readonly SourceKey[]; - /** Whether each registrar is sent it; a part that is never sent anywhere, such as a step, says neither. */ - sent?: { crossref: boolean; zenodo: boolean }; + /** Whether each registrar is sent it; a part that is never sent anywhere, such as a step, says neither. DOCiD is sent only what says so. */ + sent?: { crossref: boolean; zenodo: boolean; docid?: true }; }; const BOTH = { crossref: true, zenodo: true } as const; +/** Sent to all three: DOCiD takes a report's title, abstract, authors (with their ORCID iDs and affiliations), kind and funders. */ +const ALL = { crossref: true, zenodo: true, docid: true } as const; /** Each part's facts. Its title, what it is and its note are in messages/ under publishReports.help.parts. */ const HELP = { - title: { filled: "pdf", entry: "typed", sent: BOTH }, + title: { filled: "pdf", entry: "typed", sent: ALL }, subtitle: { note: true, filled: "pdf", entry: "typed", sent: BOTH }, - type: { note: true, filled: "pdf", entry: "list", sources: ["openalexWorkTypes", "zenodoTypes", "crossrefReports"], sent: { crossref: false, zenodo: true } }, + type: { note: true, filled: "pdf", entry: "list", sources: ["openalexWorkTypes", "zenodoTypes", "crossrefReports"], sent: { crossref: false, zenodo: true, docid: true } }, language: { filled: "pdf", entry: "list", sources: ["iso639"], sent: BOTH }, date: { note: true, filled: "pdf", entry: "typed", sent: BOTH }, licence: { sources: ["ccLicences"], sent: BOTH }, - authors: { note: true, filled: "pdf", entry: "typed", sources: ["crossrefContributors"], sent: BOTH }, - name: { note: true, filled: "pdf", entry: "typed", sent: BOTH }, + authors: { note: true, filled: "pdf", entry: "typed", sources: ["crossrefContributors"], sent: ALL }, + name: { note: true, filled: "pdf", entry: "typed", sent: ALL }, kind: { note: true, filled: "author", entry: "list", sources: ["crossrefRoles"], sent: BOTH }, - orcid: { note: true, filled: "matched", entry: "either", sources: ["orcid", "orcidRegister"], sent: BOTH }, - affiliations: { note: true, filled: "matched", entry: "either", sources: ["openalexInstitutions", "ror", "rorAdd"], sent: BOTH }, + orcid: { note: true, filled: "matched", entry: "either", sources: ["orcid", "orcidRegister"], sent: ALL }, + affiliations: { note: true, filled: "matched", entry: "either", sources: ["openalexInstitutions", "ror", "rorAdd"], sent: ALL }, contributions: { note: true, filled: "pdf", entry: "list", sources: ["credit"], sent: { crossref: true, zenodo: false } }, corresponding: { note: true, filled: "pdf", entry: "toggle", sources: ["crossrefRoles"], sent: BOTH }, - abstract: { note: true, filled: "pdf", entry: "typed", sources: ["crossrefAbstracts"], sent: BOTH }, + abstract: { note: true, filled: "pdf", entry: "typed", sources: ["crossrefAbstracts"], sent: ALL }, topics: { note: true, filled: "classified", entry: "list", sources: ["openalexTopics"], sent: { crossref: false, zenodo: true } }, keywords: { note: true, filled: "pdf", entry: "typed", sent: { crossref: false, zenodo: true } }, sdgs: { note: true, filled: "judged", entry: "list", sources: ["sdgs"], sent: { crossref: false, zenodo: true } }, design: { note: true, filled: "judged", entry: "list", sources: ["openalexDesigns"], sent: { crossref: false, zenodo: true } }, places: { filled: "judged", entry: "list", sources: ["iso3166"], sent: { crossref: false, zenodo: true } }, - funding: { note: true, filled: "matched", entry: "either", sources: ["openalexFunders", "rorFunders", "funderRegistry", "rorAdd"], sent: BOTH }, + funding: { note: true, filled: "matched", entry: "either", sources: ["openalexFunders", "rorFunders", "funderRegistry", "rorAdd"], sent: ALL }, + funderType: { note: true, entry: "list", sent: { crossref: false, zenodo: false, docid: true } }, references: { note: true, filled: "pdf", entry: "pasted", sources: ["doi", "crossrefReferences"], sent: BOTH }, links: { note: true, filled: "pdf", entry: "either", sources: ["crossrefRelations"], sent: BOTH }, agreement: { note: true, sources: ["ccLicences"] }, @@ -100,7 +103,7 @@ const HELP = { export type HelpKey = keyof typeof HELP; /** The registrars a report is sent to, as its series has them set: a "?" leaves out the one that isn't used. */ -const Registrars = createContext<{ crossref: boolean; zenodo: boolean }>(BOTH); +const Registrars = createContext<{ crossref: boolean; zenodo: boolean; docid?: boolean | undefined }>(BOTH); export const RegistrarsProvider = Registrars.Provider; const MARK: Record = { @@ -241,6 +244,11 @@ export function FieldHelp({ ) : null} + {registrars.docid ? ( + + + + ) : null} Openscholar diff --git a/convex/evidenceLibraries/publicationCredentialVerification.ts b/convex/evidenceLibraries/publicationCredentialVerification.ts index fb9d5f571..8fc52356e 100644 --- a/convex/evidenceLibraries/publicationCredentialVerification.ts +++ b/convex/evidenceLibraries/publicationCredentialVerification.ts @@ -172,14 +172,12 @@ const DOCID_ENDPOINT = "https://docid.africapidalliance.org"; export const docidClient = () => new DocidApiClient({ endpoint: DOCID_ENDPOINT, fetch: (url, init) => fetch(url, { ...init, headers: { ...init.headers, "User-Agent": userAgent }, signal: AbortSignal.timeout(20_000) }) }); -export type DocidOption = { id: number; name: string }; -export type DocidLists = { resourceTypes: DocidOption[]; publicationTypes: DocidOption[]; funderTypes: DocidOption[] }; /** * Signs in to DOCiD and reads the lists its deposits take ids from. The resource types are only the ones the account * may use: DOCiD filters them by its category, and an account it hasn't allowed any gets none. */ -export async function docidLists(email: string, password: string): Promise { +export async function docidLists(email: string, password: string) { const { token } = await docidClient().signIn({ email, password }); const read = async (list: string, name: string) => { const response = await fetch(`${DOCID_ENDPOINT}/api/v1/publications/get-list-${list}`, { headers: { Authorization: `Bearer ${token}`, Accept: "application/json", "User-Agent": userAgent }, signal: AbortSignal.timeout(20_000) }); @@ -275,15 +273,10 @@ export async function verifiedPublication( settings.crossref.mode === "sandbox", ); if (settings.docid?.mode === "custom") { - const { email, resourceTypeId, publicationTypeId, funderTypeId } = settings.docid; + const { email } = settings.docid; if (!email || !credentials.docidPassword) throw new Error("Give the email and password of the DOCiD account."); - // Signing in checks the account; each type picked must be one of DOCiD's own, and a resource type one it allows. - const lists = await docidLists(email, credentials.docidPassword); - const known = (id: number | undefined, options: DocidOption[]) => id === undefined || options.some((option) => option.id === id); - if (!known(resourceTypeId, lists.resourceTypes)) throw new Error("Your DOCiD account may not use this resource type. Pick one from the list."); - if (!known(publicationTypeId, lists.publicationTypes)) throw new Error("DOCiD has no such file type. Pick one from the list."); - if (!known(funderTypeId, lists.funderTypes)) throw new Error("DOCiD has no such funder type. Pick one from the list."); - settings.docid.options = lists; + // Signing in checks the account; its lists are kept, as each deposit finds its types in them. + settings.docid.options = await docidLists(email, credentials.docidPassword); } return { settings, credentials, custom }; } diff --git a/convex/evidenceLibraries/publicationValidators.ts b/convex/evidenceLibraries/publicationValidators.ts index 19670cc78..4e1adf787 100644 --- a/convex/evidenceLibraries/publicationValidators.ts +++ b/convex/evidenceLibraries/publicationValidators.ts @@ -34,16 +34,13 @@ export const publicationSettingsValidator = v.object({ /** * DOCiD, the Africa PID Alliance's Handles (plans/identifier-services): Openscholar Reports' account only, as * communities show the DOCiDs their records come with and never register one. It has no test service, so it is - * off or a real account. The type ids are DOCiD's own, read from its lists with the account. + * off or a real account. Its types are mapped from each report, by name, against DOCiD's lists. */ docid: v.optional( v.object({ mode: v.union(v.literal("off"), v.literal("custom")), email: v.string(), - resourceTypeId: v.optional(v.number()), - publicationTypeId: v.optional(v.number()), - funderTypeId: v.optional(v.number()), - /** DOCiD's lists as the account saw them when last verified, for the pickers; written by the server only. */ + /** DOCiD's lists as the account saw them when last verified, which deposits find their types in; written by the server only. */ options: v.optional( v.object({ resourceTypes: capped(v.array(v.object({ id: v.number(), name: v.string() })), DOCID_OPTIONS_MAX), diff --git a/convex/reports/identifiers.test.ts b/convex/reports/identifiers.test.ts index 64e815159..d473b2ba5 100644 --- a/convex/reports/identifiers.test.ts +++ b/convex/reports/identifiers.test.ts @@ -7,7 +7,7 @@ import { refused, row, setup, type World } from "./reports.test-support"; async function withDocid(world: World, identifiers: Identifiers) { await world.t.run(async (ctx) => { const settings = (await ctx.db.query("reportSettings").first())!; - await ctx.db.patch("reportSettings", settings._id, { identifiers, publication: { ...settings.publication, docid: { mode: "custom", email: "docid@test.local", resourceTypeId: 18, publicationTypeId: 5, funderTypeId: 1 } } }); + await ctx.db.patch("reportSettings", settings._id, { identifiers, publication: { ...settings.publication, docid: { mode: "custom", email: "docid@test.local", options: { resourceTypes: [{ id: 21, name: "Manuscripts" }], publicationTypes: [{ id: 5, name: "Monograph" }], funderTypes: [{ id: 1, name: "Grantor" }] } } } }); }); } diff --git a/convex/reports/registrar.ts b/convex/reports/registrar.ts index 49582fc6b..4c44eae1e 100644 --- a/convex/reports/registrar.ts +++ b/convex/reports/registrar.ts @@ -17,7 +17,7 @@ import { openAlexFetch } from "../../lib/openalex/fetch"; import { openAlexUrl } from "../../lib/openalex/request-url"; import type { Metadata } from "../../lib/reports/report"; import { openAlexKey, registrationRecord, rorKey, zenodoRecord, type RegistryIds } from "../../lib/reports/registration-record"; -import { fundrefOf } from "../../lib/people/identifiers"; +import { rorFacts } from "../../lib/people/identifiers"; /** * The key DOCiD knows a report's mint by: its key on this Openscholar, whose address names it, since shared dev and @@ -59,7 +59,7 @@ async function registryIds(m: Metadata): Promise { ]); // A funder only ROR knows: its Funder Registry ID, which ROR lists as "fundref" where Crossref has the funder. const onRor = [...new Set(m.funding.flatMap((f) => (!f.funder.id && f.funder.ror ? (rorKey(f.funder.ror) ?? []) : [])))]; - const rorFunders = Object.fromEntries((await Promise.all(onRor.map(async (ror) => [ror, await fundrefOf(ror).catch((error: unknown) => { throw new IdsUnread(`ROR couldn't say whether funder ${ror} is in the Funder Registry: ${String(error).slice(0, 200)}`); })] as const))).flatMap(([ror, fundref]) => (fundref ? [[ror, `10.13039/${fundref}`]] : []))); + const rorFunders = Object.fromEntries((await Promise.all(onRor.map(async (ror) => [ror, await rorFacts(ror).then((facts) => facts.fundref).catch((error: unknown) => { throw new IdsUnread(`ROR couldn't say whether funder ${ror} is in the Funder Registry: ${String(error).slice(0, 200)}`); })] as const))).flatMap(([ror, fundref]) => (fundref ? [[ror, `10.13039/${fundref}`]] : []))); return { rorFunders, funders: Object.fromEntries(funders.map((funder) => [openAlexKey(funder.id), { ...(funder.ids?.doi && { doi: funder.ids.doi }), ...(funder.ids?.ror && { ror: funder.ids.ror }) }])), @@ -222,8 +222,7 @@ export const register = internalAction({ // the DOI the report registered, each kept the moment DOCiD gives it, so a later try carries on and never // makes a second. A withdrawn report's record shows a retired page; a reinstated one is restored. const docid = job.publication.docid; - if (docid?.mode !== "custom" || !secrets.docidPassword) throw new Error("DOCiD isn't connected in the publishing settings."); - if (docid.resourceTypeId === undefined) throw new Error("Pick DOCiD's resource type in the publishing settings."); + if (docid?.mode !== "custom" || !secrets.docidPassword || !docid.options) throw new Error("DOCiD isn't connected in the publishing settings."); const client = docidClient(); const { token, userId } = await client.signIn({ email: docid.email, password: secrets.docidPassword }); const note = (kept: { docidHandle?: string; docidPublicationId?: number; docidRetired?: boolean; docidDepositTried?: boolean }) => ctx.runMutation(internal.reports.registration.noted, { reportId, rev, ...kept }); @@ -249,7 +248,6 @@ export const register = internalAction({ if (!(await settle(provider, { outcome: "done" }))) return null; continue; } - const authors = record.creators.filter((creator) => creator.creatorType === "author"); // DOCiD answers a repeated key with the Handle it already minted, so a try that lost its answer mints none. let handle = held.handle; if (!handle) { @@ -260,15 +258,19 @@ export const register = internalAction({ await note({ docidDepositTried: true }); const openFile = !record.fileAccess && job.pdf ? await ctx.storage.get(job.pdf.file) : null; const poster = job.cover ? await ctx.storage.get(job.cover) : null; + // DOCiD keeps each organisation's type, as ROR gives it; one ROR can't say goes without. + const rors = [...new Set(record.creators.flatMap((creator) => (creator.type === "personal" ? (creator.affiliations?.flatMap((affiliation) => affiliation.ror ?? []) ?? []) : [])))]; + const organizationTypes = Object.fromEntries((await Promise.all(rors.map(async (ror) => [ror, (await rorFacts(ror).catch(() => null))?.type] as const))).flatMap(([ror, type]) => (type ? [[ror, type]] : []))); + const { doi: _, ...sent } = zenodoRecord(record, job.metadata); const deposited = await client.deposit({ token, + // The record Crossref and Zenodo are sent, of the kind its author chose, as Zenodo files it. deposit: buildDocidDeposit( - { title: record.title, abstract: record.abstract, ...(doi && { doi }), creators: authors, funding: record.funding }, + { ...sent, ...(doi && { doi }) }, { docid: handle, - resourceTypeId: docid.resourceTypeId, - publicationTypeId: docid.publicationTypeId, - funderTypeId: docid.funderTypeId, + lists: docid.options, + organizationTypes, // Its file only when anyone may get it: DOCiD shows what it holds to everyone. ...(openFile && { file: { filename: `${job.key}.pdf`, contentType: "application/pdf", bytes: new Uint8Array(await openFile.arrayBuffer()) } }), ...(poster && { poster: { filename: `${job.key}-cover.png`, contentType: poster.type || "image/png", bytes: new Uint8Array(await poster.arrayBuffer()) } }), diff --git a/convex/reports/registration.test.ts b/convex/reports/registration.test.ts index 65d7a9fae..5002df6fc 100644 --- a/convex/reports/registration.test.ts +++ b/convex/reports/registration.test.ts @@ -52,7 +52,7 @@ describe("a report's record for its registrars", () => { sdgs: ["2"], studyDesigns: ["observational-study"], countries: ["MW", "eastern_africa"], - funding: [{ funder: { id: "https://openalex.org/F4320306076", name: "National Science Foundation" }, awards: ["CHE-1152342"] }, { funder: { id: null, name: "A local trust" }, awards: [] }], + funding: [{ funder: { id: "https://openalex.org/F4320306076", name: "National Science Foundation" }, awards: ["CHE-1152342"] }, { funder: { id: null, name: "A local trust" }, awards: [], type: "investor" as const }], references: ["10.1000/cited.1"], relations: [ { kind: "data" as const, target: "https://doi.org/10.5281/zenodo.42" }, @@ -64,7 +64,7 @@ describe("a report's record for its registrars", () => { subjects: ["Climate change impacts on agriculture", "SDG 2: Zero hunger"], methods: "Observational study", locations: [{ place: "Malawi", country: "MW" }, { place: "Eastern Africa" }], - funding: [{ funderName: "National Science Foundation", funderIdentifier: "https://doi.org/10.13039/100000001", funderRor: "021nxhr62", awards: ["CHE-1152342"] }, { funderName: "A local trust", awards: [] }], + funding: [{ funderName: "National Science Foundation", funderIdentifier: "https://doi.org/10.13039/100000001", funderRor: "021nxhr62", awards: ["CHE-1152342"] }, { funderName: "A local trust", funderType: "investor", awards: [] }], references: ["10.1000/cited.1"], relations: [ { type: "isSupplementedBy", identifierType: "doi", identifier: "10.5281/zenodo.42", description: "Data" }, diff --git a/convex/reports/validators.ts b/convex/reports/validators.ts index 3a6198319..39d0b9cfa 100644 --- a/convex/reports/validators.ts +++ b/convex/reports/validators.ts @@ -1,6 +1,7 @@ import { v } from "convex/values"; import { effortValidator, modelSummaryValidator } from "../aiModelConfig/validators"; import { keptCustomValidator, publicationSettingsValidator } from "../evidenceLibraries/publicationValidators"; +import { FUNDER_TYPES } from "@opendeved/doi-sync-core/docid"; import { capped } from "../lib/listCaps"; import { affiliationValidator } from "../lib/validators"; import { MAX_CHECKS } from "../../lib/reports/settings"; @@ -130,7 +131,7 @@ export const metadataValidator = v.object({ sdgs: capped(v.array(v.string()), DETAIL_CAPS.sdgs), studyDesigns: capped(v.array(v.string()), DETAIL_CAPS.studyDesigns), countries: capped(v.array(v.string()), DETAIL_CAPS.countries), - funding: capped(v.array(v.object({ funder: v.object({ id: v.union(v.string(), v.null()), name: v.string(), ror: v.optional(v.string()) }), awards: capped(v.array(v.string()), DETAIL_CAPS.awards) })), DETAIL_CAPS.funding), + funding: capped(v.array(v.object({ funder: v.object({ id: v.union(v.string(), v.null()), name: v.string(), ror: v.optional(v.string()) }), awards: capped(v.array(v.string()), DETAIL_CAPS.awards), type: v.optional(literals(FUNDER_TYPES)) })), DETAIL_CAPS.funding), references: capped(v.array(v.string()), DETAIL_CAPS.references), citations: capped(v.optional(v.array(v.object({ text: v.string(), doi: v.optional(v.string()) }))), DETAIL_CAPS.references), relations: capped(v.array(v.object({ kind: literals(RELATION_KINDS.map((kind) => kind.id)), target: v.string() })), DETAIL_CAPS.relations), diff --git a/lib/people/identifiers.ts b/lib/people/identifiers.ts index 18f1a878a..efba3aca8 100644 --- a/lib/people/identifiers.ts +++ b/lib/people/identifiers.ts @@ -99,16 +99,17 @@ export async function findRorOrganisations(words: string): Promise { +export async function rorFacts(ror: string): Promise<{ fundref: string | null; type: string | null }> { const response = await fetch(`${ROR_API}/${encodeURIComponent(ror)}`, { headers: { Accept: "application/json", "User-Agent": USER_AGENT }, signal: AbortSignal.timeout(10_000) }); - if (response.status === 404) return null; + if (response.status === 404) return { fundref: null, type: null }; if (!response.ok) throw new Error(`ROR ${response.status}: ${(await response.text()).slice(0, 200)}`); - const record = (await response.json()) as { external_ids?: Array<{ type: string; preferred: string | null; all: string[] }> }; + const record = (await response.json()) as { types?: string[]; external_ids?: Array<{ type: string; preferred: string | null; all: string[] }> }; const fundref = record.external_ids?.find((id) => id.type === "fundref"); - return fundref?.preferred ?? fundref?.all[0] ?? null; + return { fundref: fundref?.preferred ?? fundref?.all[0] ?? null, type: record.types?.[0] ?? null }; } /** An organisation's name as letters and digits alone, "&" read as "and", without a leading "The": "The Data Lab" is "Data Lab". */ diff --git a/lib/reports/identifiers.test.ts b/lib/reports/identifiers.test.ts index 2e966ce5b..8f1ad94f1 100644 --- a/lib/reports/identifiers.test.ts +++ b/lib/reports/identifiers.test.ts @@ -50,8 +50,10 @@ describe("identifier services", () => { expect(clampChoose({ ...any, services: { ...any.services, docid: { mode: "required", price: 5 } } }, any).choose).toEqual({ min: 0, max: 0 }); }); - it("switches off a service whose account is off, or DOCiD's until its types are set", () => { - expect(withAccounts(settings({ docid: "required" }), { crossref: { mode: "custom" }, zenodo: { mode: "custom" }, docid: { mode: "custom", resourceTypeId: 18 } }).services.docid.mode).toBe("off"); + it("switches off a service whose account is off, or DOCiD's until it may file reports", () => { + const docid = (resourceTypes: Array<{ id: number; name: string }>) => withAccounts(settings({ docid: "required" }), { crossref: { mode: "custom" }, zenodo: { mode: "custom" }, docid: { mode: "custom", options: { resourceTypes } } }).services.docid.mode; + expect(docid([{ id: 18, name: "PhD Thesis" }])).toBe("off"); + expect(docid([{ id: 21, name: "Manuscripts" }])).toBe("required"); const off = withAccounts(settings({ docid: "required" }), { crossref: { mode: "custom" }, zenodo: { mode: "custom" } }); expect(off.services.docid.mode).toBe("off"); }); diff --git a/lib/reports/identifiers.ts b/lib/reports/identifiers.ts index 8b2c6dc71..01d8cf3b0 100644 --- a/lib/reports/identifiers.ts +++ b/lib/reports/identifiers.ts @@ -1,6 +1,7 @@ // Identifier services (plans/identifier-services): which registrars a publisher's records get identifiers from, how // each is used (required, optional, off), what each adds to the price, what authors may pick, and which identifier // the byline prints. Reports and communities share the shape; only Reports charge. +import { docidResourceType, type DocidOption } from "@opendeved/doi-sync-core/docid"; export const SERVICES = { crossref: { name: "Crossref", identifier: "DOI", logo: "/brands/crossref.svg", printable: true }, @@ -100,10 +101,10 @@ export function settingsProblem(ids: Identifiers): "noService" | "rule" | "nothi return picks.every((pick) => citedOf(ids, pick)) ? null : "nothingPrinted"; } -type Accounts = { crossref: { mode: string }; zenodo: { mode: string }; docid?: { mode: string; resourceTypeId?: number | undefined; publicationTypeId?: number | undefined; funderTypeId?: number | undefined } | undefined }; +type Accounts = { crossref: { mode: string }; zenodo: { mode: string }; docid?: { mode: string; options?: { resourceTypes: DocidOption[] } | undefined } | undefined }; -/** Whether DOCiD can take a deposit: its account set, with the resource, file and funder types every deposit may need. */ -export const docidReady = (publication: Accounts) => publication.docid?.mode === "custom" && publication.docid.resourceTypeId !== undefined && publication.docid.publicationTypeId !== undefined && publication.docid.funderTypeId !== undefined; +/** Whether DOCiD can take a deposit: its account set, and allowed to file a report under the resource type reports map to. */ +export const docidReady = (publication: Accounts) => publication.docid?.mode === "custom" && docidResourceType("Report", publication.docid.options?.resourceTypes ?? []) !== undefined; /** Which services' accounts are set under Registration, ready to register a report. */ export const connectedOf = (publication: Accounts): Record => ({ crossref: publication.crossref.mode !== "off", zenodo: publication.zenodo.mode !== "off", docid: docidReady(publication) }); diff --git a/lib/reports/registration-record.ts b/lib/reports/registration-record.ts index fa3b507fd..9d8937283 100644 --- a/lib/reports/registration-record.ts +++ b/lib/reports/registration-record.ts @@ -126,7 +126,7 @@ export function registrationRecord( // OpenAlex has given the DOI bare and documents it as an address: either way it goes in once, behind one resolver. // A funder only ROR knows takes the Funder Registry ID ROR lists for it, where it lists one. const registryDoi = doiIn(known?.doi ?? "") ?? (ror ? doiIn(ids.rorFunders?.[ror] ?? "") : null); - return { funderName: f.funder.name, ...(registryDoi && { funderIdentifier: `https://doi.org/${registryDoi}` }), ...(ror && { funderRor: ror }), awards: f.awards }; + return { funderName: f.funder.name, ...(registryDoi && { funderIdentifier: `https://doi.org/${registryDoi}` }), ...(ror && { funderRor: ror }), ...(f.type && { funderType: f.type }), awards: f.awards }; }), // Each work cited by its DOI, or as its reference list writes it when it has none. references: m.citations ? m.citations.map((c) => c.doi ?? c.text.trim()).filter(Boolean) : m.references, diff --git a/lib/reports/report.ts b/lib/reports/report.ts index 5b1d81c86..b6d1c4e8f 100644 --- a/lib/reports/report.ts +++ b/lib/reports/report.ts @@ -1,6 +1,7 @@ // A report in Openscholar Reports (plans/publish-reports): the steps it goes through, where it stands, and the rules // its pages and its Convex functions share. Nothing here reads a database or the clock. +import type { FunderType } from "@opendeved/doi-sync-core/docid"; import { WORK_TYPES } from "../openalex/vocabulary"; export type Answer = "yes" | "no" | "unclear"; @@ -99,8 +100,11 @@ export type Author = { }; /** An OpenAlex topic from our catalog (T…, or a subfield or field), with how sure the reader was. */ export type Topic = { id: string; name: string; score: number }; -/** A funder: OpenAlex's where it has it (F…), with its ROR ID (https://ror.org/…) where OpenAlex or ROR know it, or the name as typed. */ -export type Funding = { funder: { id: string | null; name: string; ror?: string }; awards: string[] }; +/** + * A funder: OpenAlex's where it has it (F…), with its ROR ID (https://ror.org/…) where OpenAlex or ROR know it, or the name + * as typed, and what kind of funder it is, for DOCiD: a grantor where it isn't said. + */ +export type Funding = { funder: { id: string | null; name: string; ror?: string }; awards: string[]; type?: FunderType }; export const RELATION_KINDS = [ { id: "data", name: "Data" }, { id: "code", name: "Code" }, @@ -487,7 +491,7 @@ const FIELD_TEXT: Array<[label: string, text: (m: Metadata) => string]> = [ ["Goals", (m) => m.sdgs.join(", ")], ["Study designs", (m) => m.studyDesigns.join(", ")], ["Places", (m) => m.countries.join(", ")], - ["Funding", (m) => m.funding.map((f) => [f.funder.name, ...f.awards].join(", ")).join("\n")], + ["Funding", (m) => m.funding.map((f) => [f.funder.name, f.type && f.type !== "grantor" ? f.type : "", ...f.awards].filter(Boolean).join(", ")).join("\n")], ["References", (m) => (m.citations ?? m.references.map((doi) => ({ text: "", doi }))).map((c) => [c.text, c.doi].filter(Boolean).join(", ")).join("\n")], ["Links", (m) => m.relations.map((r) => `${r.kind}: ${r.target}`).join("\n")], ]; diff --git a/messages/af.json b/messages/af.json index 12808cf4e..e60dc834f 100644 --- a/messages/af.json +++ b/messages/af.json @@ -375,14 +375,7 @@ "docidHint": "Die Africa PID Alliance se identifiseerder, 'n Handle onder 20.500.14351.", "enableDocid": "Gebruik DOCiD", "docidPermanent": "DOCiD het geen toetsdiens nie. Elke DOCiD is 'n regte Handle wat nie uitgevee kan word nie, net teruggetrek.", - "docidChoose": "Kies een", - "docidListsFirst": "Verifieer en stoor die rekening om DOCiD se lyste te laai.", - "docidResourceType": "Hulpbrontipe", - "docidResourceTypeHint": "Waaronder DOCiD elke verslag lê. Jou rekening mag net sommige gebruik.", - "docidFileType": "Lêertipe", - "docidFileTypeHint": "Hoe DOCiD die PDF lys.", - "docidFunderType": "Befondsertipe", - "docidNoResourceTypes": "DOCiD laat hierdie rekening nog geen hulpbrontipe toe nie, so dit kan nie verslae deponeer nie. Vra die Africa PID Alliance om een toe te laat, verifieer en stoor dan weer." + "docidNoResourceTypes": "DOCiD laat hierdie rekening nog nie toe om verslae as Manuscripts te liasseer nie, so dit kan dit nie deponeer nie. Vra die Africa PID Alliance om Manuscripts toe te laat, verifieer en stoor dan weer." }, "auth": { "backToSearch": "Terug na soektog", @@ -7152,6 +7145,13 @@ "fundersPager": "befondsers", "grants": "Toekenningsnommers", "addGrant": "Voeg toekenningsnommer vir {name} by", + "funderType": "Soort befondser", + "funderTypeOf": "Soort befondser vir {name}", + "funderTypes": { + "grantor": "Toekenner", + "investor": "Belegger", + "corporation": "Maatskappy" + }, "references": "Verwysings", "referencesPager": "verwysings", "editReference": "Wysig verwysing", @@ -7245,7 +7245,8 @@ "does": { "crossref": "Registreer die DOI", "zenodo": "Argiveer ’n kopie", - "openscholar": "Wys die verslag" + "openscholar": "Wys die verslag", + "docid": "Gee 'n Handle" }, "sent": "{name}, kry dit: {does}", "notSent": "{name}, kry dit nie: {does}", @@ -7464,6 +7465,11 @@ "about": "Wie vir die werk betaal het, met die toekenningsnommers soos gedruk.", "note": "Befondsers word op OpenAlex en ROR opgesoek. Een wat daar gevind word, gaan met sy ROR-ID, en met sy Funder Registry-ID as hy een het. Een wat met die hand getik is, gaan net as ’n naam." }, + "funderType": { + "title": "Soort befondser", + "about": "Watter soort liggaam die werk befonds het: een wat toekennings gee, een wat daarin belê, of 'n maatskappy.", + "note": "Net DOCiD hou dit by. 'n Befondser wat so gelaat word, gaan as 'n toekenner." + }, "references": { "title": "Verwysings", "about": "Die werke wat hierdie verslag aanhaal, soos sy verwysingslys hulle skryf.", @@ -7661,4 +7667,4 @@ "other": "Ander" } } -} +} \ No newline at end of file diff --git a/messages/ar.json b/messages/ar.json index 0aeebaa90..55574e883 100644 --- a/messages/ar.json +++ b/messages/ar.json @@ -375,14 +375,7 @@ "docidHint": "معرّف تحالف Africa PID Alliance، وهو Handle تحت 20.500.14351.", "enableDocid": "استخدام DOCiD", "docidPermanent": "لا توجد لدى DOCiD خدمة تجريبية. كل DOCiD هو Handle حقيقي لا يمكن حذفه، بل سحبه فقط.", - "docidChoose": "اختر واحدًا", - "docidListsFirst": "تحقّق من الحساب واحفظه لتحميل قوائم DOCiD.", - "docidResourceType": "نوع المورد", - "docidResourceTypeHint": "النوع الذي يصنّف DOCiD كل تقرير تحته. يمكن لحسابك استخدام بعضها فقط.", - "docidFileType": "نوع الملف", - "docidFileTypeHint": "كيف يعرض DOCiD ملف PDF.", - "docidFunderType": "نوع الجهة المموّلة", - "docidNoResourceTypes": "لا يسمح DOCiD لهذا الحساب بأي نوع مورد بعد، لذا لا يمكنه إيداع التقارير. اطلب من Africa PID Alliance السماح بنوع، ثم تحقّق واحفظ مرة أخرى." + "docidNoResourceTypes": "لا يسمح DOCiD لهذا الحساب بعد بتسجيل التقارير بنوع Manuscripts، لذا لا يمكنه إيداعها. اطلب من Africa PID Alliance السماح بـ Manuscripts، ثم تحقّق واحفظ مرة أخرى." }, "auth": { "backToSearch": "العودة إلى البحث", @@ -7152,6 +7145,13 @@ "fundersPager": "الجهات المموّلة", "grants": "أرقام المنح", "addGrant": "إضافة رقم منحة لـ {name}", + "funderType": "نوع المموّل", + "funderTypeOf": "نوع المموّل {name}", + "funderTypes": { + "grantor": "مانح", + "investor": "مستثمر", + "corporation": "شركة" + }, "references": "المراجع", "referencesPager": "المراجع", "editReference": "تعديل المرجع", @@ -7245,7 +7245,8 @@ "does": { "crossref": "يسجّل معرّف DOI", "zenodo": "يؤرشف نسخة", - "openscholar": "يعرض التقرير" + "openscholar": "يعرض التقرير", + "docid": "يمنح Handle" }, "sent": "{name}، يُرسل إليه هذا: {does}", "notSent": "{name}، لا يُرسل إليه هذا: {does}", @@ -7464,6 +7465,11 @@ "about": "من موّل العمل، مع أرقام المنح كما طُبعت.", "note": "يُبحث عن الممولين في OpenAlex وROR. ومن يُعثر عليه هناك يُرسل بمعرّف ROR، وبمعرّف سجل الممولين إن كان له. ومن يُكتب يدويًا يُرسل باسمه وحده." }, + "funderType": { + "title": "نوع المموّل", + "about": "نوع الجهة التي موّلت العمل: جهة تقدّم المنح، أو جهة تستثمر فيه، أو شركة.", + "note": "يسجّله DOCiD وحده. المموّل الذي يُترك كما هو يُرسل بوصفه مانحًا." + }, "references": { "title": "المراجع", "about": "الأعمال التي يستشهد بها هذا التقرير، كما تكتبها قائمة مراجعه.", @@ -7661,4 +7667,4 @@ "other": "أخرى" } } -} +} \ No newline at end of file diff --git a/messages/de.json b/messages/de.json index 458a12013..03fb3792f 100644 --- a/messages/de.json +++ b/messages/de.json @@ -375,14 +375,7 @@ "docidHint": "Die Kennung der Africa PID Alliance, ein Handle unter 20.500.14351.", "enableDocid": "DOCiD verwenden", "docidPermanent": "DOCiD hat keinen Testdienst. Jede DOCiD ist ein echter Handle, der nicht gelöscht, nur stillgelegt werden kann.", - "docidChoose": "Auswählen", - "docidListsFirst": "Konto prüfen und speichern, um die Listen von DOCiD zu laden.", - "docidResourceType": "Ressourcentyp", - "docidResourceTypeHint": "Als was DOCiD jeden Bericht ablegt. Ihr Konto darf nur einige verwenden.", - "docidFileType": "Dateityp", - "docidFileTypeHint": "Wie DOCiD das PDF führt.", - "docidFunderType": "Art des Geldgebers", - "docidNoResourceTypes": "DOCiD erlaubt diesem Konto noch keinen Ressourcentyp und kann deshalb keine Berichte hinterlegen. Bitten Sie die Africa PID Alliance, einen freizugeben, und prüfen und speichern Sie dann erneut." + "docidNoResourceTypes": "DOCiD erlaubt diesem Konto noch nicht, Berichte als Manuscripts abzulegen, deshalb kann es sie nicht hinterlegen. Bitten Sie die Africa PID Alliance, Manuscripts freizugeben, und prüfen und speichern Sie dann erneut." }, "auth": { "backToSearch": "Zurück zur Suche", @@ -7152,6 +7145,13 @@ "fundersPager": "Fördergeber", "grants": "Förderkennzeichen", "addGrant": "Ein Förderkennzeichen für {name} hinzufügen", + "funderType": "Art des Geldgebers", + "funderTypeOf": "Art des Geldgebers {name}", + "funderTypes": { + "grantor": "Fördergeber", + "investor": "Investor", + "corporation": "Unternehmen" + }, "references": "Literatur", "referencesPager": "Literaturangaben", "editReference": "Literaturangabe bearbeiten", @@ -7245,7 +7245,8 @@ "does": { "crossref": "Registriert den DOI", "zenodo": "Archiviert eine Kopie", - "openscholar": "Zeigt den Bericht" + "openscholar": "Zeigt den Bericht", + "docid": "Vergibt einen Handle" }, "sent": "{name}, bekommt das: {does}", "notSent": "{name}, bekommt das nicht: {does}", @@ -7464,6 +7465,11 @@ "about": "Wer die Arbeit bezahlt hat, mit den Fördernummern wie gedruckt.", "note": "Förderer werden bei OpenAlex und ROR gesucht. Einer, der dort gefunden wird, geht mit seiner ROR-ID und, wo vorhanden, seiner Funder-Registry-ID. Einer, der von Hand eingegeben wird, geht nur mit seinem Namen." }, + "funderType": { + "title": "Art des Geldgebers", + "about": "Welche Art von Stelle die Arbeit finanziert hat: eine, die Fördermittel vergibt, eine, die investiert, oder ein Unternehmen.", + "note": "Nur DOCiD erfasst sie. Ein Geldgeber ohne Angabe gilt als Fördergeber." + }, "references": { "title": "Literatur", "about": "Die Werke, die dieser Bericht zitiert, so wie seine Literaturliste sie schreibt.", @@ -7661,4 +7667,4 @@ "other": "Sonstiges" } } -} +} \ No newline at end of file diff --git a/messages/en-GB.json b/messages/en-GB.json index 837540b34..7c1127a80 100644 --- a/messages/en-GB.json +++ b/messages/en-GB.json @@ -375,14 +375,7 @@ "docidHint": "The Africa PID Alliance's identifier, a Handle under 20.500.14351.", "enableDocid": "Use DOCiD", "docidPermanent": "DOCiD has no test service. Every DOCiD it mints is a real Handle that can't be deleted, only retired.", - "docidChoose": "Choose one", - "docidListsFirst": "Verify and save the account to load DOCiD's lists.", - "docidResourceType": "Resource type", - "docidResourceTypeHint": "What DOCiD files each report as. Your account may use only some.", - "docidFileType": "File type", - "docidFileTypeHint": "How DOCiD lists the PDF.", - "docidFunderType": "Funder type", - "docidNoResourceTypes": "DOCiD allows this account no resource type yet, so it can't deposit reports. Ask the Africa PID Alliance to allow one, then verify and save again." + "docidNoResourceTypes": "DOCiD doesn't let this account file reports as Manuscripts yet, so it can't deposit them. Ask the Africa PID Alliance to allow Manuscripts, then verify and save again." }, "auth": { "backToSearch": "Back to search", @@ -7151,6 +7144,13 @@ "fundersPager": "funders", "grants": "Grant numbers", "addGrant": "Add a grant number for {name}", + "funderType": "Funder type", + "funderTypeOf": "Funder type of {name}", + "funderTypes": { + "grantor": "Grantor", + "investor": "Investor", + "corporation": "Corporation" + }, "references": "References", "referencesPager": "references", "editReference": "Edit reference", @@ -7244,7 +7244,8 @@ "does": { "crossref": "Registers the DOI", "zenodo": "Archives a copy", - "openscholar": "Shows the report" + "openscholar": "Shows the report", + "docid": "Gives a Handle" }, "sent": "{name}, sent this: {does}", "notSent": "{name}, not sent this: {does}", @@ -7463,6 +7464,11 @@ "about": "Who paid for the work, with the grant numbers as printed.", "note": "Funders are looked up on OpenAlex and ROR. One found there goes with its ROR ID, and with its Funder Registry ID where it has one. One typed by hand goes as a name alone." }, + "funderType": { + "title": "Funder type", + "about": "What kind of body funded the work: one that gives grants, one that invests in it, or a company.", + "note": "Only DOCiD records it. A funder left as it is goes as a grantor." + }, "references": { "title": "References", "about": "The works this report cites, as its reference list writes them.", @@ -7660,4 +7666,4 @@ "other": "Other" } } -} +} \ No newline at end of file diff --git a/messages/en-US.json b/messages/en-US.json index effeecad8..1fee7f65f 100644 --- a/messages/en-US.json +++ b/messages/en-US.json @@ -375,14 +375,7 @@ "docidHint": "The Africa PID Alliance's identifier, a Handle under 20.500.14351.", "enableDocid": "Use DOCiD", "docidPermanent": "DOCiD has no test service. Every DOCiD it mints is a real Handle that can't be deleted, only retired.", - "docidChoose": "Choose one", - "docidListsFirst": "Verify and save the account to load DOCiD's lists.", - "docidResourceType": "Resource type", - "docidResourceTypeHint": "What DOCiD files each report as. Your account may use only some.", - "docidFileType": "File type", - "docidFileTypeHint": "How DOCiD lists the PDF.", - "docidFunderType": "Funder type", - "docidNoResourceTypes": "DOCiD allows this account no resource type yet, so it can't deposit reports. Ask the Africa PID Alliance to allow one, then verify and save again." + "docidNoResourceTypes": "DOCiD doesn't let this account file reports as Manuscripts yet, so it can't deposit them. Ask the Africa PID Alliance to allow Manuscripts, then verify and save again." }, "auth": { "backToSearch": "Back to search", @@ -7151,6 +7144,13 @@ "fundersPager": "funders", "grants": "Grant numbers", "addGrant": "Add a grant number for {name}", + "funderType": "Funder type", + "funderTypeOf": "Funder type of {name}", + "funderTypes": { + "grantor": "Grantor", + "investor": "Investor", + "corporation": "Corporation" + }, "references": "References", "referencesPager": "references", "editReference": "Edit reference", @@ -7244,7 +7244,8 @@ "does": { "crossref": "Registers the DOI", "zenodo": "Archives a copy", - "openscholar": "Shows the report" + "openscholar": "Shows the report", + "docid": "Gives a Handle" }, "sent": "{name}, sent this: {does}", "notSent": "{name}, not sent this: {does}", @@ -7463,6 +7464,11 @@ "about": "Who paid for the work, with the grant numbers as printed.", "note": "Funders are looked up on OpenAlex and ROR. One found there goes with its ROR ID, and with its Funder Registry ID where it has one. One typed by hand goes as a name alone." }, + "funderType": { + "title": "Funder type", + "about": "What kind of body funded the work: one that gives grants, one that invests in it, or a company.", + "note": "Only DOCiD records it. A funder left as it is goes as a grantor." + }, "references": { "title": "References", "about": "The works this report cites, as its reference list writes them.", @@ -7660,4 +7666,4 @@ "other": "Other" } } -} +} \ No newline at end of file diff --git a/messages/es.json b/messages/es.json index 7d5efc6f1..c51d1cfa1 100644 --- a/messages/es.json +++ b/messages/es.json @@ -375,14 +375,7 @@ "docidHint": "El identificador de la Africa PID Alliance, un Handle bajo 20.500.14351.", "enableDocid": "Usar DOCiD", "docidPermanent": "DOCiD no tiene servicio de pruebas. Cada DOCiD es un Handle real que no se puede borrar, solo retirar.", - "docidChoose": "Elige uno", - "docidListsFirst": "Verifica y guarda la cuenta para cargar las listas de DOCiD.", - "docidResourceType": "Tipo de recurso", - "docidResourceTypeHint": "Como qué archiva DOCiD cada informe. Tu cuenta solo puede usar algunos.", - "docidFileType": "Tipo de archivo", - "docidFileTypeHint": "Cómo muestra DOCiD el PDF.", - "docidFunderType": "Tipo de financiador", - "docidNoResourceTypes": "DOCiD aún no permite ningún tipo de recurso a esta cuenta, así que no puede depositar informes. Pide a la Africa PID Alliance que permita uno y vuelve a verificar y guardar." + "docidNoResourceTypes": "DOCiD aún no permite a esta cuenta registrar informes como Manuscripts, así que no puede depositarlos. Pide a la Africa PID Alliance que permita Manuscripts y vuelve a verificar y guardar." }, "auth": { "backToSearch": "Volver a la búsqueda", @@ -7152,6 +7145,13 @@ "fundersPager": "financiadores", "grants": "Números de subvención", "addGrant": "Añadir un número de subvención para {name}", + "funderType": "Tipo de financiador", + "funderTypeOf": "Tipo de financiador de {name}", + "funderTypes": { + "grantor": "Otorgante", + "investor": "Inversor", + "corporation": "Empresa" + }, "references": "Referencias", "referencesPager": "referencias", "editReference": "Editar la referencia", @@ -7245,7 +7245,8 @@ "does": { "crossref": "Registra el DOI", "zenodo": "Archiva una copia", - "openscholar": "Muestra el informe" + "openscholar": "Muestra el informe", + "docid": "Asigna un Handle" }, "sent": "{name}, recibe esto: {does}", "notSent": "{name}, no recibe esto: {does}", @@ -7464,6 +7465,11 @@ "about": "Quién pagó el trabajo, con los números de subvención tal como están impresos.", "note": "Los financiadores se buscan en OpenAlex y en ROR. Uno encontrado allí se envía con su identificador ROR, y con su identificador del Funder Registry si lo tiene. Uno escrito a mano se envía solo con su nombre." }, + "funderType": { + "title": "Tipo de financiador", + "about": "Qué clase de entidad financió el trabajo: una que concede subvenciones, una que invierte en él o una empresa.", + "note": "Solo DOCiD lo registra. Un financiador que se deja como está se envía como otorgante." + }, "references": { "title": "Referencias", "about": "Los trabajos que cita este informe, tal como los escribe su lista de referencias.", @@ -7661,4 +7667,4 @@ "other": "Otro" } } -} +} \ No newline at end of file diff --git a/messages/fr.json b/messages/fr.json index 1af92136f..f1ca0c9a2 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -375,14 +375,7 @@ "docidHint": "L'identifiant de l'Africa PID Alliance, un Handle sous 20.500.14351.", "enableDocid": "Utiliser DOCiD", "docidPermanent": "DOCiD n'a pas de service de test. Chaque DOCiD est un vrai Handle qui ne peut pas être supprimé, seulement retiré.", - "docidChoose": "Choisir", - "docidListsFirst": "Vérifiez et enregistrez le compte pour charger les listes de DOCiD.", - "docidResourceType": "Type de ressource", - "docidResourceTypeHint": "Ce sous quoi DOCiD classe chaque rapport. Votre compte n'en peut utiliser que certains.", - "docidFileType": "Type de fichier", - "docidFileTypeHint": "Comment DOCiD présente le PDF.", - "docidFunderType": "Type de financeur", - "docidNoResourceTypes": "DOCiD n'autorise encore aucun type de ressource pour ce compte, il ne peut donc pas déposer de rapports. Demandez à l'Africa PID Alliance d'en autoriser un, puis vérifiez et enregistrez à nouveau." + "docidNoResourceTypes": "DOCiD ne permet pas encore à ce compte de classer des rapports comme Manuscripts, il ne peut donc pas les déposer. Demandez à l'Africa PID Alliance d'autoriser Manuscripts, puis vérifiez et enregistrez à nouveau." }, "auth": { "backToSearch": "Retour à la recherche", @@ -7151,6 +7144,13 @@ "fundersPager": "financeurs", "grants": "Numéros de subvention", "addGrant": "Ajouter un numéro de subvention pour {name}", + "funderType": "Type de financeur", + "funderTypeOf": "Type de financeur de {name}", + "funderTypes": { + "grantor": "Bailleur", + "investor": "Investisseur", + "corporation": "Entreprise" + }, "references": "Références", "referencesPager": "références", "editReference": "Modifier la référence", @@ -7244,7 +7244,8 @@ "does": { "crossref": "Enregistre le DOI", "zenodo": "Archive une copie", - "openscholar": "Affiche le rapport" + "openscholar": "Affiche le rapport", + "docid": "Attribue un Handle" }, "sent": "{name}, reçoit ceci : {does}", "notSent": "{name}, ne reçoit pas ceci : {does}", @@ -7463,6 +7464,11 @@ "about": "Qui a payé le travail, avec les numéros de subvention tels qu’imprimés.", "note": "Les financeurs sont recherchés dans OpenAlex et ROR. Celui qui y est trouvé part avec son identifiant ROR, et avec son identifiant Funder Registry s’il en a un. Un financeur saisi à la main part avec son seul nom." }, + "funderType": { + "title": "Type de financeur", + "about": "Le genre d'organisme qui a financé le travail : un qui accorde des subventions, un qui y investit, ou une entreprise.", + "note": "Seul DOCiD l'enregistre. Un financeur laissé tel quel est envoyé comme bailleur." + }, "references": { "title": "Références", "about": "Les travaux que cite ce rapport, tels que sa liste de références les écrit.", @@ -7660,4 +7666,4 @@ "other": "Autre" } } -} +} \ No newline at end of file diff --git a/messages/hi.json b/messages/hi.json index 26f323622..4d3ae559f 100644 --- a/messages/hi.json +++ b/messages/hi.json @@ -375,14 +375,7 @@ "docidHint": "Africa PID Alliance का पहचानकर्ता, 20.500.14351 के अंतर्गत एक Handle।", "enableDocid": "DOCiD का उपयोग करें", "docidPermanent": "DOCiD की कोई परीक्षण सेवा नहीं है। हर DOCiD एक असली Handle है जिसे हटाया नहीं जा सकता, केवल वापस लिया जा सकता है।", - "docidChoose": "एक चुनें", - "docidListsFirst": "DOCiD की सूचियाँ लोड करने के लिए खाते को सत्यापित करें और सहेजें।", - "docidResourceType": "संसाधन प्रकार", - "docidResourceTypeHint": "DOCiD हर रिपोर्ट को किस रूप में दर्ज करता है। आपका खाता केवल कुछ का उपयोग कर सकता है।", - "docidFileType": "फ़ाइल प्रकार", - "docidFileTypeHint": "DOCiD PDF को कैसे सूचीबद्ध करता है।", - "docidFunderType": "वित्तपोषक प्रकार", - "docidNoResourceTypes": "DOCiD ने अभी इस खाते को कोई संसाधन प्रकार नहीं दिया है, इसलिए यह रिपोर्टें जमा नहीं कर सकता। Africa PID Alliance से एक अनुमति देने को कहें, फिर दोबारा सत्यापित करें और सहेजें।" + "docidNoResourceTypes": "DOCiD ने अभी इस खाते को रिपोर्टें Manuscripts के रूप में दर्ज करने की अनुमति नहीं दी है, इसलिए यह उन्हें जमा नहीं कर सकता। Africa PID Alliance से Manuscripts की अनुमति देने को कहें, फिर दोबारा सत्यापित करें और सहेजें।" }, "auth": { "backToSearch": "खोज पर वापस जाएँ", @@ -7151,6 +7144,13 @@ "fundersPager": "अनुदानदाता", "grants": "अनुदान संख्याएँ", "addGrant": "{name} के लिए अनुदान संख्या जोड़ें", + "funderType": "वित्तदाता का प्रकार", + "funderTypeOf": "{name} का वित्तदाता प्रकार", + "funderTypes": { + "grantor": "अनुदानदाता", + "investor": "निवेशक", + "corporation": "कंपनी" + }, "references": "संदर्भ", "referencesPager": "संदर्भ", "editReference": "संदर्भ संपादित करें", @@ -7244,7 +7244,8 @@ "does": { "crossref": "DOI दर्ज करता है", "zenodo": "एक प्रति संग्रहित करता है", - "openscholar": "रिपोर्ट दिखाता है" + "openscholar": "रिपोर्ट दिखाता है", + "docid": "Handle देता है" }, "sent": "{name}, इसे मिलता है: {does}", "notSent": "{name}, इसे नहीं मिलता: {does}", @@ -7463,6 +7464,11 @@ "about": "कार्य का ख़र्च किसने उठाया, छपे हुए अनुदान नंबरों के साथ।", "note": "अनुदानदाताओं को OpenAlex और ROR पर खोजा जाता है। वहाँ मिला अनुदानदाता अपने ROR ID के साथ, और अगर हो तो Funder Registry ID के साथ जाता है। हाथ से लिखा अनुदानदाता सिर्फ़ नाम के साथ जाता है।" }, + "funderType": { + "title": "वित्तदाता का प्रकार", + "about": "काम के लिए पैसा किस तरह की संस्था ने दिया: अनुदान देने वाली, उसमें निवेश करने वाली, या कोई कंपनी।", + "note": "इसे केवल DOCiD दर्ज करता है। जिस वित्तदाता को वैसे ही छोड़ा जाए, वह अनुदानदाता के रूप में जाता है।" + }, "references": { "title": "संदर्भ", "about": "वे कृतियाँ जिन्हें यह रिपोर्ट उद्धृत करती है, जैसा उसकी संदर्भ सूची में लिखा है।", @@ -7660,4 +7666,4 @@ "other": "अन्य" } } -} +} \ No newline at end of file diff --git a/messages/ja.json b/messages/ja.json index c6dac20ea..4f35126bc 100644 --- a/messages/ja.json +++ b/messages/ja.json @@ -375,14 +375,7 @@ "docidHint": "Africa PID Alliance の識別子で、20.500.14351 配下の Handle です。", "enableDocid": "DOCiD を使う", "docidPermanent": "DOCiD にはテスト環境がありません。発行される DOCiD はすべて本物の Handle で、削除はできず、取り下げのみできます。", - "docidChoose": "選択", - "docidListsFirst": "アカウントを確認して保存すると、DOCiD の一覧を読み込みます。", - "docidResourceType": "リソースの種類", - "docidResourceTypeHint": "DOCiD が各レポートを何として登録するか。アカウントが使えるのは一部だけです。", - "docidFileType": "ファイルの種類", - "docidFileTypeHint": "DOCiD での PDF の扱い。", - "docidFunderType": "助成元の種類", - "docidNoResourceTypes": "DOCiD はこのアカウントにまだリソースの種類を許可していないため、レポートを登録できません。Africa PID Alliance に許可を依頼し、もう一度確認して保存してください。" + "docidNoResourceTypes": "DOCiD はこのアカウントにまだレポートを Manuscripts として登録することを許可していないため、登録できません。Africa PID Alliance に Manuscripts の許可を依頼し、もう一度確認して保存してください。" }, "auth": { "backToSearch": "検索に戻る", @@ -7151,6 +7144,13 @@ "fundersPager": "件の助成機関", "grants": "助成番号", "addGrant": "{name}の助成番号を追加", + "funderType": "資金提供者の種類", + "funderTypeOf": "{name} の資金提供者の種類", + "funderTypes": { + "grantor": "助成機関", + "investor": "投資家", + "corporation": "企業" + }, "references": "参考文献", "referencesPager": "件の参考文献", "editReference": "参考文献を編集", @@ -7244,7 +7244,8 @@ "does": { "crossref": "DOI を登録", "zenodo": "コピーを保存", - "openscholar": "報告書を表示" + "openscholar": "報告書を表示", + "docid": "Handle を付与" }, "sent": "{name}、これを受け取る:{does}", "notSent": "{name}、これは受け取らない:{does}", @@ -7463,6 +7464,11 @@ "about": "研究の費用を出した組織と、印刷されている助成番号。", "note": "助成機関は OpenAlex と ROR で検索されます。見つかった機関は ROR ID とともに、ある場合は Funder Registry ID とともに送られます。手で入力した機関は名前だけが送られます。" }, + "funderType": { + "title": "資金提供者の種類", + "about": "研究に資金を出した組織の種類:助成金を出す組織、投資する組織、または企業。", + "note": "記録するのは DOCiD だけです。そのままにした資金提供者は助成機関として送られます。" + }, "references": { "title": "参考文献", "about": "この報告書が引用する資料。参考文献一覧の書き方のまま。", @@ -7660,4 +7666,4 @@ "other": "その他" } } -} +} \ No newline at end of file diff --git a/messages/pt.json b/messages/pt.json index 6d954bbf1..d585650d4 100644 --- a/messages/pt.json +++ b/messages/pt.json @@ -375,14 +375,7 @@ "docidHint": "O identificador da Africa PID Alliance, um Handle sob 20.500.14351.", "enableDocid": "Usar DOCiD", "docidPermanent": "O DOCiD não tem serviço de teste. Cada DOCiD é um Handle real que não pode ser apagado, apenas retirado.", - "docidChoose": "Escolha um", - "docidListsFirst": "Verifique e salve a conta para carregar as listas do DOCiD.", - "docidResourceType": "Tipo de recurso", - "docidResourceTypeHint": "Como o DOCiD arquiva cada relatório. Sua conta só pode usar alguns.", - "docidFileType": "Tipo de arquivo", - "docidFileTypeHint": "Como o DOCiD lista o PDF.", - "docidFunderType": "Tipo de financiador", - "docidNoResourceTypes": "O DOCiD ainda não permite nenhum tipo de recurso a esta conta, então ela não pode depositar relatórios. Peça à Africa PID Alliance que permita um e verifique e salve de novo." + "docidNoResourceTypes": "O DOCiD ainda não permite que esta conta registre relatórios como Manuscripts, então ela não pode depositá-los. Peça à Africa PID Alliance que permita Manuscripts e verifique e salve de novo." }, "auth": { "backToSearch": "Voltar à pesquisa", @@ -7152,6 +7145,13 @@ "fundersPager": "financiadores", "grants": "Números de subvenção", "addGrant": "Adicionar um número de subvenção para {name}", + "funderType": "Tipo de financiador", + "funderTypeOf": "Tipo de financiador de {name}", + "funderTypes": { + "grantor": "Concedente", + "investor": "Investidor", + "corporation": "Empresa" + }, "references": "Referências", "referencesPager": "referências", "editReference": "Editar a referência", @@ -7245,7 +7245,8 @@ "does": { "crossref": "Regista o DOI", "zenodo": "Arquiva uma cópia", - "openscholar": "Mostra o relatório" + "openscholar": "Mostra o relatório", + "docid": "Atribui um Handle" }, "sent": "{name}, recebe isto: {does}", "notSent": "{name}, não recebe isto: {does}", @@ -7464,6 +7465,11 @@ "about": "Quem pagou o trabalho, com os números de financiamento tal como impressos.", "note": "Os financiadores são procurados no OpenAlex e no ROR. Um encontrado aí vai com o seu identificador ROR e, quando o tem, o do Funder Registry. Um escrito à mão vai só com o nome." }, + "funderType": { + "title": "Tipo de financiador", + "about": "Que tipo de entidade financiou o trabalho: uma que concede subsídios, uma que investe nele ou uma empresa.", + "note": "Só o DOCiD o registra. Um financiador deixado como está vai como concedente." + }, "references": { "title": "Referências", "about": "Os trabalhos que este relatório cita, tal como a lista de referências os escreve.", @@ -7661,4 +7667,4 @@ "other": "Outro" } } -} +} \ No newline at end of file diff --git a/messages/sw.json b/messages/sw.json index e4cab7971..f11935ed9 100644 --- a/messages/sw.json +++ b/messages/sw.json @@ -375,14 +375,7 @@ "docidHint": "Kitambulisho cha Africa PID Alliance, Handle chini ya 20.500.14351.", "enableDocid": "Tumia DOCiD", "docidPermanent": "DOCiD haina huduma ya majaribio. Kila DOCiD ni Handle halisi lisiloweza kufutwa, bali kuondolewa tu.", - "docidChoose": "Chagua moja", - "docidListsFirst": "Thibitisha na uhifadhi akaunti ili kupakia orodha za DOCiD.", - "docidResourceType": "Aina ya rasilimali", - "docidResourceTypeHint": "Jinsi DOCiD inavyohifadhi kila ripoti. Akaunti yako inaweza kutumia baadhi tu.", - "docidFileType": "Aina ya faili", - "docidFileTypeHint": "Jinsi DOCiD inavyoorodhesha PDF.", - "docidFunderType": "Aina ya mfadhili", - "docidNoResourceTypes": "DOCiD bado haijaruhusu akaunti hii aina yoyote ya rasilimali, kwa hiyo haiwezi kuweka ripoti. Iombe Africa PID Alliance iruhusu moja, kisha thibitisha na uhifadhi tena." + "docidNoResourceTypes": "DOCiD bado haijaruhusu akaunti hii kuweka ripoti kama Manuscripts, kwa hiyo haiwezi kuziweka. Iombe Africa PID Alliance iruhusu Manuscripts, kisha thibitisha na uhifadhi tena." }, "auth": { "backToSearch": "Rudi kwenye utafutaji", @@ -7152,6 +7145,13 @@ "fundersPager": "wafadhili", "grants": "Namba za ruzuku", "addGrant": "Ongeza namba ya ruzuku kwa {name}", + "funderType": "Aina ya mfadhili", + "funderTypeOf": "Aina ya mfadhili {name}", + "funderTypes": { + "grantor": "Mtoa ruzuku", + "investor": "Mwekezaji", + "corporation": "Kampuni" + }, "references": "Marejeo", "referencesPager": "marejeo", "editReference": "Hariri rejeo", @@ -7245,7 +7245,8 @@ "does": { "crossref": "Husajili DOI", "zenodo": "Huhifadhi nakala", - "openscholar": "Huonyesha ripoti" + "openscholar": "Huonyesha ripoti", + "docid": "Hutoa Handle" }, "sent": "{name}, hupokea hiki: {does}", "notSent": "{name}, haipokei hiki: {does}", @@ -7464,6 +7465,11 @@ "about": "Nani alilipia kazi hii, pamoja na namba za ruzuku kama zilivyochapishwa.", "note": "Wafadhili hutafutwa kwenye OpenAlex na ROR. Anayepatikana huko hutumwa na kitambulisho chake cha ROR, na cha Funder Registry ikiwa anacho. Aliyeandikwa kwa mkono hutumwa kwa jina pekee." }, + "funderType": { + "title": "Aina ya mfadhili", + "about": "Aina ya taasisi iliyofadhili kazi: inayotoa ruzuku, inayowekeza ndani yake, au kampuni.", + "note": "Ni DOCiD pekee inayoirekodi. Mfadhili aliyeachwa kama alivyo hutumwa kama mtoa ruzuku." + }, "references": { "title": "Marejeleo", "about": "Kazi ambazo ripoti hii inanukuu, kama orodha yake ya marejeleo inavyoziandika.", @@ -7661,4 +7667,4 @@ "other": "Nyingine" } } -} +} \ No newline at end of file diff --git a/messages/zh.json b/messages/zh.json index b89d54cc2..56d4ec44c 100644 --- a/messages/zh.json +++ b/messages/zh.json @@ -375,14 +375,7 @@ "docidHint": "Africa PID Alliance 的标识符,即 20.500.14351 下的 Handle。", "enableDocid": "使用 DOCiD", "docidPermanent": "DOCiD 没有测试服务。它发放的每个 DOCiD 都是真实的 Handle,无法删除,只能撤回。", - "docidChoose": "请选择", - "docidListsFirst": "验证并保存账户以加载 DOCiD 的列表。", - "docidResourceType": "资源类型", - "docidResourceTypeHint": "DOCiD 将每份报告归入的类型。您的账户只能使用其中一部分。", - "docidFileType": "文件类型", - "docidFileTypeHint": "DOCiD 如何列出 PDF。", - "docidFunderType": "资助方类型", - "docidNoResourceTypes": "DOCiD 尚未允许此账户使用任何资源类型,因此无法提交报告。请请求 Africa PID Alliance 允许一种类型,然后再次验证并保存。" + "docidNoResourceTypes": "DOCiD 尚未允许此账户将报告登记为 Manuscripts,因此无法提交。请请求 Africa PID Alliance 允许 Manuscripts,然后再次验证并保存。" }, "auth": { "backToSearch": "返回搜索", @@ -7151,6 +7144,13 @@ "fundersPager": "个资助方", "grants": "资助编号", "addGrant": "为{name}添加资助编号", + "funderType": "资助方类型", + "funderTypeOf": "{name} 的资助方类型", + "funderTypes": { + "grantor": "资助机构", + "investor": "投资方", + "corporation": "企业" + }, "references": "参考文献", "referencesPager": "条参考文献", "editReference": "编辑参考文献", @@ -7244,7 +7244,8 @@ "does": { "crossref": "注册 DOI", "zenodo": "存档一份副本", - "openscholar": "展示报告" + "openscholar": "展示报告", + "docid": "分配 Handle" }, "sent": "{name},会收到:{does}", "notSent": "{name},不会收到:{does}", @@ -7463,6 +7464,11 @@ "about": "谁资助了这项工作,以及印出的资助编号。", "note": "会在 OpenAlex 和 ROR 中查找资助方。在那里找到的资助方会连同 ROR 标识符一起发送,如有资助方注册库标识符也会一起发送。手动输入的资助方只发送名称。" }, + "funderType": { + "title": "资助方类型", + "about": "资助这项工作的机构类型:提供资助金的机构、对其投资的机构,或企业。", + "note": "只有 DOCiD 记录此项。保持不变的资助方按资助机构发送。" + }, "references": { "title": "参考文献", "about": "本报告引用的作品,按其参考文献列表的写法。", @@ -7660,4 +7666,4 @@ "other": "其他" } } -} +} \ No newline at end of file diff --git a/messages/zu.json b/messages/zu.json index 8340bedb1..c2cf45190 100644 --- a/messages/zu.json +++ b/messages/zu.json @@ -375,14 +375,7 @@ "docidHint": "Isihlonzi se-Africa PID Alliance, i-Handle ngaphansi kuka-20.500.14351.", "enableDocid": "Sebenzisa i-DOCiD", "docidPermanent": "I-DOCiD ayinayo insizakalo yokuhlola. I-DOCiD ngayinye iyi-Handle yangempela engeke isuswe, ihoxiswe kuphela.", - "docidChoose": "Khetha eyodwa", - "docidListsFirst": "Qinisekisa futhi ulondoloze i-akhawunti ukuze ulayishe uhlu lwe-DOCiD.", - "docidResourceType": "Uhlobo lwensiza", - "docidResourceTypeHint": "Lokho i-DOCiD efaka ngakho umbiko ngamunye. I-akhawunti yakho ingasebenzisa ezinye kuphela.", - "docidFileType": "Uhlobo lwefayela", - "docidFileTypeHint": "Indlela i-DOCiD ebala ngayo i-PDF.", - "docidFunderType": "Uhlobo lomxhasi", - "docidNoResourceTypes": "I-DOCiD ayikayivumeli le akhawunti uhlobo lwensiza, ngakho ayikwazi ukufaka imibiko. Cela i-Africa PID Alliance ivumele olulodwa, bese uqinisekisa futhi ulondoloza futhi." + "docidNoResourceTypes": "I-DOCiD ayikayivumeli le akhawunti ukufaka imibiko njenge-Manuscripts, ngakho ayikwazi ukuyifaka. Cela i-Africa PID Alliance ivumele i-Manuscripts, bese uqinisekisa futhi ulondoloza futhi." }, "auth": { "backToSearch": "Buyela ekusesheni", @@ -7151,6 +7144,13 @@ "fundersPager": "abaxhasi", "grants": "Izinombolo zoxhaso", "addGrant": "Engeza inombolo yoxhaso ka-{name}", + "funderType": "Uhlobo lomxhasi", + "funderTypeOf": "Uhlobo lomxhasi we-{name}", + "funderTypes": { + "grantor": "Umniki-sibonelelo", + "investor": "Umtshalizimali", + "corporation": "Inkampani" + }, "references": "Izinkomba", "referencesPager": "izinkomba", "editReference": "Hlela inkomba", @@ -7244,7 +7244,8 @@ "does": { "crossref": "Ibhalisa i-DOI", "zenodo": "Igcina ikhophi", - "openscholar": "Ibonisa umbiko" + "openscholar": "Ibonisa umbiko", + "docid": "Inikeza i-Handle" }, "sent": "{name}, iyakuthola lokhu: {does}", "notSent": "{name}, ayikutholi lokhu: {does}", @@ -7463,6 +7464,11 @@ "about": "Ubani owakhokhela umsebenzi, nezinombolo zoxhaso njengoba ziphrintiwe.", "note": "Abaxhasi bayabhekwa ku-OpenAlex naku-ROR. Otholakala lapho uhamba ne-ID yakhe ye-ROR, kanye ne-ID ye-Funder Registry uma enayo. Othayiphwe ngesandla uhamba nje ngegama." }, + "funderType": { + "title": "Uhlobo lomxhasi", + "about": "Uhlobo lwesikhungo esixhase umsebenzi: esinikeza izibonelelo, esitshala imali kuwo, noma inkampani.", + "note": "Yi-DOCiD kuphela eyirekhodayo. Umxhasi oshiywe njengoba enjalo uthunyelwa njengomniki-sibonelelo." + }, "references": { "title": "Izinkomba", "about": "Imisebenzi lo mbiko oyicaphunayo, njengoba uhlu lwawo lwezinkomba luyibhala.", @@ -7660,4 +7666,4 @@ "other": "Okunye" } } -} +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index a9009e323..f2db7e1c1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -36,7 +36,7 @@ "@formatjs/intl-localematcher": "^0.8.1", "@hugeicons/core-free-icons": "^4.3.0", "@hugeicons/react": "^1.1.10", - "@opendeved/doi-sync-core": "github:OpenDevEd/doi-sync-core#06377d1a4797cf00140d60612e69b7f0e1bf9c4c", + "@opendeved/doi-sync-core": "github:OpenDevEd/doi-sync-core#daf9c30a57934ac0c295140e196a6ad3b64f5a53", "@opendeved/paper-pdf": "github:OpenDevEd/paper-pdf#e04f9cb5db106fcb7502ab79b199e8b46021432e", "@openrouter/ai-sdk-provider": "^3.1.0", "@posthog/nextjs-config": "^1.12.1", @@ -4425,8 +4425,8 @@ }, "node_modules/@opendeved/doi-sync-core": { "version": "0.1.0", - "resolved": "git+ssh://git@github.com/OpenDevEd/doi-sync-core.git#06377d1a4797cf00140d60612e69b7f0e1bf9c4c", - "integrity": "sha512-jO75ZVaBpw814CQ3AIpQvGjRCWEOcapwGOflSdiFnEXopSctRfzMZE7tCstwVDlvtrfRZkhhg9zrXH3Ta6mIYA==", + "resolved": "git+ssh://git@github.com/OpenDevEd/doi-sync-core.git#daf9c30a57934ac0c295140e196a6ad3b64f5a53", + "integrity": "sha512-OLHdC/BvoCOnb8DFl8Lyf9FokFA5zX5t9XBNmbmqkCQ0EPZq5kYU6xoRqijKlH0EReyvobOKueZ9bQUZ23ga8w==", "license": "AGPL-3.0-only", "dependencies": { "bottleneck": "^2.19.5", diff --git a/package.json b/package.json index 23bdf959a..ccdb5c077 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "@formatjs/intl-localematcher": "^0.8.1", "@hugeicons/core-free-icons": "^4.3.0", "@hugeicons/react": "^1.1.10", - "@opendeved/doi-sync-core": "github:OpenDevEd/doi-sync-core#06377d1a4797cf00140d60612e69b7f0e1bf9c4c", + "@opendeved/doi-sync-core": "github:OpenDevEd/doi-sync-core#daf9c30a57934ac0c295140e196a6ad3b64f5a53", "@opendeved/paper-pdf": "github:OpenDevEd/paper-pdf#e04f9cb5db106fcb7502ab79b199e8b46021432e", "@openrouter/ai-sdk-provider": "^3.1.0", "@posthog/nextjs-config": "^1.12.1",