fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Paged history loading.
[redakcja.git]
/
src
/
wlxml
/
views.py
diff --git
a/src/wlxml/views.py
b/src/wlxml/views.py
index
281ced5
..
ebc837d
100644
(file)
--- 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.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
from depot.legimi import legimi
@@
-48,7
+48,12
@@
class TagView(DetailView):
VALUE_TYPES = {
LegimiCategory: {
'widget': 'select',
VALUE_TYPES = {
LegimiCategory: {
'widget': 'select',
- 'options': list(legimi.CATEGORIES.keys()),
+ 'options': [''] + list(legimi.CATEGORIES.keys()),
+ },
+ ThemaCategory: {
+ 'autocomplete': {
+ 'source': '/catalogue/terms/thema/',
+ }
},
Epoch: {
'autocomplete': {
},
Epoch: {
'autocomplete': {
@@
-104,6
+109,7
@@
VALUE_TYPES = {
"language": {
'widget': 'select',
'options': [
"language": {
'widget': 'select',
'options': [
+ '',
'pol',
'eng',
'fre',
'pol',
'eng',
'fre',