add itemTitleKeys to config and move getItemTitle to its own file, use everywhere title strings are used

This commit is contained in:
j 2014-11-21 14:26:50 +00:00
commit fb5a5c5cf7
16 changed files with 41 additions and 49 deletions

View file

@ -105,7 +105,7 @@ pandora.ui.browser = function() {
height: ratio <= 1 ? size : size / ratio,
id: data.id,
info: info,
title: data.title + (data.director && data.director.length ? ' (' + data.director.join(', ') + ')' : ''),
title: pandora.getItemTitle(data),
url: url,
width: ratio >= 1 ? size : size * ratio
};
@ -115,7 +115,7 @@ pandora.ui.browser = function() {
query: pandora.user.ui.find
}), callback);
},
keys: ['director', 'id', 'modified', 'posterRatio', 'title', 'year'],
keys: ['id', 'modified', 'posterRatio'].concat(pandora.site.itemTitleKeys),
max: 1,
min: 1,
orientation: 'horizontal',