Skip to content

Commit

Permalink
Merge pull request #11000 from IQSS/10742-newest-oldest-sort-order-ba…
Browse files Browse the repository at this point in the history
…ckwards

fix backwards newest oldest sort order
  • Loading branch information
ofahimIQSS authored Nov 6, 2024
2 parents e208eed + d8b7ed0 commit 092e17f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions doc/release-notes/10742-newest-oldest-sort-order-backwards.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Minor bug fix to UI to fix the order of the files on the Dataset Files page when ordering by Date

A fix was made to the ui to fix the ordering 'Newest' and 'Oldest' which were reversed
6 changes: 3 additions & 3 deletions src/main/webapp/filesFragment.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -301,24 +301,24 @@
<f:param name="folderPresort" value="#{DatasetPage.folderPresort}"/>
</h:outputLink></li>
<li><h:outputLink rel="nofollow" value="/dataset.xhtml">
<h:outputText styleClass="#{(DatasetPage.fileSortField == 'date' and (empty DatasetPage.fileSortOrder)) ? 'highlightBold' : ''}" value="#{bundle['file.results.btn.sort.option.newest']}"/>
<h:outputText styleClass="#{(DatasetPage.fileSortField == 'date' and DatasetPage.fileSortOrder == 'desc') ? 'highlightBold' : ''}" value="#{bundle['file.results.btn.sort.option.newest']}"/>
<f:param name="persistentId" value="#{DatasetPage.persistentId}"/>
<f:param name="version" value="#{DatasetPage.version}"/>
<f:param name="q" value="#{DatasetPage.fileLabelSearchTerm}"/>
<f:param name="fileTypeGroupFacet" value="#{DatasetPage.fileTypeFacet}"/>
<f:param name="fileAccess" value="#{DatasetPage.fileAccessFacet}"/>
<f:param name="fileSortField" value="date"/>
<f:param name="fileSortOrder" value="desc"/>
<f:param name="tagPresort" value="#{DatasetPage.tagPresort}"/>
</h:outputLink></li>
<li><h:outputLink rel="nofollow" value="/dataset.xhtml">
<h:outputText styleClass="#{(DatasetPage.fileSortField == 'date' and DatasetPage.fileSortOrder == 'desc') ? 'highlightBold' : ''}" value="#{bundle['file.results.btn.sort.option.oldest']}"/>
<h:outputText styleClass="#{(DatasetPage.fileSortField == 'date' and (empty DatasetPage.fileSortOrder)) ? 'highlightBold' : ''}" value="#{bundle['file.results.btn.sort.option.oldest']}"/>
<f:param name="persistentId" value="#{DatasetPage.persistentId}"/>
<f:param name="version" value="#{DatasetPage.version}"/>
<f:param name="q" value="#{DatasetPage.fileLabelSearchTerm}"/>
<f:param name="fileTypeGroupFacet" value="#{DatasetPage.fileTypeFacet}"/>
<f:param name="fileAccess" value="#{DatasetPage.fileAccessFacet}"/>
<f:param name="fileSortField" value="date"/>
<f:param name="fileSortOrder" value="desc"/>
<f:param name="tagPresort" value="#{DatasetPage.tagPresort}"/>
</h:outputLink></li>
<li><h:outputLink rel="nofollow" value="/dataset.xhtml">
Expand Down

0 comments on commit 092e17f

Please sign in to comment.