diff --git a/config.jsonc b/config.jsonc index 97b3974..fbbd626 100644 --- a/config.jsonc +++ b/config.jsonc @@ -636,7 +636,7 @@ displayed at the top of the screen. This title can be customized by adding "/static/js/getItemTitle.SITENAME.js". */ - "itemTitleKeys": ["title", "director", "date"], + "itemTitleKeys": ["title", "director", "year"], /* "itemViews" is an ordered list of available item views. Implemented views are "info", "documents", "player", "editor", "timeline", "clips", "map", diff --git a/static/js/infoView.urg.js b/static/js/infoView.urg.js index b17c4d5..d030280 100644 --- a/static/js/infoView.urg.js +++ b/static/js/infoView.urg.js @@ -260,12 +260,7 @@ pandora.ui.infoView = function(data) { clickLink: pandora.clickLink, collapseToEnd: false, editable: canEdit, - format: function(value) { - return value.replace( - /').html(value); + $html.find('img').each(function(i, img) { + var $img = $(img), + css = { + 'max-width': '256px', + 'max-height': '256px', + 'margin': '0 16px 16px 0' + }; + if (!$img.parents('figure').length) { + css['float'] = 'left'; + } + $img.css(css); + }); + return $html.html(); + } + function renderGroup(keys) { var $element; if (canEdit || keys.filter(function(key) {