add additionalSort to itemKeys, fixes #23

This commit is contained in:
j 2016-01-18 16:38:36 +05:30
parent 171834bd12
commit 1cd6f35b86
1 changed files with 22 additions and 0 deletions

View File

@ -11,6 +11,7 @@
"id": "title", "id": "title",
"title": "Title", "title": "Title",
"type": "string", "type": "string",
"additionalSort": [{"key": "author", "operator": "+"}, {"key": "date", "operator": "-"}],
"autocomplete": true, "autocomplete": true,
"autocompleteSort": [{"key": "title", "operator": "+"}], "autocompleteSort": [{"key": "title", "operator": "+"}],
"columnRequired": true, "columnRequired": true,
@ -23,6 +24,7 @@
"id": "author", "id": "author",
"title": "Author", "title": "Author",
"type": ["string"], "type": ["string"],
"additionalSort": [{"key": "title", "operator": "+"}, {"key": "date", "operator": "-"}],
"autocomplete": true, "autocomplete": true,
"columnRequired": true, "columnRequired": true,
"columnWidth": 192, "columnWidth": 192,
@ -34,6 +36,7 @@
{ {
"id": "publisher", "id": "publisher",
"title": "Publisher", "title": "Publisher",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}],
"type": ["string"], "type": ["string"],
"autocomplete": true, "autocomplete": true,
"columnWidth": 128, "columnWidth": 128,
@ -45,6 +48,7 @@
"id": "place", "id": "place",
"title": "Place", "title": "Place",
"type": ["string"], "type": ["string"],
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}],
"columnWidth": 128, "columnWidth": 128,
"filter": true, "filter": true,
"find": true, "find": true,
@ -54,6 +58,7 @@
"id": "date", "id": "date",
"title": "Date", "title": "Date",
"type": "string", "type": "string",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}],
"columnWidth": 96, "columnWidth": 96,
"filter": true, "filter": true,
"filterMap": "(-?\\d+)", "filterMap": "(-?\\d+)",
@ -63,6 +68,7 @@
"id": "series", "id": "series",
"title": "Series", "title": "Series",
"type": "string", "type": "string",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}],
"columnWidth": 128, "columnWidth": 128,
"filter": true, "filter": true,
"find": true, "find": true,
@ -72,6 +78,7 @@
"id": "edition", "id": "edition",
"title": "Edition", "title": "Edition",
"type": "string", "type": "string",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}],
"columnWidth": 128, "columnWidth": 128,
"find": true "find": true
}, },
@ -79,6 +86,7 @@
"id": "language", "id": "language",
"title": "Language", "title": "Language",
"type": ["string"], "type": ["string"],
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}],
"columnWidth": 128, "columnWidth": 128,
"filter": true, "filter": true,
"find": true, "find": true,
@ -88,6 +96,7 @@
"id": "pages", "id": "pages",
"title": "Pages", "title": "Pages",
"type": "integer", "type": "integer",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}],
"columnWidth": 96, "columnWidth": 96,
"format": {"type": "unit", "args": ["pages"]}, "format": {"type": "unit", "args": ["pages"]},
"sort": true "sort": true
@ -96,6 +105,7 @@
"id": "categories", "id": "categories",
"title": "Categories", "title": "Categories",
"type": ["string"], "type": ["string"],
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}],
"columnWidth": 128, "columnWidth": 128,
"filter": true, "filter": true,
"find": true, "find": true,
@ -105,6 +115,7 @@
"id": "isbn", "id": "isbn",
"title": "ISBN", "title": "ISBN",
"type": "string", "type": "string",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}],
"format": {"type": "ISBN", "args": [13, true]}, "format": {"type": "ISBN", "args": [13, true]},
"columnWidth": 128, "columnWidth": 128,
"sort": true "sort": true
@ -125,6 +136,7 @@
"id": "extension", "id": "extension",
"title": "Extension", "title": "Extension",
"type": "string", "type": "string",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}],
"columnWidth": 80, "columnWidth": 80,
"format": {"type": "upper", "args": []}, "format": {"type": "upper", "args": []},
"filter": true, "filter": true,
@ -134,6 +146,7 @@
"id": "size", "id": "size",
"title": "Size", "title": "Size",
"type": "integer", "type": "integer",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}],
"columnWidth": 64, "columnWidth": 64,
"format": {"type": "value", "args": ["B"]}, "format": {"type": "value", "args": ["B"]},
"sort": true "sort": true
@ -142,6 +155,7 @@
"id": "id", "id": "id",
"title": "ID", "title": "ID",
"type": "string", "type": "string",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}],
"columnWidth": 96, "columnWidth": 96,
"sort": true "sort": true
}, },
@ -149,6 +163,7 @@
"id": "created", "id": "created",
"title": "First Seen", "title": "First Seen",
"type": "date", "type": "date",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}],
"columnWidth": 144, "columnWidth": 144,
"format": {"type": "date", "args": ["%Y-%m-%d %H:%M:%S"]}, "format": {"type": "date", "args": ["%Y-%m-%d %H:%M:%S"]},
"sort": true "sort": true
@ -157,6 +172,7 @@
"id": "added", "id": "added",
"title": "Date Added", "title": "Date Added",
"type": "date", "type": "date",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}],
"columnWidth": 144, "columnWidth": 144,
"format": {"type": "date", "args": ["%Y-%m-%d %H:%M:%S"]}, "format": {"type": "date", "args": ["%Y-%m-%d %H:%M:%S"]},
"sort": true "sort": true
@ -165,6 +181,7 @@
"id": "modified", "id": "modified",
"title": "Last Modified", "title": "Last Modified",
"type": "date", "type": "date",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}],
"columnWidth": 144, "columnWidth": 144,
"format": {"type": "date", "args": ["%Y-%m-%d %H:%M:%S"]}, "format": {"type": "date", "args": ["%Y-%m-%d %H:%M:%S"]},
"sort": true "sort": true
@ -173,6 +190,7 @@
"id": "accessed", "id": "accessed",
"title": "Last Read", "title": "Last Read",
"type": "date", "type": "date",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}],
"columnWidth": 144, "columnWidth": 144,
"format": {"type": "date", "args": ["%Y-%m-%d %H:%M:%S"]}, "format": {"type": "date", "args": ["%Y-%m-%d %H:%M:%S"]},
"sort": true "sort": true
@ -181,6 +199,7 @@
"id": "timesaccessed", "id": "timesaccessed",
"title": "Times Accessed", "title": "Times Accessed",
"type": "integer", "type": "integer",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}],
"columnWidth": 64, "columnWidth": 64,
"format": {"type": "number", "args": []}, "format": {"type": "number", "args": []},
"sort": true "sort": true
@ -189,6 +208,7 @@
"id": "mediastate", "id": "mediastate",
"title": "Media State", "title": "Media State",
"type": "string", "type": "string",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}],
"find": true, "find": true,
"sort": true, "sort": true,
"values": [ "values": [
@ -201,6 +221,7 @@
"id": "transferadded", "id": "transferadded",
"title": "Added", "title": "Added",
"type": "date", "type": "date",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}],
"format": {"type": "date", "args": ["%Y-%m-%d %H:%M:%S"]}, "format": {"type": "date", "args": ["%Y-%m-%d %H:%M:%S"]},
"sort": true "sort": true
}, },
@ -208,6 +229,7 @@
"id": "transferprogress", "id": "transferprogress",
"title": "Progress", "title": "Progress",
"type": "float", "type": "float",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}],
"format": {"type": "percent", "args": [1, 0]}, "format": {"type": "percent", "args": [1, 0]},
"sort": true "sort": true
}, },