public new UserJournalFilter ToFilter(int userProfileId) { return(new UserJournalFilter { Title = Title.TrimSafe(), Issn = Issn.TrimSafe(), Publisher = Publisher.TrimSafe(), Disciplines = SelectedDisciplines ?? Enumerable.Empty <int>(), Languages = Languages ?? Enumerable.Empty <string>(), SortMode = SortBy, SortDirection = Sort, PageNumber = Page, PageSize = PageSize, UserProfileId = userProfileId }); }
public new QoamCornerJournalFilter ToFilter() { return(new QoamCornerJournalFilter { Title = Title.TrimSafe(), Issn = Issn.TrimSafe(), Publisher = Publisher.TrimSafe(), Disciplines = SelectedDisciplines ?? Enumerable.Empty <int>(), Languages = Languages ?? Enumerable.Empty <string>(), SubmittedOnly = SubmittedOnly, MustHaveBeenScored = !string.IsNullOrEmpty(SwotMatrix), SortMode = SortBy, SortDirection = Sort, PageNumber = Page, PageSize = PageSize, SwotMatrix = !string.IsNullOrEmpty(SwotMatrix) ? SwotMatrix.Split(',').ToList() : new List <string>(), OpenAccess = OpenAccess, InstitutionalDiscounts = InstitutionalDiscounts, CornerId = Corner }); }
public UserJournalFilter ToFilter(int userProfileId) { return(new UserJournalFilter { Title = Title.TrimSafe(), Issn = Issn.TrimSafe(), Publisher = Publisher.TrimSafe(), Disciplines = this.SelectedDisciplines ?? Enumerable.Empty <int>(), Languages = this.Languages ?? Enumerable.Empty <string>(), SubmittedOnly = SubmittedOnly, MustHaveBeenScored = false, SortMode = SortBy, SortDirection = Sort, PageNumber = Page, PageSize = PageSize, SwotMatrix = !string.IsNullOrEmpty(SwotMatrix) ? SwotMatrix.Split(',').ToList() : new List <string>(), UserProfileId = userProfileId, OpenAccess = OpenAccess, InstitutionalDiscounts = InstitutionalDiscounts, InJournalTOCs = InJournalTOCs }); }