Add main thema field. Move to calver.
[librarian.git] / src / librarian / meta / types / text.py
index b53aa88..55e8261 100644 (file)
@@ -1,3 +1,6 @@
+# This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
+#
 from .base import MetaValue
 
 
@@ -8,3 +11,35 @@ class TextValue(MetaValue, str):
 
     def __str__(self):
         return self.value
+
+
+
+class NameIdentifier(TextValue):
+    has_language = False
+
+
+class LegimiCategory(NameIdentifier):
+    pass
+
+
+class ThemaCategory(NameIdentifier):
+    pass
+
+class MainThemaCategory(ThemaCategory):
+    pass
+
+
+class Epoch(NameIdentifier):
+    pass
+
+
+class Kind(NameIdentifier):
+    pass
+
+
+class Genre(NameIdentifier):
+    pass
+
+
+class Audience(NameIdentifier):
+    pass