You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Overview
On the dataset/package page a list of resources is shown. Besides each resource, we present a "View" button and another button which is controlled by the logic in this snippet. Most of the time this button will either say "Download" or "Go to resource". For resources that are simply just links and have no real need for the resource view to be navigated to (i.e. what happens when you click the "View" button) it may make sense to alter the logic and only show the "Go to resource" button.
Possible Solutions
There are a few ways we could do this:
give the dataset owner the ability to specify in each resource's settings whether to show a "View" button or not.
attempt to automatically determine whether to show the "View" button based on the resource. Initial thoughts would be that if the resource is a URL resource with no defined views it can probably have the "View" button removed in this list. We may wish to also predicate on whether the resource has a description or format too?
Anything Else?
This came off the back of how this dataset currently works: https://data.nhm.ac.uk/dataset/the-art-of-3d-insects.
The resource items look like this:
The "Go to resource" button is the useful one as it takes you to the URL of the resource whereas the "View" button just takes you to an empty resource view page:
The text was updated successfully, but these errors were encountered:
Overview
On the dataset/package page a list of resources is shown. Besides each resource, we present a "View" button and another button which is controlled by the logic in this snippet. Most of the time this button will either say "Download" or "Go to resource". For resources that are simply just links and have no real need for the resource view to be navigated to (i.e. what happens when you click the "View" button) it may make sense to alter the logic and only show the "Go to resource" button.
Possible Solutions
There are a few ways we could do this:
Anything Else?
This came off the back of how this dataset currently works: https://data.nhm.ac.uk/dataset/the-art-of-3d-insects.
The resource items look like this:
The "Go to resource" button is the useful one as it takes you to the URL of the resource whereas the "View" button just takes you to an empty resource view page:
The text was updated successfully, but these errors were encountered: