enable filters for documents

This commit is contained in:
j 2019-06-07 16:30:09 +01:00
commit a833e95a8b
15 changed files with 536 additions and 31 deletions

View file

@ -165,6 +165,7 @@
"type": "string",
"columnWidth": 120,
//"format": {"type": "date", "args": ["%a, %b %e, %Y"]},
"filter": true,
"sort": true
},
{
@ -220,6 +221,7 @@
},
{
"id": "size",
"filter": true,
"operator": "-",
"title": "Size",
"type": "integer",
@ -1230,11 +1232,19 @@
},
"document": "",
"documents": {},
"documentView": "view",
"documentFiltersSize": 176,
"documentSize": 256,
"documentsSelection": {},
"documentsSort": [{"key": "name", "operator": "+"}],
"documentsView": "grid",
"documentView": "view",
"documentFilters": [
{"id": "author", "sort": [{"key": "items", "operator": "-"}]},
{"id": "place", "sort": [{"key": "items", "operator": "-"}]},
{"id": "date", "sort": [{"key": "name", "operator": "-"}]},
{"id": "publisher", "sort": [{"key": "items", "operator": "-"}]},
{"id": "language", "sort": [{"key": "items", "operator": "-"}]}
],
"edit": "",
"edits": {},
"editSelection": [],
@ -1303,6 +1313,7 @@
"showCalendarControls": true, // fixme: should be false
"showClips": true,
"showDocument": true,
"showDocumentFilters": false,
"showFilters": true,
"showIconBrowser": false,
"showInfo": true,

View file

@ -212,6 +212,7 @@
"type": "string",
"columnWidth": 120,
//"format": {"type": "date", "args": ["%a, %b %e, %Y"]},
"filter": true,
"sort": true
},
{
@ -1709,7 +1710,15 @@
}
},
"documentView": "view",
"documentFilters": [
{"id": "author", "sort": [{"key": "items", "operator": "-"}]},
{"id": "place", "sort": [{"key": "items", "operator": "-"}]},
{"id": "date", "sort": [{"key": "name", "operator": "-"}]},
{"id": "publisher", "sort": [{"key": "items", "operator": "-"}]},
{"id": "language", "sort": [{"key": "items", "operator": "-"}]}
],
"documents": {},
"documentFiltersSize": 176,
"documentSize": 256,
"documentsSelection": {},
"documentsSort": [{"key": "title", "operator": "+"}],
@ -1782,6 +1791,7 @@
"showCalendarControls": true, // fixme: should be false
"showClips": true,
"showDocument": true,
"showDocumentFilters": false,
"showFilters": true,
"showIconBrowser": false,
"showInfo": true,

View file

@ -217,6 +217,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
"type": "string",
"columnWidth": 120,
//"format": {"type": "date", "args": ["%a, %b %e, %Y"]},
"filter": true,
"sort": true
},
{
@ -1122,11 +1123,19 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
},
"document": "",
"documents": {},
"documentFiltersSize": 176,
"documentSize": 256,
"documentView": "view",
"documentsSelection": {},
"documentsSort": [{"key": "title", "operator": "+"}],
"documentsView": "grid",
"documentFilters": [
{"id": "author", "sort": [{"key": "items", "operator": "-"}]},
{"id": "place", "sort": [{"key": "items", "operator": "-"}]},
{"id": "date", "sort": [{"key": "name", "operator": "-"}]},
{"id": "publisher", "sort": [{"key": "items", "operator": "-"}]},
{"id": "language", "sort": [{"key": "items", "operator": "-"}]}
],
"edit": "",
"edits": {},
"editSelection": [],
@ -1191,6 +1200,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
"showCalendarControls": false,
"showClips": true,
"showDocument": true,
"showDocumentFilters": false,
"showFilters": true,
"showIconBrowser": false,
"showInfo": true,