-
Notifications
You must be signed in to change notification settings - Fork 6
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
routeConfig : add a Typus search/key to the routes of the data display #295
Comments
We do not really have a way to do that well at the moment. We do not have a good way to add multiple occurrence search pages with different configurations. There can only be one. And this is also the one that dataset pages etc will link to for displaying records. Do I understand that what you are aiming for is a search similar to occurrence search but only for type specimens? |
Thank you for your answer. Yes, it is exactly that. We will show in occurrence the specimens of all swiss natural history institutions, and among them we have typus, which would be specifically displayed on their own page. I wrote this code based on the one for the collection/institutions/literature/etc... but since there is no enabled route for typusSearch/Key, it does not work
Would it be doable ? (I suspect I made some mistakes in my code...) |
No it isn't something that you can do currently. I'll keep it mind, but as it is now you cannot have multiple occurrence search. Perhaps you could get the search working, by providing your own layout to jekyll, but I wouldn't be able to guarentee that it would continue to work. And individual specimens wouldn't get their own url anyhow. I think that your best option within the current constraints is to simply predefine a link to the type specimens |
Thank you very much for your help ! Still it would be really useful if we could create our own routes and search/key for specific criteria. Should I notify this request somewhere else for future updates ? Or is it enough if you keep it in mind as you said ? Thanks again, and I wish you a nice week |
We are in the process of aligning gbif.org and hosted portals. So I try to develop as little as possibly on hosted portals at the moment. And instead focus on aligning the sites to avoid maintaining multiple code bases. The goal is to be able to respond quicker to feature requests going forward, but it does mean that we are a little slow at implementing new features at the moment. It isn't the first time it has come up, you do not need to create another issue than this. Do you have any specific requirements/wishes for a type specimen page? Do you have a mockup or a design in place already? |
Thank you for your answer. |
# My problem
How can I make a custom route specifically displaying Typus specimens ?
# My current situation
I found the full default list (https://hp-theme.gbif-staging.org/data-exploration-config#adding-more-than-occurrences), I created both search.md and typusKey.md files (https://github.com/gbif/hp-svnhc/tree/master/en/data/typus) and I also tried the code provided in ticket 217 (#217) but it still doesn't work....
At the moment, my routes code looks like that:
it works for the occurrence/dataset/institutions, but when trying typus/search, it shows the small "Select a route to start" menu.
# My goal
Display the typus data just like the occurrence data but excluding the type_status=NOTATYPE
The text was updated successfully, but these errors were encountered: