fix additionalSort

This commit is contained in:
j 2016-01-20 12:13:33 +05:30
parent 9fa06bbde7
commit 18e15fbaf0

View file

@ -36,7 +36,7 @@
{ {
"id": "publisher", "id": "publisher",
"title": "Publisher", "title": "Publisher",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}], "additionalSort": [{"key": "title", "operator": "+"}, {"key": "author", "operator": "+"}],
"type": ["string"], "type": ["string"],
"autocomplete": true, "autocomplete": true,
"columnWidth": 128, "columnWidth": 128,
@ -48,7 +48,7 @@
"id": "place", "id": "place",
"title": "Place", "title": "Place",
"type": ["string"], "type": ["string"],
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}], "additionalSort": [{"key": "title", "operator": "+"}, {"key": "author", "operator": "+"}],
"columnWidth": 128, "columnWidth": 128,
"filter": true, "filter": true,
"find": true, "find": true,
@ -58,7 +58,7 @@
"id": "date", "id": "date",
"title": "Date", "title": "Date",
"type": "string", "type": "string",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}], "additionalSort": [{"key": "title", "operator": "+"}, {"key": "author", "operator": "+"}],
"columnWidth": 96, "columnWidth": 96,
"filter": true, "filter": true,
"filterMap": "(-?\\d+)", "filterMap": "(-?\\d+)",
@ -68,7 +68,7 @@
"id": "series", "id": "series",
"title": "Series", "title": "Series",
"type": "string", "type": "string",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}], "additionalSort": [{"key": "title", "operator": "+"}, {"key": "author", "operator": "+"}],
"columnWidth": 128, "columnWidth": 128,
"filter": true, "filter": true,
"find": true, "find": true,
@ -78,7 +78,6 @@
"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
}, },
@ -86,7 +85,7 @@
"id": "language", "id": "language",
"title": "Language", "title": "Language",
"type": ["string"], "type": ["string"],
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}], "additionalSort": [{"key": "title", "operator": "+"}, {"key": "author", "operator": "+"}],
"columnWidth": 128, "columnWidth": 128,
"filter": true, "filter": true,
"find": true, "find": true,
@ -96,7 +95,7 @@
"id": "pages", "id": "pages",
"title": "Pages", "title": "Pages",
"type": "integer", "type": "integer",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}], "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
@ -105,7 +104,7 @@
"id": "categories", "id": "categories",
"title": "Categories", "title": "Categories",
"type": ["string"], "type": ["string"],
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}], "additionalSort": [{"key": "title", "operator": "+"}, {"key": "author", "operator": "+"}],
"columnWidth": 128, "columnWidth": 128,
"filter": true, "filter": true,
"find": true, "find": true,
@ -115,7 +114,7 @@
"id": "isbn", "id": "isbn",
"title": "ISBN", "title": "ISBN",
"type": "string", "type": "string",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}], "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
@ -136,7 +135,7 @@
"id": "extension", "id": "extension",
"title": "Extension", "title": "Extension",
"type": "string", "type": "string",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}], "additionalSort": [{"key": "title", "operator": "+"}, {"key": "author", "operator": "+"}],
"columnWidth": 80, "columnWidth": 80,
"format": {"type": "upper", "args": []}, "format": {"type": "upper", "args": []},
"filter": true, "filter": true,
@ -146,7 +145,7 @@
"id": "size", "id": "size",
"title": "Size", "title": "Size",
"type": "integer", "type": "integer",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}], "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
@ -155,7 +154,7 @@
"id": "id", "id": "id",
"title": "ID", "title": "ID",
"type": "string", "type": "string",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}], "additionalSort": [{"key": "title", "operator": "+"}, {"key": "author", "operator": "+"}],
"columnWidth": 96, "columnWidth": 96,
"sort": true "sort": true
}, },
@ -163,7 +162,7 @@
"id": "created", "id": "created",
"title": "First Seen", "title": "First Seen",
"type": "date", "type": "date",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}], "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
@ -172,7 +171,7 @@
"id": "added", "id": "added",
"title": "Date Added", "title": "Date Added",
"type": "date", "type": "date",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}], "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,7 +180,7 @@
"id": "modified", "id": "modified",
"title": "Last Modified", "title": "Last Modified",
"type": "date", "type": "date",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}], "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
@ -190,7 +189,7 @@
"id": "accessed", "id": "accessed",
"title": "Last Read", "title": "Last Read",
"type": "date", "type": "date",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}], "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
@ -199,7 +198,7 @@
"id": "timesaccessed", "id": "timesaccessed",
"title": "Times Accessed", "title": "Times Accessed",
"type": "integer", "type": "integer",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}], "additionalSort": [{"key": "title", "operator": "+"}, {"key": "author", "operator": "+"}],
"columnWidth": 64, "columnWidth": 64,
"format": {"type": "number", "args": []}, "format": {"type": "number", "args": []},
"sort": true "sort": true
@ -208,7 +207,7 @@
"id": "mediastate", "id": "mediastate",
"title": "Media State", "title": "Media State",
"type": "string", "type": "string",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}], "additionalSort": [{"key": "title", "operator": "+"}, {"key": "author", "operator": "+"}],
"find": true, "find": true,
"sort": true, "sort": true,
"values": [ "values": [
@ -221,7 +220,7 @@
"id": "transferadded", "id": "transferadded",
"title": "Added", "title": "Added",
"type": "date", "type": "date",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}], "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
}, },
@ -229,7 +228,7 @@
"id": "transferprogress", "id": "transferprogress",
"title": "Progress", "title": "Progress",
"type": "float", "type": "float",
"additionalSort": [{"key": "title", "operator": "-"}, {"key": "author", "operator": "+"}], "additionalSort": [{"key": "title", "operator": "+"}, {"key": "author", "operator": "+"}],
"format": {"type": "percent", "args": [1, 0]}, "format": {"type": "percent", "args": [1, 0]},
"sort": true "sort": true
}, },
@ -237,6 +236,7 @@
"id": "sharemetadata", "id": "sharemetadata",
"title": "Share Metadata", "title": "Share Metadata",
"type": "boolean", "type": "boolean",
"additionalSort": [{"key": "title", "operator": "+"}, {"key": "author", "operator": "+"}],
"columnWidth": 144, "columnWidth": 144,
"format": {"type": "boolean", "args": []}, "format": {"type": "boolean", "args": []},
"sort": true "sort": true