Redesign of letter search page; minor bug fixes (see README)

This commit is contained in:
Simon Martens
2022-11-01 00:39:05 +01:00
parent 18cdd1404a
commit 0ea6c61ff3
20 changed files with 217 additions and 84 deletions

View File

@@ -176,7 +176,7 @@ public class SucheController : Controller {
.ToList()))
.ToList();
List<(string Volume, List<string> Pages)>? availablePages = null;
availablePages = lib.Structure.Select(x => (x.Key, x.Value.Select(x => x.Key).ToList())).ToList();
availablePages = lib.Structure.Where(x => x.Key != "-1").Select(x => (x.Key, x.Value.Select(x => x.Key).ToList())).ToList();
zhvolume = zhvolume == null ? "1" : zhvolume;
var model = new SucheViewModel(letters, page, pages, _getAvailablePersons(lib), availablePages.OrderBy(x => x.Volume).ToList(), zhvolume, zhpage, activeSearch, searchResults);
if (person != null) model.ActivePerson = person;