Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zfin 8317: publications page variations #4

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

Conversation

rtaylorzfin
Copy link
Owner

No description provided.

<c:if test="${empty navigationMenu}">
<c:forEach var="section" items="${sections}" varStatus="loop">
<z:navigationItem title="${section}"
useNavigationCounter="${useNavigationCounter}"
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably could remove this and just use the navigationMenu properties

protected List<NavigationItem> navigationItems;
protected boolean root = false;

public NavigationMenu(NavigationItem.NavigationItemBuilder ...navigationItemBuilders) {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be a constructor? Maybe a static fromBuilders method?


/**
* Determine which sections to include based on each Menu Item's properties (isRequireRoot, isHidden, etc.)
* @return
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flesh out these javadocs

return include(option.toString());
}

public boolean include(String option) {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

javadoc

Introduce navigation based on a NavigationMenu class with subclass PublicationNavigationMenu for publication-view page.
Use the same class to handle the logic of when to show various navigation items / sections and their counts.
Hide errata if no errata.

Styling changes:
- align numbers to the right
- change the border

Add option for a feature flag to be enabled by default.
Use the parentheses style of showing numbers without the pill shape.
Expand the width of the left navigation, but only for publication pages.
Fix linting issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant