« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/things')
-rw-r--r--src/data/things/art-tag.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/data/things/art-tag.js b/src/data/things/art-tag.js
index 9a8a75c5..75fb0f7b 100644
--- a/src/data/things/art-tag.js
+++ b/src/data/things/art-tag.js
@@ -18,6 +18,16 @@ export class ArtTag extends Thing {
     color: Thing.common.color(),
     isContentWarning: Thing.common.flag(false),
 
+    nameShort: {
+      flags: {update: true, expose: true},
+
+      expose: {
+        dependencies: ['name'],
+        transform: (value, {name}) =>
+          value ?? name.replace(/ \(.*?\)$/, ''),
+      },
+    },
+
     // Update only
 
     albumData: Thing.common.wikiData(Album),