You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -36,15 +37,22 @@ export function getSingleManifest({
36
37
canvas_thumbnail: string;
37
38
task_id?: string;
38
39
task_complete?: boolean;
40
+
rights: string|null;
41
+
viewing_direction: number;
42
+
source: string;
39
43
}>`
40
44
select ${manifestId}::int as manifest_id,
41
45
canvas_links.item_id as canvas_id,
42
46
manifest_count.item_total as canvas_count,
43
47
canvas_resources.default_thumbnail as canvas_thumbnail,
44
48
manifest.task_id as task_id,
45
49
manifest.task_complete as task_complete,
46
-
manifest.published as published
50
+
manifest.published as published,
51
+
manifest_resource.rights as rights,
52
+
manifest_resource.viewing_direction as viewing_direction,
53
+
manifest_resource.source as source
47
54
from iiif_derived_resource manifest
55
+
left join iiif_resource manifest_resource on manifest.resource_id = manifest_resource.id
48
56
left join iiif_derived_resource_items canvas_links on manifest.resource_id = canvas_links.resource_id and canvas_links.site_id = ${siteId}${canvasExclusion}
49
57
left join iiif_resource canvas_resources on canvas_links.item_id = canvas_resources.id
50
58
left join iiif_derived_resource_item_counts manifest_count
@@ -71,6 +79,11 @@ export type ManifestSnippetsRow = {
71
79
source: string;
72
80
resource_id: number;
73
81
canvas_count?: number;
82
+
83
+
// Other properties.
84
+
manifest_source: string|null;
85
+
manifest_rights: string|null;
86
+
manifest_viewing_direction: number;
74
87
};
75
88
76
89
exportfunctiongetManifestSnippets(
@@ -85,14 +98,17 @@ export function getManifestSnippets(
85
98
manifest_aggregate.canvas_thumbnail as canvas_thumbnail,
86
99
manifest_aggregate.canvas_id as canvas_id,
87
100
manifest_aggregate.canvas_count as canvas_count,
88
-
manifest_aggregate.m_published as published,
101
+
manifest_aggregate.published as published,
102
+
manifest_aggregate.rights as manifest_rights,
103
+
manifest_aggregate.viewing_direction as manifest_viewing_direction,
104
+
manifest_aggregate.source as manifest_source,
89
105
metadata.id as metadata_id,
90
106
metadata.key as key,
91
107
metadata.value as value,
92
108
metadata.language as language,
93
109
metadata.source as source,
94
110
metadata.resource_id as resource_id
95
-
from (${query}) manifest_aggregate(manifest_id, canvas_id, canvas_count, canvas_thumbnail, task_id, task_complete, m_published)
0 commit comments