@digitalculture/ochre-sdk 0.14.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -380,6 +380,7 @@ type Bibliography = {
|
|
|
380
380
|
identification: Identification | null;
|
|
381
381
|
projectIdentification: Identification | null;
|
|
382
382
|
context: Context | null;
|
|
383
|
+
image: Image | null;
|
|
383
384
|
citation: {
|
|
384
385
|
details: string | null;
|
|
385
386
|
format: string | null;
|
|
@@ -473,6 +474,7 @@ type Text = {
|
|
|
473
474
|
copyright: string | null;
|
|
474
475
|
watermark: string | null;
|
|
475
476
|
identification: Identification;
|
|
477
|
+
image: Image | null;
|
|
476
478
|
creators: Array<Person>;
|
|
477
479
|
editors: Array<Person>;
|
|
478
480
|
notes: Array<Note>;
|
|
@@ -492,9 +494,7 @@ type Section = {
|
|
|
492
494
|
variant: "translation" | "phonemic";
|
|
493
495
|
type: string;
|
|
494
496
|
identification: Identification;
|
|
495
|
-
|
|
496
|
-
identification: Identification;
|
|
497
|
-
};
|
|
497
|
+
projectIdentification: Identification | null;
|
|
498
498
|
};
|
|
499
499
|
/**
|
|
500
500
|
* Represents a tree structure containing resources, spatial units and concepts
|
package/dist/index.mjs
CHANGED
|
@@ -1368,6 +1368,7 @@ function parseBibliography(bibliography, metadata) {
|
|
|
1368
1368
|
identification: bibliography.identification ? parseIdentification(bibliography.identification) : null,
|
|
1369
1369
|
projectIdentification: bibliography.project?.identification ? parseIdentification(bibliography.project.identification) : null,
|
|
1370
1370
|
context: bibliography.context ? parseContext(bibliography.context) : null,
|
|
1371
|
+
image: bibliography.image ? parseImage(bibliography.image) : null,
|
|
1371
1372
|
citation: {
|
|
1372
1373
|
details: bibliography.citationDetails ?? null,
|
|
1373
1374
|
format: bibliography.citationFormat ?? null,
|
|
@@ -1453,6 +1454,7 @@ function parseText(text, metadata) {
|
|
|
1453
1454
|
copyright: "copyright" in text && text.copyright != null ? parseStringContent(text.copyright) : null,
|
|
1454
1455
|
watermark: "watermark" in text && text.watermark != null ? parseStringContent(text.watermark) : null,
|
|
1455
1456
|
identification: parseIdentification(text.identification),
|
|
1457
|
+
image: text.image ? parseImage(text.image) : null,
|
|
1456
1458
|
creators: text.creators ? parsePersons(Array.isArray(text.creators.creator) ? text.creators.creator : [text.creators.creator]) : [],
|
|
1457
1459
|
editors: text.editions ? parsePersons(Array.isArray(text.editions.editor) ? text.editions.editor : [text.editions.editor]) : [],
|
|
1458
1460
|
notes: text.notes ? parseNotes(Array.isArray(text.notes.note) ? text.notes.note : [text.notes.note]) : [],
|
|
@@ -1488,7 +1490,7 @@ function parseSection(section, variant) {
|
|
|
1488
1490
|
variant,
|
|
1489
1491
|
type: section.type,
|
|
1490
1492
|
identification: parseIdentification(section.identification),
|
|
1491
|
-
|
|
1493
|
+
projectIdentification: section.project?.identification ? parseIdentification(section.project.identification) : null
|
|
1492
1494
|
};
|
|
1493
1495
|
}
|
|
1494
1496
|
/**
|
package/package.json
CHANGED