Skip to content

Commit

Permalink
Fixing file publication date metadata field display
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulBoon committed Mar 27, 2024
1 parent d95cd7f commit a760bb2
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/main/webapp/file.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -553,11 +553,16 @@
<td>#{FilePage.file.publicationDateFormattedYYYYMMDD}
</td>
</tr>
<tr id="fileEPublicationDateBlock" jsf:rendered="#{!(empty FilePage.file.embargo)}">
<tr id="fileEPublicationDateBlock" jsf:rendered="#{FilePage.file.released or !(empty FilePage.file.embargo) or !(empty FilePage.file.retention)}">
<th scope="row">
#{bundle['file.metadataTab.fileMetadata.embargoDate.label']}
#{bundle['file.metadataTab.fileMetadata.publicationDate.label']}
</th>
<td>#{!(empty FilePage.file.embargo) ? FilePage.embargoPhrase: ''} #{!(empty FilePage.file.embargo) ? FilePage.file.embargo.dateAvailable : FilePage.file.publicationDateFormattedYYYYMMDD}
<td>#{!(empty FilePage.file.embargo) ? FilePage.embargoPhrase: ''} #{!(empty FilePage.file.embargo) ? FilePage.file.embargo.dateAvailable : ''}
#{!(empty FilePage.file.embargo) and !(empty FilePage.file.retention) ? '; ': ''}
#{!(empty FilePage.file.retention) ? FilePage.retentionPhrase: ''} #{!(empty FilePage.file.retention) ? FilePage.file.retention.dateUnavailable: ''}
#{!(empty FilePage.file.retention) ? ', ': ''}
#{!(empty FilePage.file.retention) ? bundle['retention.enddateinfo']: ''}
#{(empty FilePage.file.embargo and empty FilePage.file.retention)? FilePage.file.publicationDateFormattedYYYYMMDD : ''}
</td>
</tr>
<tr id="fileEmbargoBlock" jsf:rendered="#{!(empty FilePage.file.embargo) and ! (empty FilePage.file.embargo.reason)}">
Expand All @@ -567,13 +572,6 @@
<td>#{FilePage.file.embargo.reason}
</td>
</tr>
<tr id="fileRPublicationDateBlock" jsf:rendered="#{!(empty FilePage.file.retention)}">
<th scope="row">
#{bundle['file.metadataTab.fileMetadata.retentionDate.label']}
</th>
<td>#{!(empty FilePage.file.retention) ? FilePage.retentionPhrase: ''} #{!(empty FilePage.file.retention) ? FilePage.file.retention.dateUnavailable : FilePage.file.publicationDateFormattedYYYYMMDD}, #{bundle['retention.enddateinfo']}
</td>
</tr>
<tr id="fileRetentionBlock" jsf:rendered="#{!(empty FilePage.file.retention) and ! (empty FilePage.file.retention.reason)}">
<th scope="row">
#{bundle['file.metadataTab.fileMetadata.retentionReason.label']}
Expand Down

0 comments on commit a760bb2

Please sign in to comment.