Open ayya-vimala opened 7 months ago
I guess I could have it filter the backend to give back only those that are not false, but would that work with the typescript?
It didn't used to render this way. My guess is there some small bit of logic that needs to be updated.
Yeah I see what's going on, I think the BE used to return a null value, which the FE checked against, not it returns "False" which as a string with length is truthy. Will fix.
This doesn't work for all texts. Esp. Sanskrit. Chinese I cannot check as I don't have the Chinese data in BN2. F.i. doesn't work for: https://buddhanexus2.kc-tbts.uni-hamburg.de/db/skt/T04nagmmk_u/text I will check on backend.
This works for Pali and for Tibetan but not for Sanskrit and for Chinese there are no texts yet. I think it's a backend issue that needs to be checked once new data has been uploaded to the backend.
Still some issues, probably using wrong branch.
All the sites are mentioned at the bottom of the menu and not just the ones that are relevant for the text in question. So for a Pali text this should be only SC (for DN, MN, AN, SN and KN) and VRI for all pali texts. Same with the other languages. The
/links/external/
API call gives back which links are relevant. For instance it gives back: