41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace OpenArchival.DataAccess;
|
|
|
|
/// <summary>
|
|
/// Used to display sliders of featured artifacts on the search page before a search is entered.
|
|
/// </summary>
|
|
public class SearchPageSliderEntry
|
|
{
|
|
[Key]
|
|
public int Id { get; set; }
|
|
|
|
public string Title { get; set; } = "";
|
|
|
|
public string Description { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// The tags used to find artifacts for the slider
|
|
/// </summary>
|
|
public List<ArtifactEntryTag> FilterTags { get; set; } = [];
|
|
|
|
/// <summary>
|
|
/// Only set to true when the slider should show up on the home page, if it is false,
|
|
/// it is assumed that this slider should only show up on the featured page
|
|
/// </summary>
|
|
[DefaultValue(false)]
|
|
public bool IsHomePageSlider { get; set; }
|
|
|
|
/// <summary>
|
|
/// Linkage to the homepage configuration if this slider is part of it
|
|
/// </summary>
|
|
public HomePageConfiguration? HomePageConfiguration { get; set; }
|
|
|
|
/// <summary>
|
|
/// The maximum number of artifact entries that should be pulled for this slider
|
|
/// </summary>
|
|
public int MaxCount { get; set; } = 10;
|
|
|
|
}
|