using System.Xml.Linq; using HaWeb.Models; public class HandCollection : HaWeb.XMLParser.IXMLCollection { public string Key { get; } = "hands"; public string[] xPath { get; } = new string[] { "/opus/data/document/letterText//hand", "/opus/document/letterText//hand", "/opus/data/traditions/letterTradition//hand", "/opus/traditions/letterTradition//hand" }; public Func GenerateKey { get; } = GetKey; public Func?>? GenerateDataFields { get; } = null; public Func, IDictionary>?>? GroupingsGeneration { get; } = null; public Func, IDictionary>?>? SortingsGeneration { get; } = null; public HaWeb.XMLParser.IXMLCollection[]? SubCollections { get; } = null; public bool Searchable { get; } = true; public static Func GetKey { get; } = (elem) => { // TODO IMPLEMENT return null; }; }