mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixes #397 - WB web client - Missing person metadata field
This commit is contained in:
parent
86df2296f7
commit
84b60a8672
3 changed files with 21 additions and 5 deletions
|
@ -69,7 +69,7 @@
|
|||
|
||||
setFieldVisibilities(page, item);
|
||||
fillItemInfo(page, item);
|
||||
|
||||
|
||||
if (item.Type == "Person" || item.Type == "Studio" || item.Type == "MusicGenre" || item.Type == "Genre" || item.Type == "Artist") {
|
||||
$('#peopleTab', page).hide();
|
||||
} else {
|
||||
|
@ -143,7 +143,7 @@
|
|||
} else {
|
||||
$('#fldTvCom', page).hide();
|
||||
}
|
||||
|
||||
|
||||
if (item.Type == "Series") {
|
||||
$('#fldStatus', page).show();
|
||||
$('#fldAirDays', page).show();
|
||||
|
@ -210,10 +210,12 @@
|
|||
$('#lblPremiereDate', page).html('Date of birth');
|
||||
$('#lblYear', page).html('Birth year');
|
||||
$('#lblEndDate', page).html('Death date');
|
||||
$('#fldPlaceOfBirth', page).show();
|
||||
} else {
|
||||
$('#lblPremiereDate', page).html('Release date');
|
||||
$('#lblYear', page).html('Year');
|
||||
$('#lblEndDate', page).html('End date');
|
||||
$('#fldPlaceOfBirth', page).hide();
|
||||
}
|
||||
|
||||
if (item.MediaType == "Video") {
|
||||
|
@ -356,6 +358,9 @@
|
|||
$('#txtProductionYear', page).val(item.ProductionYear || "");
|
||||
$('#txtAirTime', page).val(convertTo24HourFormat(item.AirTime || ""));
|
||||
|
||||
var placeofBirth = item.ProductionLocations && item.ProductionLocations.length ? item.ProductionLocations[0] : '';
|
||||
$('#txtPlaceOfBirth', page).val(placeofBirth);
|
||||
|
||||
$('#txtOriginalAspectRatio', page).val(item.AspectRatio || "");
|
||||
|
||||
var providerIds = item.ProviderIds || {};
|
||||
|
@ -542,8 +547,8 @@
|
|||
Tags: editableListViewValues($("#listTags", form)),
|
||||
Studios: editableListViewValues($("#listStudios", form)).map(function (element) { return { Name: element }; }),
|
||||
|
||||
PremiereDate: $('#txtPremiereDate', form).val(),
|
||||
EndDate: $('#txtEndDate', form).val(),
|
||||
PremiereDate: $('#txtPremiereDate', form).val() || null,
|
||||
EndDate: $('#txtEndDate', form).val() || null ,
|
||||
ProductionYear: $('#txtProductionYear', form).val(),
|
||||
AspectRatio: $('#txtOriginalAspectRatio', form).val(),
|
||||
Video3DFormat: $('#select3dFormat', form).val(),
|
||||
|
@ -571,6 +576,13 @@
|
|||
}
|
||||
};
|
||||
|
||||
if (currentItem.Type == "Person") {
|
||||
|
||||
var placeOfBirth = $('#txtPlaceOfBirth', form).val();
|
||||
|
||||
item.ProductionLocations = placeOfBirth ? [placeOfBirth] : [];
|
||||
}
|
||||
|
||||
var updatePromise;
|
||||
|
||||
if (currentItem.Type == "Artist") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue