Skip to content

Commit fb4021f

Browse files
merge rc
2 parents eb899cd + 8c561a0 commit fb4021f

7 files changed

Lines changed: 35 additions & 17 deletions

File tree

Console/BExIS.Web.Shell/Areas/DCM/BExIS.Modules.Dcm.UI/BExIS.Modules.Dcm.UI.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
<Compile Include="Controllers\API\DataInController.cs" />
5555
<Compile Include="Controllers\API\DatasetInController.cs" />
5656
<Compile Include="Controllers\API\MetadataInController.cs" />
57+
<Compile Include="Controllers\ComponentConfigController.cs" />
5758
<Compile Include="Controllers\CreateController.cs" />
5859
<Compile Include="Controllers\EditController.cs" />
5960
<Compile Include="Controllers\EntityTemplatesController.cs" />
@@ -468,6 +469,7 @@
468469
<Content Include="Views\Form\_metadataParameterViewOffline.cshtml" />
469470
<Content Include="Web.config" />
470471
<Content Include="Views\Form\_displayname.cshtml" />
472+
<Content Include="Views\ComponentConfig\Index.cshtml" />
471473
<None Include="Web.Debug.config">
472474
<DependentUpon>Web.config</DependentUpon>
473475
</None>

Console/BExIS.Web.Shell/Areas/DCM/BExIS.Modules.Dcm.UI/Helpers/DCMSeedDataGenerator.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,13 @@ public void GenerateSeedData()
267267

268268
#endregion entity template
269269

270+
#region New Metadata Edit, Config and View
271+
// TODO add to feature
272+
operationManager.Create("DCM", "ComponentConfig", "*");
273+
// operationManager.Create("DCM", "MetadateEdit", "*");
274+
275+
#endregion
276+
270277
#region public available
271278

272279
//because of reuse in ddm this controller must be public

Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI/Ddm.Settings.json

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@
3838
"type": "Boolean",
3939
"description": "If set to true, the minor version tag can be assigned to dataset versions to display changes in more detail."
4040
},
41+
{
42+
"key": "curator_required_for_tags",
43+
"title": "Manage release tags requires curator",
44+
"value": false,
45+
"type": "Boolean",
46+
"description": "If set to true, only curators can edit and set tags. Users can only send a request."
47+
},
4148
{
4249
"key": "search_result_presentation",
4350
"title": "Search Result Presentation",
@@ -82,18 +89,18 @@
8289
"description": "Group name all curators assigned to. This is needed for the curation tool to know who is curator."
8390
},
8491
{
85-
"key": "curation",
86-
"title": "Configuration Settings for Curation",
87-
"value": {
88-
"curationLabels": [
89-
{
90-
"name": "custom-label-1",
91-
"color": "#ff0000"
92-
}
93-
]
94-
},
95-
"type": "JSON",
96-
"description": "Customize the labels that can be used in the curation. \nExample: \"curationLabels\": [ { \"name\": \"custom-label-1\", \"color\": \"#ff0000\" }, ... ]"
92+
"key": "curation",
93+
"title": "Configuration Settings for Curation",
94+
"value": {
95+
"curationLabels": [
96+
{
97+
"name": "custom-label-1",
98+
"color": "#ff0000"
99+
}
100+
]
101+
},
102+
"type": "JSON",
103+
"description": "Customize the labels that can be used in the curation. \nExample: \"curationLabels\": [ { \"name\": \"custom-label-1\", \"color\": \"#ff0000\" }, ... ]"
97104
}
98105

99106
]

Console/BExIS.Web.Shell/Areas/DIM/BExIS.Modules.Dim.UI/Controllers/API/DatasetOutController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public HttpResponseMessage Get(long id)
120120

