pandora_collectivecinema/static/js/getItemTitle.collectivecinema.js

14 lines
407 B
JavaScript
Raw Normal View History

2019-11-06 15:27:21 +00:00
'use strict';
pandora.getItemTitle = function(itemData, includeDate) {
return (itemData.title || Ox._('Untitled')) + (
Ox.len(itemData.director) || (includeDate && itemData.date)
? ' (' + (
Ox.len(itemData.director)
? itemData.director
: []
).join(', ') + ')'
: ''
) + (includeDate && itemData.date ? ' ' + itemData.date : '')
};