« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/search-select.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/search-select.js')
-rw-r--r--src/search-select.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/search-select.js b/src/search-select.js
index 4470c463..a7dcf81a 100644
--- a/src/search-select.js
+++ b/src/search-select.js
@@ -200,6 +200,15 @@ function genericProcess(thing, opts) {
    : thing.isFlash ? thing.act.name
       : null);
 
+  fields.classification =
+    (thing.isAlbum ? thing.style
+   : thing.isTrack ?
+      (thing.album.style === 'single' &&
+       thing === thing.album.tracks[0]
+        ? 'single'
+        : 'track')
+      : null);
+
   fields.disambiguator =
     fields.parentName;