From 1e3daf4b333e85f161ed400b62960d7cb5e6e426 Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 21 Dec 2014 11:44:35 +0000 Subject: [PATCH] update confic docs ('random' item key, 'additionalSort') --- pandora/config.pandora.jsonc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pandora/config.pandora.jsonc b/pandora/config.pandora.jsonc index b58f3bdf..93cc454b 100644 --- a/pandora/config.pandora.jsonc +++ b/pandora/config.pandora.jsonc @@ -140,7 +140,8 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution. ], /* "itemKeys" defines the metadata associated with each item. Required keys - are "*", "id" and "title". + are "*", "id" and "title". Adding a key with "random" as id will produce a + random value; this can be used for a "random" sort order. An itemKey must have the following properties: "id": The id of the key (as known by the server) "title": The title of the key (as displayed by the client) @@ -149,6 +150,9 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution. this type). If type is "layer", this is a reference to the annotations layer with the same id. and can have any of the following properties: + "additionalSort": Ordered list of {key, operator} objects, where key is + another itemKey and operator is "+" or "-". This can be used to + override user.ui.listSort when results are sorted by this key. "autocomplete": If true, the find element will provide autocomplete "autocompleteSort": Sort order of autocomplete suggestions "capability": A capability required to see data for this key