Extracted some pages to their own assembly and finished the artifact display page code
This commit is contained in:
@@ -59,7 +59,6 @@ public class ArtifactEntry
|
||||
// Relationships other artifacts have TO this artifact
|
||||
public List<ArtifactEntry> RelatedBy { get; set; } = [];
|
||||
|
||||
|
||||
public int ArtifactGroupingId { get; set; }
|
||||
|
||||
public required ArtifactGrouping ArtifactGrouping { get; set; }
|
||||
|
||||
@@ -18,4 +18,9 @@ public class ArtifactEntryTag
|
||||
public required string Name { get; set; }
|
||||
|
||||
public List<ArtifactEntry> ArtifactEntries { get; set; } = [];
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return Name;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,6 +19,20 @@ public class ArtifactGrouping
|
||||
}
|
||||
}
|
||||
|
||||
public List<FilePathListing> ChildFilePathListings
|
||||
{
|
||||
get
|
||||
{
|
||||
var list = new List<FilePathListing>();
|
||||
foreach (ArtifactEntry entry in ChildArtifactEntries)
|
||||
{
|
||||
list.AddRange(entry.Files);
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
||||
public required ArchiveCategory Category { get; set; }
|
||||
|
||||
private IdentifierFields _identifierFields;
|
||||
@@ -35,7 +49,6 @@ public class ArtifactGrouping
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public required string Title { get; set; }
|
||||
|
||||
public string? Description { get; set; }
|
||||
|
||||
@@ -12,4 +12,9 @@ public class ListedName
|
||||
public required string Value { get; set; }
|
||||
|
||||
public List<ArtifactEntry> ArtifactEntries { get; set; } = [];
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return Value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user