OpenNeuroLab / brainspell-neo

Working on a new version of Brainspell (an open-source platform for neuroimaging literature) to make a public JSON API that collaborators can contribute to, switch out the stack for better scalability, and provide statistical features to better conduct meta-analyses.
MIT License
15 stars 6 forks source link

Wip collection view #26

Closed akeshavan closed 7 years ago

akeshavan commented 7 years ago

This is a work-in-progress to view all the contents of all the collections. Here is what it looks like:

screen shot 2017-04-21 at 12 33 02 pm

The panels are like the accordion example on boostrap , so when you click on another collection, the others collapse.

I don't think this will scale well if people have 100s of articles in a collection though, ideally it needs to be like the /view-article view w/ pagination

r03ert0 commented 7 years ago

looks awesome @akeshavan !!

would it be possible to add like in brainspell-arche the total number of collections a user has? It shows up like this (I called them 'lists'):

screen shot 2017-04-22 at 08 03 08

When you select a 'list' the display is similar to a search result. I thought that the result of a search query is basically the same than what we are storing in a list/collection, with the exception that in one case it's an automatic list, and in the other it's a 'curated' list. That's why I re-used the same format (the stereotaxic volume and the 3d blob also reflect the content of the list/collection):

screen shot 2017-04-22 at 08 03 16

Finally, it should be possible to edit the list, either add more papers to an existing list, or create a new one (should also be possible to remove them, but I haven't coded that yet...). At the moment, it looks like this:

screen shot 2017-04-22 at 08 03 26

The UI/UX can change, though. The fundamental thing is to have an API that would permit this sort of things.

akeshavan commented 7 years ago

Hi @r03ert0 !

would it be possible to add like in brainspell-arche the total number of collections a user has? It shows up like this (I called them 'lists'):

Absolutely! Its just a call to the github API and filtering any repo that starts with "brainspell-collection-". I can throw that in the next commit.

Finally, it should be possible to edit the list, either add more papers to an existing list, or create a new one (should also be possible to remove them, but I haven't coded that yet...)

Yes, the ability to create collections, and add/remove articles from collections is available via the GitHub login I added, see PR https://github.com/OpenNeuroLab/brainspell-neo/pull/14 , and check out my collection on GitHub for gray matter atrophy in MS: @ https://github.com/akeshavan/brainspell-collection-MS_atrophy . To remove a collection, you'll need to remove the GitHub repo on GitHub itself, because deleting a whole repo is scary.

I thought that the result of a search query is basically the same than what we are storing in a list/collection, with the exception that in one case it's an automatic list, and in the other it's a 'curated' list. That's why I re-used the same format (the stereotaxic volume and the 3d blob also reflect the content of the list/collection):

Yes I also want to reuse the search view, but I want to stop here and ask @neelsomani and @Sharabesh to think about how to sync up the github portion of the code (login/collections) w/ the non-github (login/docket) code. Perhaps when I come to Berkeley this Friday we can discuss how best to integrate the GitHub stuff with the brainspell database? I think once this is clear it will be easy to incorporate the search-view w/ the cool surface/volume renderings.