1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

restore people fields

This commit is contained in:
Luke Pulverenti 2015-08-21 11:34:42 -04:00
parent aa454b2f24
commit e17ea4ac1e
5 changed files with 52 additions and 12 deletions

View file

@ -166,6 +166,42 @@
}
LiveTvHelpers.renderOriginalAirDate($('.airDate', page), item);
if (item.Type == "Person" && item.PremiereDate) {
try {
var birthday = parseISO8601Date(item.PremiereDate, { toLocal: true }).toDateString();
$('#itemBirthday', page).show().html(Globalize.translate('BirthDateValue').replace('{0}', birthday));
}
catch (err) {
$('#itemBirthday', page).hide();
}
} else {
$('#itemBirthday', page).hide();
}
if (item.Type == "Person" && item.EndDate) {
try {
var deathday = parseISO8601Date(item.EndDate, { toLocal: true }).toDateString();
$('#itemDeathDate', page).show().html(Globalize.translate('DeathDateValue').replace('{0}', deathday));
}
catch (err) {
$('#itemBirthday', page).hide();
}
} else {
}
if (item.Type == "Person" && item.ProductionLocations && item.ProductionLocations.length) {
var gmap = '<a class="textlink" target="_blank" href="https://maps.google.com/maps?q=' + item.ProductionLocations[0] + '">' + item.ProductionLocations[0] + '</a>';
$('#itemBirthLocation', page).show().html(Globalize.translate('BirthPlaceValue').replace('{0}', gmap)).trigger('create');
} else {
$('#itemBirthLocation', page).hide();
}
});
if (item.LocationType == "Offline") {