add additionalSort to itemKeys, fixes #23

This commit is contained in:
j 2016-01-18 16:38:36 +05:30
parent 171834bd12
commit 1cd6f35b86

View file

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