13 lines
407 B
JavaScript
13 lines
407 B
JavaScript
'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 : '')
|
|
};
|