Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colophons #462

Merged
merged 20 commits into from
May 12, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions src/colophons/domain/Colophons.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
import { Provenance } from 'corpus/domain/provenance'

enum ColophonStatus {
Yes = 'Yes',
No = 'No',
Broken = 'Broken',
OnlyColophon = 'Only Colophon',
}

enum ColophonType {
khoidt marked this conversation as resolved.
Show resolved Hide resolved
AsbA = 'Asb a',
AsbB = 'Asb b',
AsbC = 'Asb c',
AsbD = 'Asb d',
AsbE = 'Asb e',
AsbF = 'Asb f',
AsbG = 'Asb g', // BAK 321
AsbH = 'Asb h',
AsbI = 'Asb i',
AsbK = 'Asb k',
AsbL = 'Asb l',
AsbM = 'Asb m',
AsbN = 'Asb n',
AsbO = 'Asb o',
AsbP = 'Asb p',
AsbQ = 'Asb q',
AsbRS = 'Asb r/s',
AsbT = 'Asb t',
AsbU = 'Asb u',
AsbV = 'Asb v',
AsbW = 'Asb w',
AsbUnclear = 'Asb Unclear',
NzkBAK293 = 'Nzk BAK 293',
NzkBAK294 = 'Nzk BAK 294',
NzkBAK295 = 'Nzk BAK 295',
NzkBAK296 = 'Nzk BAK 296',
NzkBAK297 = 'Nzk BAK 297',
}

enum ColophonOwnership {
Library = 'Library',
Private = 'Private',
Individual = 'Individual',
}

enum IndividualType {
Owner = 'Owner',
Scribe = 'Scribe',
Other = 'Other',
}

interface Name {
value: string
isBroken: boolean
isUncertain: boolean
}

interface Individual {
khoidt marked this conversation as resolved.
Show resolved Hide resolved
khoidt marked this conversation as resolved.
Show resolved Hide resolved
name: Name
sonOf: Name
grandsonOf: Name
family: Name
nativeOf: Provenance
type: IndividualType
}

export interface Colophon {
colophonStatus: ColophonStatus
colophonOwnership: ColophonOwnership
colophonType: ColophonType[]
originalFrom: Provenance
writtenIn: Provenance
notesToScribalProcess: string
individuals: Individual[]
}
Loading
Loading