-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
167 lines (152 loc) · 5.69 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!--
index.html
This page is used to run the CollectionSpace public browser using a local development server.
Use the command: npm run devserver
Then open a browser to: http://localhost:8081
-->
<html>
<head>
<meta charset="UTF-8">
<!--
webpack dev server generates a JS bundle into memory, and updates it as files are edited.
This bundle is served from the URL /cspacePublicBrowser.js, but it does not exist in the
filesystem.
-->
<script src="/cspacePublicBrowser.js"></script>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600" rel="stylesheet">
<style>
body {
font-family: "Open Sans", sans-serif;
}
h1, h2 {
font-weight: 300;
}
h2 {
color: #606060;
}
</style>
</head>
<body>
<div id="cspace-browser"></div>
<script>
// Initialize and configure the application.
cspacePublicBrowser({
gatewayUrl: 'https://core.dev.collectionspace.org/gateway/core',
});
// cspacePublicBrowser({
// "basename": "/collection/museum",
// baseConfig: 'anthro',
// gatewayUrl: 'https://cspace.ohiohistory.org/gateway/ohc',
// filters: {
// fields: {
// objectName: {
// field: 'collectionobjects_common:objectNameList.objectName.displayName',
// },
// objectProductionPlace: {
// field: 'collectionobjects_common:objectProductionPlaceGroupList.objectProductionPlace.displayName',
// },
// material: {
// formatValue: cspacePublicBrowser.formatters.displayName,
// },
// responsibleDepartment: {
// formatValue: (value) => {
// if (!value) return value;
// switch (value) {
// case 'natural-history': return 'Natural History'
// default: return value[0].toUpperCase() + value.slice(1);
// }
// },
// },
// },
// },
// detailSubtitle: (data) => {
// const {
// 'collectionobjects_common:objectNameList': objectNameGroups,
// } = data;
// if (objectNameGroups && objectNameGroups.length > 0) {
// const {
// objectName,
// } = objectNameGroups[0];
// return cspacePublicBrowser.formatters.displayName(objectName);
// }
// return undefined;
// },
// detailFields: {
// fields: {
// responsibleDepartment: {
// format: cspacePublicBrowser.formatters.listOf(cspacePublicBrowser.formatters.filterLink({ linkTextFormat: (value) => {
// if (!value) return value;
// switch (value) {
// case 'natural-history': return 'Natural History'
// default: return value[0].toUpperCase() + value.slice(1);
// }
// }})),
// },
// material: {
// format: cspacePublicBrowser.formatters.listOf(cspacePublicBrowser.formatters.valueAt({
// path: 'material',
// format: cspacePublicBrowser.formatters.filterLink({
// linkTextFormat: cspacePublicBrowser.formatters.displayName,
// }),
// })),
// },
// },
// },
// });
// cspacePublicBrowser({
// baseConfig: 'materials',
/* LOCAL */
// gatewayUrl: 'http://localhost:8180/gateway/materials',
// institutions: {
// TestInstitution1558039857547: {
// title: 'Test Institution',
// gatewayUrl: 'http://localhost:8180/gateway/materials',
// },
// },
/* STAGING */
// gatewayUrl: 'https://materialorder.lyrtech.org/gateway/materials',
// esIndexName: 'materialorder',
// institutions: {
// HarvardUniversityGraduateSchoolofDesign1489090937914: {
// title: 'Harvard University Graduate School of Design',
// gatewayUrl: 'https://gsd.lyrtech.org/gateway/materials',
// },
// RhodeIslandSchoolofDesign1518115923204: {
// title: 'Rhode Island School of Design',
// gatewayUrl: 'https://risd.lyrtech.org/gateway/materials',
// },
// ParsonsSchoolofDesign1552595955932: {
// title: 'Parsons School of Design',
// gatewayUrl: 'https://parsons.lyrtech.org/gateway/materials',
// },
// },
/* PRODUCTION */
// basename: '/collection/materials',
// gatewayUrl: 'https://materialorder.collectionspace.org/gateway/materialorder',
// esIndexName: 'materialorder_collectionspace',
// institutions: {
// HarvardUniversityGraduateSchoolofDesign1489090937914: {
// title: 'Harvard University Graduate School of Design',
// gatewayUrl: 'https://gsd.collectionspace.org/gateway/gsd',
// esIndexName: 'gsd_collectionspace',
// },
// RhodeIslandSchoolofDesign1518115923204: {
// title: 'Rhode Island School of Design',
// gatewayUrl: 'https://risd.collectionspace.org/gateway/risd',
// esIndexName: 'risd_collectionspace',
// },
// ColumbiaUniversityAveryLibrary1630522448579: {
// title: 'Columbia University: Avery Library',
// gatewayUrl: 'https://averylibrary.collectionspace.org/gateway/averylibrary',
// esIndexName: 'averylibrary_collectionspace',
// },
// UniversityofMichiganArtArchitectureEngineeringLibrary1666976084548: {
// title: 'University of Michigan: Art, Architecture & Engineering Library',
// gatewayUrl: 'https://umich.collectionspace.org/gateway/umich',
// esIndexName: 'umich_collectionspace',
// },
// },
// });
</script>
</body>
</html>