From a620a8e38468baa2145fc101c39539fce787f8c8 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 9 Aug 2016 16:07:23 +0200 Subject: [PATCH] fix stuff --- config.jsonc | 4 ++-- ...nfoView.cinenova.js => infoView.cdosea.js} | 19 +++---------------- 2 files changed, 5 insertions(+), 18 deletions(-) rename static/js/{infoView.cinenova.js => infoView.cdosea.js} (97%) diff --git a/config.jsonc b/config.jsonc index 01a7cf6..7e39655 100644 --- a/config.jsonc +++ b/config.jsonc @@ -93,7 +93,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution. text of clips (in grid view, below the icon). Excluding a layer from this list means it will not be included in find annotations. */ - "clipLayers": ["publicnotes", "keywords", "subtitles"], + "clipLayers": ["notes", "keywords", "subtitles"], /* "entities" can be used to store arbitrary data. They can be referenced in annotations, info view, or elsewhere. Each entry defines a specific class @@ -338,7 +338,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution. "find": true }, { - "id": "publicnotes", + "id": "notes", "title": "Notes", "type": "layer", "find": true diff --git a/static/js/infoView.cinenova.js b/static/js/infoView.cdosea.js similarity index 97% rename from static/js/infoView.cinenova.js rename to static/js/infoView.cdosea.js index e48de7a..a6408b6 100644 --- a/static/js/infoView.cinenova.js +++ b/static/js/infoView.cdosea.js @@ -28,7 +28,7 @@ pandora.ui.infoView = function(data) { }).map(function(key){ return key.id; }), - posterKeys = nameKeys.concat(['title', 'year']), + posterKeys = nameKeys.concat(['title', 'date']), statisticsWidth = 128, $bar = Ox.Bar({size: 16}) @@ -223,10 +223,9 @@ pandora.ui.infoView = function(data) { ) .appendTo($text); - // Director, Year and Country ---------------------------------------------- - - renderGroup(['director', 'year', 'country', 'runtime', 'format']); + // Director, Date and Country ---------------------------------------------- + renderGroup(['director', 'date', 'country']); // Summary ----------------------------------------------------------------- @@ -262,12 +261,6 @@ pandora.ui.infoView = function(data) { .appendTo($text); } - $('
') - .addClass('OxSelectable') - .css(css) - .html('cinenova.org') - .appendTo($text); - // Duration, Aspect Ratio -------------------------------------------------- ['duration', 'aspectratio'].forEach(function(key) { @@ -430,12 +423,6 @@ pandora.ui.infoView = function(data) { var ret; if (key == 'year') { ret = formatLink(value, 'year'); - } else if (key == 'runtime') { - if(value < 60) { - ret = Math.round(data[key]) + ' sec'; - } else { - ret = Math.round(data[key] / 60) + ' min'; - } } else if (nameKeys.indexOf(key) > -1) { ret = formatLink(value.split(', '), 'name'); } else if (listKeys.indexOf(key) > -1) {