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, MainThemaCategory
from depot.legimi import legimi
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/',
+ }
+ },
+ MainThemaCategory: {
+ 'autocomplete': {
+ 'source': '/catalogue/terms/thema-main/',
+ }
},
Epoch: {
'autocomplete': {
"language": {
'widget': 'select',
'options': [
+ '',
'pol',
'eng',
'fre',
},
"publisher": {
"autocomplete": {
- "source": ["Fundacja Nowoczesna Polska"]
+ "source": ["Fundacja Wolne Lektury"]
}
},