Browse Source

adding people edit screen

Luis Miguel Almánzar 12 years ago
parent
commit
ce971ea4a6

+ 1 - 0
MediaBrowser.Api/LibraryService.cs

@@ -256,6 +256,7 @@ namespace MediaBrowser.Api
             item.Genres = request.Genres;
             item.Tags = request.Tags;
             item.Studios = request.Studios.Select(x=>x.Name).ToList();
+            item.People = request.People.Select(x=> new PersonInfo{Name = x.Name,Role = x.Role,Type = x.Type}).ToList();
 
             item.EndDate = request.EndDate;
             item.PremiereDate = request.PremiereDate;

+ 1 - 0
MediaBrowser.WebDashboard/Api/DashboardService.cs

@@ -462,6 +462,7 @@ namespace MediaBrowser.WebDashboard.Api
                                       "clientsettings.js",
                                       "dashboardpage.js",
                                       "edititemmetadata.js",
+                                      "edititempeople.js",
                                       "edititemimages.js",
                                       "edituserpage.js",
                                       "gamesrecommendedpage.js",

+ 6 - 0
MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj

@@ -84,6 +84,9 @@
     <Content Include="dashboard-ui\boxsets.html">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>
+    <Content Include="dashboard-ui\edititempeople.html">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
     <Content Include="dashboard-ui\css\detailtable.css">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>
@@ -351,6 +354,9 @@
     <Content Include="dashboard-ui\scripts\alphapicker.js">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>
+    <Content Include="dashboard-ui\scripts\edititempeople.js">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
     <Content Include="dashboard-ui\scripts\edititemimages.js">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>