From 5cc35fd2450147d48b8f2868e628a39396a1519c Mon Sep 17 00:00:00 2001 From: j Date: Tue, 19 Nov 2019 17:17:57 +0100 Subject: [PATCH 1/5] tweak keys --- config.jsonc | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/config.jsonc b/config.jsonc index 0ed5795..111dc16 100644 --- a/config.jsonc +++ b/config.jsonc @@ -643,8 +643,8 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution. "find": true }, { - "id": "runtime", - "title": "Runtime", + "id": "duration", + "title": "Duration", "type": "time", "columnWidth": 90, "format": {"type": "duration", "args": []}, @@ -772,13 +772,6 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution. "sort": true, "value": {"key": "files", "type": "length"} }, - { - "id": "filename", - "title": "Filename", - "type": ["string"], - "capability": "canSeeMedia", - "find": true - }, { "id": "created", "title": "Date Created", From 18a94a4b5d9e26bc4e714fa290b001dc8c263260 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 19 Nov 2019 17:31:04 +0100 Subject: [PATCH 2/5] add genre, fix summary, rename topic->section --- config.jsonc | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/config.jsonc b/config.jsonc index 111dc16..41077d3 100644 --- a/config.jsonc +++ b/config.jsonc @@ -551,14 +551,18 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution. "sort": true }, { - "id": "summary", - "title": "Topic", - "type": "text", - "find": true + "id": "genre", + "title": "Genre", + "type": ["string"], + "autocomplete": true, + "columnWidth": 120, + "filter": true, + "find": true, + "sort": true }, { - "id": "topic", - "title": "Topic", + "id": "section", + "title": "Section", "type": ["string"], "autocomplete": true, "columnWidth": 180, @@ -566,6 +570,12 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution. "find": true, "sort": true }, + { + "id": "summary", + "title": "Summary", + "type": "text", + "find": true + }, { "id": "notes", "title": "Notes", From 999d7c4927441b85d57ed8fa6bba67cf95b25649 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 19 Nov 2019 17:34:22 +0100 Subject: [PATCH 3/5] more topic->section --- config.jsonc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.jsonc b/config.jsonc index 41077d3..ba43a83 100644 --- a/config.jsonc +++ b/config.jsonc @@ -1179,7 +1179,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution. {"id": "director", "sort": [{"key": "items", "operator": "-"}]}, {"id": "country", "sort": [{"key": "items", "operator": "-"}]}, {"id": "year", "sort": [{"key": "name", "operator": "-"}]}, - {"id": "topic", "sort": [{"key": "items", "operator": "-"}]}, + {"id": "section", "sort": [{"key": "items", "operator": "-"}]}, {"id": "keywords", "sort": [{"key": "items", "operator": "-"}]} ], "filtersSize": 176, From f15fd92e177e2de08f8c140d51f6e68897ba5c51 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 19 Nov 2019 17:41:46 +0100 Subject: [PATCH 4/5] mixed notes --- static/js/infoView.erg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/infoView.erg.js b/static/js/infoView.erg.js index e478eb2..ee72d4d 100644 --- a/static/js/infoView.erg.js +++ b/static/js/infoView.erg.js @@ -394,7 +394,7 @@ pandora.ui.infoView = function(data, isMixed) { .append( Ox.EditableContent({ height: 128, - placeholder: formatLight(Ox._(isMixed ? 'Mixed notes' : 'No notes')), + placeholder: formatLight(Ox._(isMixed.notes ? 'Mixed notes' : 'No notes')), tooltip: pandora.getEditTooltip(), type: 'textarea', value: data.notes || '', From bdd2594298506dda59130a188b9a63a3e283815b Mon Sep 17 00:00:00 2001 From: j Date: Tue, 19 Nov 2019 17:43:56 +0100 Subject: [PATCH 5/5] no stats without video --- static/js/infoView.erg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/infoView.erg.js b/static/js/infoView.erg.js index ee72d4d..cdb6391 100644 --- a/static/js/infoView.erg.js +++ b/static/js/infoView.erg.js @@ -319,7 +319,7 @@ pandora.ui.infoView = function(data, isMixed) { // Duration, Aspect Ratio -------------------------------------------------- - if (!isMultiple) { + if (!isMultiple && data.parts && data.rendered) { ['duration', 'aspectratio'].forEach(function(key) { var itemKey = Ox.getObjectById(pandora.site.itemKeys, key), value = data[key] || 0;