fix
[redakcja.git] / src / wlxml / views.py
index f1f5dae..3784b77 100644 (file)
@@ -7,7 +7,7 @@ from librarian.dcparser import BookInfo
 from librarian.document import WLDocument
 from librarian.builders import StandaloneHtmlBuilder
 from librarian.meta.types.wluri import WLURI
 from librarian.document import WLDocument
 from librarian.builders import StandaloneHtmlBuilder
 from librarian.meta.types.wluri import WLURI
-from librarian.meta.types.text import LegimiCategory, Epoch, Kind, Genre, Audience, ThemaCategory
+from librarian.meta.types.text import LegimiCategory, Epoch, Kind, Genre, Audience, ThemaCategory, MainThemaCategory
 from depot.legimi import legimi
 
 
 from depot.legimi import legimi
 
 
@@ -50,11 +50,21 @@ VALUE_TYPES = {
         'widget': 'select',
         'options': [''] + list(legimi.CATEGORIES.keys()),
     },
         'widget': 'select',
         'options': [''] + list(legimi.CATEGORIES.keys()),
     },
+    Audience: {
+        'autocomplete': {
+            'source': '/catalogue/terms/audience/',
+        }
+    },
     ThemaCategory: {
         'autocomplete': {
             'source': '/catalogue/terms/thema/',
         }
     },
     ThemaCategory: {
         'autocomplete': {
             'source': '/catalogue/terms/thema/',
         }
     },
+    MainThemaCategory: {
+        'autocomplete': {
+            'source': '/catalogue/terms/thema-main/',
+        }
+    },
     Epoch: {
         'autocomplete': {
             'source': '/catalogue/terms/epoch/',
     Epoch: {
         'autocomplete': {
             'source': '/catalogue/terms/epoch/',