From baa3b63712f4024b11c69a1d23f67795eb32b28d Mon Sep 17 00:00:00 2001 From: Jan Gerber Date: Mon, 21 Sep 2015 18:23:59 +0100 Subject: [PATCH 1/3] reload if title keys change --- static/js/infoView.mdr.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/static/js/infoView.mdr.js b/static/js/infoView.mdr.js index 46f8427..c75bee0 100644 --- a/static/js/infoView.mdr.js +++ b/static/js/infoView.mdr.js @@ -525,6 +525,14 @@ pandora.ui.infoView = function(data) { } pandora.updateItemContext(); pandora.$ui.browser.value(result.data.id, key, result.data[key]); + if ( + Ox.contains([].conact(pandora.site.itemTitleKeys, nameKeys), key) + && ui.icons == 'posters' + ) { + src = pandora.getMediaURL('/' + data.id + '/poster512.jpg?' + Ox.uid()); + $icon.attr({src: src}); + $reflectionIcon.attr({src: src}); + } pandora.$ui.itemTitle .options({ title: '' + result.data.title From 8f9372bc071cb731f39aacb22af96c78fb50cc1a Mon Sep 17 00:00:00 2001 From: Jan Gerber Date: Mon, 21 Sep 2015 18:32:08 +0100 Subject: [PATCH 2/3] reload poster if poster keys are changed --- static/js/infoView.mdr.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/static/js/infoView.mdr.js b/static/js/infoView.mdr.js index c75bee0..f7fd42c 100644 --- a/static/js/infoView.mdr.js +++ b/static/js/infoView.mdr.js @@ -23,6 +23,7 @@ pandora.ui.infoView = function(data) { 'writer', 'producer', 'featuring' ], listKeys = nameKeys.concat(['language', 'themes', 'groups']), + posterKeys = nameKeys.concat(['title', 'date', 'collection']), statisticsWidth = 128, $bar = Ox.Bar({size: 16}) @@ -525,10 +526,7 @@ pandora.ui.infoView = function(data) { } pandora.updateItemContext(); pandora.$ui.browser.value(result.data.id, key, result.data[key]); - if ( - Ox.contains([].conact(pandora.site.itemTitleKeys, nameKeys), key) - && ui.icons == 'posters' - ) { + if (Ox.contains(posterKeys, key) && ui.icons == 'posters') { src = pandora.getMediaURL('/' + data.id + '/poster512.jpg?' + Ox.uid()); $icon.attr({src: src}); $reflectionIcon.attr({src: src}); From cac86392ee9316b366bb80fcbe4166ef517e8075 Mon Sep 17 00:00:00 2001 From: Jan Gerber Date: Mon, 21 Sep 2015 19:45:37 +0100 Subject: [PATCH 3/3] hasPlaces/hasEvents --- config.jsonc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.jsonc b/config.jsonc index 5fabf3a..72b404e 100644 --- a/config.jsonc +++ b/config.jsonc @@ -671,6 +671,8 @@ "id": "keywords", "title": "Keywords", "canAddAnnotations": {"member": true, "staff": true, "admin": true}, + "hasEvents": true, + "hasPlaces": true, "item": "Keyword", "autocomplete": true, "overlap": true, @@ -680,6 +682,8 @@ "id": "notes", "title": "Notes", "canAddAnnotations": {"member": true, "friend": true, "staff": true, "admin": true}, + "hasEvents": true, + "hasPlaces": true, "item": "Note", "overlap": true, "showInfo": true,