WorkIdentity
Import from: @xbbg/xnews
Defined in: src/types.ts (declaration: types.d.ts:465)
Bibliographic identifiers for one record. Catalogs that scrape file listings often state none of them, which is why origin and confidence are part of the identity rather than assumed by callers.
Properties
confidence
readonlyconfidence:number
Defined in: src/types.ts (declaration: types.d.ts:482)
0-1, and always 1 when origin is "record".
doi?
readonlyoptionaldoi?:string
Defined in: src/types.ts (declaration: types.d.ts:468)
isbn10?
readonlyoptionalisbn10?:string
Defined in: src/types.ts (declaration: types.d.ts:467)
isbn13?
readonlyoptionalisbn13?:string
Defined in: src/types.ts (declaration: types.d.ts:466)
lccn?
readonlyoptionallccn?:string
Defined in: src/types.ts (declaration: types.d.ts:470)
md5?
readonlyoptionalmd5?:string
Defined in: src/types.ts (declaration: types.d.ts:473)
Content hash, for catalogs that address files rather than editions.
oclc?
readonlyoptionaloclc?:string
Defined in: src/types.ts (declaration: types.d.ts:469)
openLibraryId?
readonlyoptionalopenLibraryId?:string
Defined in: src/types.ts (declaration: types.d.ts:471)
origin
readonlyorigin:WorkIdentityOrigin
Defined in: src/types.ts (declaration: types.d.ts:480)
"record" means the provider stated these identifiers. "resolved" means resolveWorkIdentity inferred them from a fuzzy match against an authoritative catalog; callers MUST check confidence before treating them as authoritative.