121121
ApiDatasetHelper apiDatasetHelper = new ApiDatasetHelper();
122122
// get content
123-
ApiDatasetModel datasetModel = apiDatasetHelper.GetContent(datasetVersion, id, versionNumber, dataset.MetadataStructure.Id, dataStructureId);
123+
ApiDatasetModel datasetModel = apiDatasetHelper.GetContent(datasetVersion, id, versionNumber, dataset.MetadataStructure.Id, dataStructureId, dataset.EntityTemplate.Id);
124124
var datastructureId = dataset.DataStructure==null?0: dataset.DataStructure.Id;
125125

126126
// get links
@@ -283,7 +283,7 @@ private HttpResponseMessage get(long id, long versionId)
283283

284284
ApiDatasetHelper apiDatasetHelper = new ApiDatasetHelper();
285285
// get content
286-
ApiDatasetModel datasetModel = apiDatasetHelper.GetContent(datasetVersion, id, version, metadataStructureId, dataset.DataStructure.Id);
286+
ApiDatasetModel datasetModel = apiDatasetHelper.GetContent(datasetVersion, id, version, metadataStructureId, dataset.DataStructure.Id, dataset.EntityTemplate.Id);
287287

288288

289289
EntityReferenceHelper entityReferenceHelper = new EntityReferenceHelper();

Console/BExIS.Web.Shell/Areas/DIM/BExIS.Modules.Dim.UI/Controllers/ExportController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ public ActionResult GenerateZip(long id, long versionid, string format,bool with
369369
// manifest
370370
ApiDatasetHelper apiDatasetHelper = new ApiDatasetHelper();
371371
// get content
372-
ApiDatasetModel apimodel = apiDatasetHelper.GetContent(datasetVersion, id, datasetVersionNumber, datasetVersion.Dataset.MetadataStructure.Id, dataStructureId);
372+
ApiDatasetModel apimodel = apiDatasetHelper.GetContent(datasetVersion, id, datasetVersionNumber, datasetVersion.Dataset.MetadataStructure.Id, dataStructureId, datasetVersion.Dataset.EntityTemplate.Id);
373373
GeneralMetadataModel datasetModel = GeneralMetadataModel.Map(apimodel);
374374

375375
datasetModel.DownloadInformation.DownloadDate = DateTime.Now.ToString(new CultureInfo("en-US"));

Console/BExIS.Web.Shell/Areas/DIM/BExIS.Modules.Dim.UI/Helpers/ApiDatasetHelper.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace BExIS.Modules.Dim.UI.Helpers
2222
{
2323
public class ApiDatasetHelper
2424
{
25-
public ApiDatasetModel GetContent(DatasetVersion datasetVersion, long id, int versionNumber, long metadataStructureId, long dataStructureId)
25+
public ApiDatasetModel GetContent(DatasetVersion datasetVersion, long id, int versionNumber, long metadataStructureId, long dataStructureId, long entityTemplateId)
2626
{
2727
ApiDatasetModel datasetModel = new ApiDatasetModel()
2828
{
@@ -33,7 +33,8 @@ public ApiDatasetModel GetContent(DatasetVersion datasetVersion, long id, int ve
3333
Title = datasetVersion.Title,
3434
Description = datasetVersion.Description,
3535
DataStructureId = dataStructureId,
36-
MetadataStructureId = metadataStructureId
36+
MetadataStructureId = metadataStructureId,
37+
EntityTemplateId = entityTemplateId
3738
};
3839

3940
Dictionary<string, List<XObject>> objects = new Dictionary<string, List<XObject>>();

Console/BExIS.Web.Shell/Areas/DIM/BExIS.Modules.Dim.UI/Models/API/ApiModels.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public class ApiDatasetModel
3636
public string Description { get; set; }
3737
public long DataStructureId { get; set; }
3838
public long MetadataStructureId { get; set; }
39+
public long EntityTemplateId { get; set; }
3940
public bool IsPublic { get; set; }
4041
public string PublicationDate { get; set; }
4142
//public string VersionName { get; set; }

0 commit comments

Comments
 (0)