Skip to content

Commit

Permalink
show breadcrumbs for direct child of root datasets #7257
Browse files Browse the repository at this point in the history
This reverts 95d7e04 which was part of pull request #6909 for #6684.
  • Loading branch information
pdurbin committed Aug 24, 2021
1 parent c26803e commit 4279651
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/release-notes/7257-breadcrumbs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Datasets in the root Dataverse collection now show breadcrumbs that have have a link back to the root Dataverse collection. (This was the behavior for Dataverse 4.)
2 changes: 1 addition & 1 deletion src/main/webapp/dataverse_header.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
</div>
</div>
</div>
<p:fragment id="breadCrumbPanel" rendered="#{dataverseHeaderFragment.breadcrumbs.size() > 2 or (dataverseHeaderFragment.breadcrumbs.size() > 1 and dataverseHeaderFragment.breadcrumbs[1].dvObject.instanceofDataverse)}">
<p:fragment id="breadCrumbPanel" rendered="#{dataverseHeaderFragment.breadcrumbs.size() > 1}">
<div id="breadcrumbNavBlock" class="container" jsf:rendered="#{dataverseHeaderFragment.breadcrumbs.size() > 1}">
<ui:repeat value="#{dataverseHeaderFragment.breadcrumbs}" var="breadcrumb" varStatus="status">
<h:outputText value=" > " styleClass="breadcrumbCarrot" rendered="#{!status.first}"/>
Expand Down

0 comments on commit 4279651

Please sign in to comment.