From 0b8d9bd04b20f3ec8b3174d2e82d28cae4456957 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 23 Oct 2019 09:53:19 +0200 Subject: [PATCH 1/2] create static folders if needed --- install.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.py b/install.py index e6bd6c3..1167369 100755 --- a/install.py +++ b/install.py @@ -37,6 +37,9 @@ if overwrite: target = '%s.%s.js' % (filename, name) if os.path.exists(target): os.unlink(target) + target_folder = os.path.dirname(target) + if not os.path.exists(target_folder): + os.makedirs(target_folder) os.symlink(src, target) os.chdir(base) From c8e6bc8f83da9e1575d6e4e718ff93fc681eb64e Mon Sep 17 00:00:00 2001 From: j Date: Wed, 23 Oct 2019 15:07:26 +0200 Subject: [PATCH 2/2] list categories --- config.jsonc | 13 +------------ static/js/infoView.collectivecinema.js | 9 +++++---- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/config.jsonc b/config.jsonc index 065c19a..f9b52af 100644 --- a/config.jsonc +++ b/config.jsonc @@ -519,17 +519,6 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution. "find": true, "sort": true }, - { - "id": "project", - "title": "Project", - "type": "string", - "autocomplete": true, - "description": true, - "columnWidth": 120, - "filter": true, - "find": true, - "sort": true - }, { "id": "categories", "title": "Categories", @@ -1160,7 +1149,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution. "findDocuments": {"conditions": [], "operator": "&"}, "followPlayer": true, "help": "", - "icons": "posters", + "icons": "frames", "infoIconSize": 256, "item": "", "itemFind": "", diff --git a/static/js/infoView.collectivecinema.js b/static/js/infoView.collectivecinema.js index 66925d7..363a0f5 100644 --- a/static/js/infoView.collectivecinema.js +++ b/static/js/infoView.collectivecinema.js @@ -229,7 +229,7 @@ pandora.ui.infoView = function(data, isMixed) { // Source & Project -------------------------------------------------------- if (!isMultiple) { - ['source', 'project'].forEach(function(key) { + ['source'].forEach(function(key) { if (canEdit || data[key]) { var $div = $('
') .addClass('OxSelectable') @@ -325,12 +325,13 @@ pandora.ui.infoView = function(data, isMixed) { renderGroup(['date', 'language']); - renderGroup(['director', 'featuring']); + //renderGroup(['director', 'featuring']); if (isMultiple) { - renderGroup(['source', 'project']); + renderGroup(['source']); } - renderGroup(['topic']); + renderGroup(['categories']); + // Summary -------------------------------------------------------------