summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js28
1 files changed, 13 insertions, 15 deletions
diff --git a/index.js b/index.js
index 8684702..5dfd657 100644
--- a/index.js
+++ b/index.js
@@ -8,21 +8,19 @@ const __dirname = path.resolve();
var isProduction = process.env.OK_PRODUCTION === "true";
// Charles' types from the spreadsheet
-var tagTypes = [
+var categories = [
"(none)",
- "No6092",
"1620s",
"painting",
"blunt",
"National Gallery of Canada",
- "AGO",
- "courtauld",
- "intervensions",
+ "Art Gallery of Ontario",
+ "Courtauld Institute",
+ "Stankievech",
"connsoeurship",
"double agent",
"forensics",
"black box",
- "Stankievech",
].map((type, index) => [index, type]);
var app = okcms
@@ -48,15 +46,15 @@ var app = okcms
description: { type: "text" },
thumbnail: { type: "image" },
images: { type: "gallery" },
- tag_0: { type: "enum", options: tagTypes, alias: "Tag #1" },
- tag_1: { type: "enum", options: tagTypes, alias: "Tag #2" },
- tag_2: { type: "enum", options: tagTypes, alias: "Tag #3" },
- tag_3: { type: "enum", options: tagTypes, alias: "Tag #4" },
- tag_4: { type: "enum", options: tagTypes, alias: "Tag #5" },
- tag_5: { type: "enum", options: tagTypes, alias: "Tag #6" },
- tag_6: { type: "enum", options: tagTypes, alias: "Tag #7" },
- tag_7: { type: "enum", options: tagTypes, alias: "Tag #8" },
- tag_8: { type: "enum", options: tagTypes, alias: "Tag #9" },
+ tag_0: { type: "enum", options: categories, alias: "Tag #1" },
+ tag_1: { type: "enum", options: categories, alias: "Tag #2" },
+ tag_2: { type: "enum", options: categories, alias: "Tag #3" },
+ tag_3: { type: "enum", options: categories, alias: "Tag #4" },
+ tag_4: { type: "enum", options: categories, alias: "Tag #5" },
+ tag_5: { type: "enum", options: categories, alias: "Tag #6" },
+ tag_6: { type: "enum", options: categories, alias: "Tag #7" },
+ tag_7: { type: "enum", options: categories, alias: "Tag #8" },
+ tag_8: { type: "enum", options: categories, alias: "Tag #9" },
hidden: { type: "flag" },
},
ui: {