13 lines
431 B
JavaScript
13 lines
431 B
JavaScript
'use strict';
|
|
|
|
pandora.getItemTitle = function(itemData, includeYear) {
|
|
return (itemData.title || Ox._('Untitled')) + (
|
|
Ox.len(itemData.director) || (includeYear && itemData.year)
|
|
? ' (' + (
|
|
Ox.len(itemData.director)
|
|
? itemData.director
|
|
: [Ox._('Unknown Director')]
|
|
).join(', ') + ')'
|
|
: ''
|
|
) + (includeYear && itemData.year ? ' ' + itemData.year : '')
|
|
};
|