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 depot.legimi import legimi
+from librarian.meta.types.text import LegimiCategory, Epoch, Kind, Genre, Audience, ThemaCategory, MainThemaCategory
+from depot.publishers.legimi import Legimi
class XslView(TemplateView):
VALUE_TYPES = {
LegimiCategory: {
'widget': 'select',
- 'options': [''] + list(legimi.CATEGORIES.keys()),
+ 'options': [''] + list(Legimi.CATEGORIES.keys()),
+ },
+ Audience: {
+ 'autocomplete': {
+ 'source': '/catalogue/terms/audience/',
+ }
},
ThemaCategory: {
'autocomplete': {
'source': '/catalogue/terms/thema/',
- }
+ },
+ 'chooser': {
+ 'source': '/catalogue/chooser/thema/',
+ },
+ },
+ MainThemaCategory: {
+ 'autocomplete': {
+ 'source': '/catalogue/terms/thema-main/',
+ },
+ 'chooser': {
+ 'source': '/catalogue/chooser/thema-main/',
+ },
},
Epoch: {
'autocomplete': {