Exemple #1
0
 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
     });
 }
Exemple #2
0
 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
     });
 }