X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/17d853e607e5db956defac483a76459eb654811c..c2103994301a743b0e3e620da80d795124d9ec47:/src/wlxml/views.py?ds=sidebyside diff --git a/src/wlxml/views.py b/src/wlxml/views.py index edf8a920..ebc837dc 100644 --- a/src/wlxml/views.py +++ b/src/wlxml/views.py @@ -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.meta.types.text import LegimiCategory, Epoch, Kind, Genre, Audience +from librarian.meta.types.text import LegimiCategory, Epoch, Kind, Genre, Audience, ThemaCategory from depot.legimi import legimi @@ -50,6 +50,11 @@ VALUE_TYPES = { 'widget': 'select', 'options': [''] + list(legimi.CATEGORIES.keys()), }, + ThemaCategory: { + 'autocomplete': { + 'source': '/catalogue/terms/thema/', + } + }, Epoch: { 'autocomplete': { 'source': '/catalogue/terms/epoch/',