Support autocomplete from a group of layers #2831

Closed
opened 2015-09-10 11:10:48 +00:00 by wjt · 2 comments

The idea here is to have several layers which share a set of tags. This
mirrors what we already have if several layers reference the same type
of entity. You might have config like this:

        {
            "id": "keywords",
            "title": "Keywords",
            "canAddAnnotations": {"member": true, "staff": true, "admin": true},
            "item": "Keyword",
            "overlap": true,
            "type": "string",
            "autocomplete": true,
            "autocompleteKeys": ["keywords", "minorkeywords"]
        },
        {
            "id": "minorkeywords",
            "title": "Minor Keywords",
            "canAddAnnotations": {"member": true, "staff": true, "admin": true},
            "item": "Keyword",
            "overlap": true,
            "type": "string",
            "autocomplete": true,
            "autocompleteKeys": ["keywords", "minorkeywords"]
        },

Now, adding new keywords in either bin will offer autocompletions from
the union of the two layers. The other option would be to do this on the
server side, but I thought this was a less invasive way to achieve this.

The idea here is to have several layers which share a set of tags. This mirrors what we already have if several layers reference the same type of entity. You might have config like this: ``` { "id": "keywords", "title": "Keywords", "canAddAnnotations": {"member": true, "staff": true, "admin": true}, "item": "Keyword", "overlap": true, "type": "string", "autocomplete": true, "autocompleteKeys": ["keywords", "minorkeywords"] }, { "id": "minorkeywords", "title": "Minor Keywords", "canAddAnnotations": {"member": true, "staff": true, "admin": true}, "item": "Keyword", "overlap": true, "type": "string", "autocomplete": true, "autocompleteKeys": ["keywords", "minorkeywords"] }, ``` Now, adding new keywords in either bin will offer autocompletions from the union of the two layers. The other option would be to do this on the server side, but I thought this was a less invasive way to achieve this.
j added the
frontend
label 2015-09-10 11:10:48 +00:00
j added this to the 14.04 milestone 2015-09-10 11:10:48 +00:00
0x2620 was assigned by j 2015-09-10 11:10:48 +00:00
j added the
normal
defect
labels 2015-09-10 11:10:48 +00:00
Author

Attachment 0001-Support-autocomplete-from-a-group-of-layers.patch (3221 bytes) added

**Attachment** 0001-Support-autocomplete-from-a-group-of-layers.patch (3221 bytes) added
Owner

fixed in []changeset:pandora,5024

fixed in []changeset:pandora,5024
j added the
fixed
label 2015-09-14 19:29:50 +00:00
j closed this issue 2015-09-14 19:29:50 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: 0x2620/pandora#2831
No description provided.