From 09b68b9f6f74b553d99de6a37c909f36e176697c Mon Sep 17 00:00:00 2001 From: j Date: Fri, 10 Aug 2018 10:26:01 +0100 Subject: [PATCH] add filming locations --- config.jsonc | 10 ++++++++++ static/js/infoView.cms.js | 18 +----------------- 2 files changed, 11 insertions(+), 17 deletions(-) diff --git a/config.jsonc b/config.jsonc index 8735957..d7bff84 100644 --- a/config.jsonc +++ b/config.jsonc @@ -700,6 +700,16 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution. "find": true, "sort": true }, + { + "id": "filmingLocations", + "title": "Filming Location", + "type": ["string"], + "autocomplete": false, + "columnWidth": 180, + "filter": false, + "find": true, + "sort": false + }, { "id": "genre", "title": "Genre", diff --git a/static/js/infoView.cms.js b/static/js/infoView.cms.js index 5237fad..fe644ac 100644 --- a/static/js/infoView.cms.js +++ b/static/js/infoView.cms.js @@ -313,23 +313,7 @@ pandora.ui.infoView = function(data) { ]); renderGroup(['actor']); - - data.cast && $('
') - .addClass('OxSelectable') - .css(css) - .html( - formatKey('cast') + data.cast.map(function(value) { - // FIXME: 'uncredited' should be removed on the backend - value.character = value.character.replace('(uncredited)', '').trim(); - return formatValue(value.actor, 'name') - + ( - canSeeAllMetadata && value.character - ? ' ' + formatLight('(' + value.character + ')') - : '' - ); - }).join(', ') - ) - .appendTo($text); + renderGroup(['filmingLocations']); renderGroup(['imdbId', 'genre']);