Skip to content

Commit

Permalink
#4601: Fix publication date not being displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
mauromsl committed Jan 29, 2025
1 parent 3076d21 commit 622bd87
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/submission/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -921,16 +921,17 @@ def publication_detail_settings(journal):

@property
def has_publication_details(self):
"""Determines if an article has publication details override"""
"""Determines if an article has any publication details"""
display_date_submitted, display_date_accepted = self.publication_detail_settings(self.journal)
return(
return (
self.page_range
or self.article_number
or self.publisher_name
or self.publication_title
or self.ISSN_override
or (display_date_submitted and self.date_submitted)
or (display_date_accepted and self.date_accepted)
or self.date_published
)

@property
Expand Down

0 comments on commit 622bd87

Please sign in to comment.