Skip to content

Commit 950f7ac

Browse files
authored
Merge pull request #2302 from BEXIS2/rc
Rc
2 parents 194732c + 152178f commit 950f7ac

File tree

10 files changed

+342
-15
lines changed

10 files changed

+342
-15
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public void GenerateSeedData()
308308
if (!metadataStructureManager.Repo.Get().Any(m => m.Name.Equals("Publication")))
309309
{
310310
string titleXPath = "Metadata/publication/publication/Title/TitleDatatype_string";
311-
string descriptionXpath = "Metadata/publication/publication/Abstract/AbstractXmlSchemaSimpleType";
311+
string descriptionXpath = "Metadata/publication/publication/Abstract/AbstractDatatype_string";
312312

313313
ImportSchema("Publication", "BEXIS2-Publication-Schema-draft.xsd", "Metadata", publication.Name, publication.EntityType.FullName, titleXPath, descriptionXpath);
314314
}

Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI/Helpers/DdmSeedDataGenerator.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using System.Collections.Generic;
1010
using System.Linq;
1111
using Vaiona.Web.Mvc.Modularity;
12+
using static System.Net.Mime.MediaTypeNames;
1213

1314
namespace BExIS.Modules.Ddm.UI.Helpers
1415
{
@@ -192,6 +193,12 @@ private void createCitationMappingConcept()
192193
{
193194
using (var conceptManager = new ConceptManager())
194195
{
196+
197+
/*
198+
APA,
199+
RIS,
200+
Text,
201+
Bibtex*/
195202
foreach (CitationFormat value in Enum.GetValues(typeof(CitationFormat)))
196203
{
197204
var keys = new List<MappingKey>();
@@ -261,7 +268,7 @@ private void createCitationMappingConcept()
261268
if (!keys.Any(k => k.Name.Equals("data/authorNames")))
262269
authors = conceptManager.CreateMappingKey("AuthorNames", "", "", false, true, "data/authorNames", concept);
263270

264-
if (!keys.Any(k => k.Name.Equals("data/authorNames/authorName")))
271+
if (!keys.Any(k => k.Name.Equals("data/authorNames/authorname")))
265272
conceptManager.CreateMappingKey("AuthorName", "", "", false, false, "data/authorNames/authorName", concept, authors);
266273
}
267274
}

Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI/Models/CitationModels.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public class CitationDataModel
4343
[XmlElement("version")]
4444
public string Version { get; set; }
4545

46-
[XmlElement("projects")]
46+
[XmlArray("projects")]
47+
[XmlArrayItem("project")]
4748
public List<string> Projects { get; set; }
4849

4950
[XmlElement("year")]
@@ -70,8 +71,6 @@ public class CitationDataModel
7071
//public string EntityType { get; set; }
7172

7273
[XmlElement("entryType")]
73-
[Required(ErrorMessage = "Entry Type is required")]
74-
[MinLength(1, ErrorMessage = "Entry Type cannot be empty")]
7574
public string EntryType { get; set; }
7675

7776
[XmlElement("entityName")]

Console/BExIS.Web.Shell/Areas/DIM/BExIS.Modules.Dim.UI/BExIS.Modules.Dim.UI.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@
277277
<Reference Include="Telerik.Web.Mvc, Version=2013.2.611.340, Culture=neutral, PublicKeyToken=29ac1a93ec063d92, processorArchitecture=MSIL">
278278
<HintPath>..\..\..\..\..\packages\TelerikMvcExtensions.2013.2.611\lib\net40\Telerik.Web.Mvc.dll</HintPath>
279279
</Reference>
280-
<Reference Include="Vaelastrasz.Library, Version=5.0.2.0, Culture=neutral, processorArchitecture=MSIL">
281-
<HintPath>..\..\..\..\..\packages\Vaelastrasz.Library.5.0.2\lib\netstandard2.0\Vaelastrasz.Library.dll</HintPath>
280+
<Reference Include="Vaelastrasz.Library, Version=6.0.0.0, Culture=neutral, processorArchitecture=MSIL">
281+
<HintPath>..\..\..\..\..\packages\Vaelastrasz.Library.6.0.0\lib\netstandard2.0\Vaelastrasz.Library.dll</HintPath>
282282
</Reference>
283283
<Reference Include="WebActivatorEx, Version=2.0.0.0, Culture=neutral, PublicKeyToken=7b26dc2a43f6a0d4, processorArchitecture=MSIL">
284284
<HintPath>..\..\..\..\..\packages\WebActivatorEx.2.2.0\lib\net40\WebActivatorEx.dll</HintPath>

Console/BExIS.Web.Shell/Areas/DIM/BExIS.Modules.Dim.UI/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,6 @@
8686
<package id="System.Xml.XDocument" version="4.3.0" targetFramework="net48" />
8787
<package id="System.Xml.XmlSerializer" version="4.3.0" targetFramework="net48" />
8888
<package id="TelerikMvcExtensions" version="2013.2.611" targetFramework="net48" />
89-
<package id="Vaelastrasz.Library" version="5.0.2" targetFramework="net48" />
89+
<package id="Vaelastrasz.Library" version="6.0.0" targetFramework="net48" />
9090
<package id="WebActivatorEx" version="2.2.0" targetFramework="net48" />
9191
</packages>

Modules/DIM/BExIS.Dim.Helper/BExIS.Dim.Helpers.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@
150150
</Reference>
151151
<Reference Include="System.Xml.Linq" />
152152
<Reference Include="System.Xml" />
153-
<Reference Include="Vaelastrasz.Library, Version=5.0.2.0, Culture=neutral, processorArchitecture=MSIL">
154-
<HintPath>..\..\..\packages\Vaelastrasz.Library.5.0.2\lib\netstandard2.0\Vaelastrasz.Library.dll</HintPath>
153+
<Reference Include="Vaelastrasz.Library, Version=6.0.0.0, Culture=neutral, processorArchitecture=MSIL">
154+
<HintPath>..\..\..\packages\Vaelastrasz.Library.6.0.0\lib\netstandard2.0\Vaelastrasz.Library.dll</HintPath>
155155
</Reference>
156156
</ItemGroup>
157157
<ItemGroup>

Modules/DIM/BExIS.Dim.Helper/Export/GenericDataRepoConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public string Convert(long datasetVersionId)
123123
string path = Path.Combine(AppConfiguration.DataPath, cd.URI);
124124
string name = cd.URI.Split('\\').Last();
125125

126-
if (cd.Name.StartsWith("generated") && !cd.Name.Equals("text/csv")) continue;
126+
if (cd.Name.StartsWith("generated") && !cd.MimeType.Equals(broker.PrimaryDataFormat)) continue;
127127

128128
if (FileHelper.FileExist(path))
129129
{

Modules/DIM/BExIS.Dim.Helper/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@
2828
<package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net48" />
2929
<package id="System.ValueTuple" version="4.5.0" targetFramework="net48" />
3030
<package id="System.Xml.XmlSerializer" version="4.3.0" targetFramework="net48" />
31-
<package id="Vaelastrasz.Library" version="5.0.2" targetFramework="net48" />
31+
<package id="Vaelastrasz.Library" version="6.0.0" targetFramework="net48" />
3232
</packages>

0 commit comments

Comments
 (0)