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

Patching some of the issues with hierarchy navigation #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sswaitUS
Copy link
Collaborator

@sswaitUS sswaitUS commented Jan 29, 2025

Hierarchy navigation is not reflected when a concept (broader, narrow or related) is clicked for a particular concept. Issue was due to always using the same path as the current concept to be reflected in the hierarchy, which is not where they exist

@sswaitUS sswaitUS marked this pull request as ready for review January 29, 2025 19:46
@@ -224,7 +258,11 @@
<strong>Narrower Concepts:</strong>
<ul>
{% for n in element.narrower %}
<li class="uat"><a href="{{n.uri[30:]}}?view={{gtype}}{% if path %}&path={{path|last}}{% endif %}">{{n.name}}</a></li>
<li class="uat">
<a href="{{n.uri[30:]}}?view={{gtype}}{% if path %}&path={{path|last}}-{{element.uri[30:]}}{% else %}&path={{element.uri[30:]}}{% endif %}">
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was missing the element in the path so I added it

@@ -211,11 +234,22 @@

<br/>

{% if element.broader != None %}
{% if element.broader != None and element.broader|length < 2 %}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If there is only 1 Broader Concept, will just use the previous path to avoid the lookup of other paths

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