diff --git a/Console/BExIS.Web.Shell/Areas/DCM/BExIS.Modules.Dcm.UI/BExIS.Modules.Dcm.UI.csproj b/Console/BExIS.Web.Shell/Areas/DCM/BExIS.Modules.Dcm.UI/BExIS.Modules.Dcm.UI.csproj
index 11c40f1b3..6bf353e0d 100644
--- a/Console/BExIS.Web.Shell/Areas/DCM/BExIS.Modules.Dcm.UI/BExIS.Modules.Dcm.UI.csproj
+++ b/Console/BExIS.Web.Shell/Areas/DCM/BExIS.Modules.Dcm.UI/BExIS.Modules.Dcm.UI.csproj
@@ -54,6 +54,7 @@
+
@@ -468,6 +469,7 @@
+
Web.config
diff --git a/Console/BExIS.Web.Shell/Areas/DCM/BExIS.Modules.Dcm.UI/Helpers/DCMSeedDataGenerator.cs b/Console/BExIS.Web.Shell/Areas/DCM/BExIS.Modules.Dcm.UI/Helpers/DCMSeedDataGenerator.cs
index 5892e2856..0e725f44d 100644
--- a/Console/BExIS.Web.Shell/Areas/DCM/BExIS.Modules.Dcm.UI/Helpers/DCMSeedDataGenerator.cs
+++ b/Console/BExIS.Web.Shell/Areas/DCM/BExIS.Modules.Dcm.UI/Helpers/DCMSeedDataGenerator.cs
@@ -267,6 +267,13 @@ public void GenerateSeedData()
#endregion entity template
+ #region New Metadata Edit, Config and View
+ // TODO add to feature
+ operationManager.Create("DCM", "ComponentConfig", "*");
+ // operationManager.Create("DCM", "MetadateEdit", "*");
+
+ #endregion
+
#region public available
//because of reuse in ddm this controller must be public
diff --git a/Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI/Ddm.Settings.json b/Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI/Ddm.Settings.json
index 2b6ade261..e65afc4c5 100644
--- a/Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI/Ddm.Settings.json
+++ b/Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI/Ddm.Settings.json
@@ -38,6 +38,13 @@
"type": "Boolean",
"description": "If set to true, the minor version tag can be assigned to dataset versions to display changes in more detail."
},
+ {
+ "key": "curator_required_for_tags",
+ "title": "Manage release tags requires curator",
+ "value": false,
+ "type": "Boolean",
+ "description": "If set to true, only curators can edit and set tags. Users can only send a request."
+ },
{
"key": "search_result_presentation",
"title": "Search Result Presentation",
@@ -82,18 +89,18 @@
"description": "Group name all curators assigned to. This is needed for the curation tool to know who is curator."
},
{
- "key": "curation",
- "title": "Configuration Settings for Curation",
- "value": {
- "curationLabels": [
- {
- "name": "custom-label-1",
- "color": "#ff0000"
- }
- ]
- },
- "type": "JSON",
- "description": "Customize the labels that can be used in the curation. \nExample: \"curationLabels\": [ { \"name\": \"custom-label-1\", \"color\": \"#ff0000\" }, ... ]"
+ "key": "curation",
+ "title": "Configuration Settings for Curation",
+ "value": {
+ "curationLabels": [
+ {
+ "name": "custom-label-1",
+ "color": "#ff0000"
+ }
+ ]
+ },
+ "type": "JSON",
+ "description": "Customize the labels that can be used in the curation. \nExample: \"curationLabels\": [ { \"name\": \"custom-label-1\", \"color\": \"#ff0000\" }, ... ]"
}
]
diff --git a/Console/BExIS.Web.Shell/Areas/DIM/BExIS.Modules.Dim.UI/Controllers/API/DatasetOutController.cs b/Console/BExIS.Web.Shell/Areas/DIM/BExIS.Modules.Dim.UI/Controllers/API/DatasetOutController.cs
index f4b5c1530..a938ec66e 100644
--- a/Console/BExIS.Web.Shell/Areas/DIM/BExIS.Modules.Dim.UI/Controllers/API/DatasetOutController.cs
+++ b/Console/BExIS.Web.Shell/Areas/DIM/BExIS.Modules.Dim.UI/Controllers/API/DatasetOutController.cs
@@ -120,7 +120,7 @@ public HttpResponseMessage Get(long id)
ApiDatasetHelper apiDatasetHelper = new ApiDatasetHelper();
// get content
- ApiDatasetModel datasetModel = apiDatasetHelper.GetContent(datasetVersion, id, versionNumber, dataset.MetadataStructure.Id, dataStructureId);
+ ApiDatasetModel datasetModel = apiDatasetHelper.GetContent(datasetVersion, id, versionNumber, dataset.MetadataStructure.Id, dataStructureId, dataset.EntityTemplate.Id);
var datastructureId = dataset.DataStructure==null?0: dataset.DataStructure.Id;
// get links
@@ -283,7 +283,7 @@ private HttpResponseMessage get(long id, long versionId)
ApiDatasetHelper apiDatasetHelper = new ApiDatasetHelper();
// get content
- ApiDatasetModel datasetModel = apiDatasetHelper.GetContent(datasetVersion, id, version, metadataStructureId, dataset.DataStructure.Id);
+ ApiDatasetModel datasetModel = apiDatasetHelper.GetContent(datasetVersion, id, version, metadataStructureId, dataset.DataStructure.Id, dataset.EntityTemplate.Id);
EntityReferenceHelper entityReferenceHelper = new EntityReferenceHelper();
diff --git a/Console/BExIS.Web.Shell/Areas/DIM/BExIS.Modules.Dim.UI/Controllers/ExportController.cs b/Console/BExIS.Web.Shell/Areas/DIM/BExIS.Modules.Dim.UI/Controllers/ExportController.cs
index c3c0481f1..5ade61ae9 100644
--- a/Console/BExIS.Web.Shell/Areas/DIM/BExIS.Modules.Dim.UI/Controllers/ExportController.cs
+++ b/Console/BExIS.Web.Shell/Areas/DIM/BExIS.Modules.Dim.UI/Controllers/ExportController.cs
@@ -369,7 +369,7 @@ public ActionResult GenerateZip(long id, long versionid, string format,bool with
// manifest
ApiDatasetHelper apiDatasetHelper = new ApiDatasetHelper();
// get content
- ApiDatasetModel apimodel = apiDatasetHelper.GetContent(datasetVersion, id, datasetVersionNumber, datasetVersion.Dataset.MetadataStructure.Id, dataStructureId);
+ ApiDatasetModel apimodel = apiDatasetHelper.GetContent(datasetVersion, id, datasetVersionNumber, datasetVersion.Dataset.MetadataStructure.Id, dataStructureId, datasetVersion.Dataset.EntityTemplate.Id);
GeneralMetadataModel datasetModel = GeneralMetadataModel.Map(apimodel);
datasetModel.DownloadInformation.DownloadDate = DateTime.Now.ToString(new CultureInfo("en-US"));
diff --git a/Console/BExIS.Web.Shell/Areas/DIM/BExIS.Modules.Dim.UI/Helpers/ApiDatasetHelper.cs b/Console/BExIS.Web.Shell/Areas/DIM/BExIS.Modules.Dim.UI/Helpers/ApiDatasetHelper.cs
index d70cc9a16..611c272fa 100644
--- a/Console/BExIS.Web.Shell/Areas/DIM/BExIS.Modules.Dim.UI/Helpers/ApiDatasetHelper.cs
+++ b/Console/BExIS.Web.Shell/Areas/DIM/BExIS.Modules.Dim.UI/Helpers/ApiDatasetHelper.cs
@@ -22,7 +22,7 @@ namespace BExIS.Modules.Dim.UI.Helpers
{
public class ApiDatasetHelper
{
- public ApiDatasetModel GetContent(DatasetVersion datasetVersion, long id, int versionNumber, long metadataStructureId, long dataStructureId)
+ public ApiDatasetModel GetContent(DatasetVersion datasetVersion, long id, int versionNumber, long metadataStructureId, long dataStructureId, long entityTemplateId)
{
ApiDatasetModel datasetModel = new ApiDatasetModel()
{
@@ -33,7 +33,8 @@ public ApiDatasetModel GetContent(DatasetVersion datasetVersion, long id, int ve
Title = datasetVersion.Title,
Description = datasetVersion.Description,
DataStructureId = dataStructureId,
- MetadataStructureId = metadataStructureId
+ MetadataStructureId = metadataStructureId,
+ EntityTemplateId = entityTemplateId
};
Dictionary> objects = new Dictionary>();
diff --git a/Console/BExIS.Web.Shell/Areas/DIM/BExIS.Modules.Dim.UI/Models/API/ApiModels.cs b/Console/BExIS.Web.Shell/Areas/DIM/BExIS.Modules.Dim.UI/Models/API/ApiModels.cs
index 25e7dff01..929208a6b 100644
--- a/Console/BExIS.Web.Shell/Areas/DIM/BExIS.Modules.Dim.UI/Models/API/ApiModels.cs
+++ b/Console/BExIS.Web.Shell/Areas/DIM/BExIS.Modules.Dim.UI/Models/API/ApiModels.cs
@@ -36,6 +36,7 @@ public class ApiDatasetModel
public string Description { get; set; }
public long DataStructureId { get; set; }
public long MetadataStructureId { get; set; }
+ public long EntityTemplateId { get; set; }
public bool IsPublic { get; set; }
public string PublicationDate { get; set; }
//public string VersionName { get; set; }