Beispiel #1
0
 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
     });
 }
Beispiel #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Number;
         hashCode = (hashCode * 397) ^ (Issn != null ? Issn.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Date.GetHashCode();
         hashCode = (hashCode * 397) ^ (PubCity != null ? PubCity.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PubName != null ? PubName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ PubYear.GetHashCode();
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Note != null ? Note.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CountPages;
         return(hashCode);
     }
 }
Beispiel #3
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
     });
 }
Beispiel #4
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
     });
 }