Need to add a way for users to be able to see rank specific information on forms #5537
Replies: 8 comments
-
This is not specific to Sp 7 |
Beta Was this translation helpful? Give feedback.
-
This should be possible though a formatter (by creating a recursive formatter). Example: |
Beta Was this translation helpful? Give feedback.
-
How do I test this? |
Beta Was this translation helpful? Give feedback.
-
Here is an example of how recursive formatter may look like: This says if taxon rank name is "Order", then display "Source" field, otherwise, format the parent of the taxon using the same formatter (thus in effect climbing the tree). If it happens that the current node is above Order, it will just climb the tree until it reaches root node, at which point the parent would be null so formatter would produce an empty string. Also you don't have to worry about accidentally creating infinite recursion, as the formatter code has recursion detection. One thing to note though: the live preview feature does not work for recursive formatters if you made changes (it will continue to show the formatter before you made the changes). To fix this, create your recursive formatter, save it, reload the page, then open it again, and then the formatter will work like expected. Opened a bug for that - #3347 |
Beta Was this translation helpful? Give feedback.
-
It may be advisable to change "Condition" to "Condition Field Value" to clarify how the system works |
Beta Was this translation helpful? Give feedback.
-
Looks good. Recursive formatters appear to be working and allow displaying rank specific information. |
Beta Was this translation helpful? Give feedback.
-
You can't define a format explicitly on the form. Not closed... |
Beta Was this translation helpful? Give feedback.
-
See this discussion Discourse to see another request: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Edinburgh has mentioned they need to have a way to see the family # and genus # for their determinations, ideally on the determination form. The issue is there is no easy way to do that because there may be ranks in between family and genus or genus and species, so even in a query, you couldn't reliably get back the number for all objects because it goes based on parent or parent of parent, rather than rank, so if the parent is subgenus rather than genus, you don't get the number. And currently, there is no way to add a field that shows taxon information for ranks other than the lowest determined node.
Beta Was this translation helpful? Give feedback.
All reactions