phylotastic / phylotastic-portal

Web tool (ruby on rails) providing access to phylotastic services for acquiring species trees.
https://github.com/phylotastic/phylotastic/wiki
1 stars 3 forks source link

fix bibliography UI and export option #356

Closed arlin closed 5 years ago

arlin commented 5 years ago

the portal now has a highly useful bibliography feature, with links to OT viewer, original paper, and option to download.

Also, I would suggest to change the "Save" button next to the metadata as follows:

ducvan0212 commented 5 years ago

Can you check if you can import the bibtex generated by the portal?

arlin commented 5 years ago

The function activated by the export function does not seem to be getting up-to-date or accurate information about the number of entries selected using the checkboxes. Sometimes I get stuck on this error message even when all the boxes are checked.

Screen Shot 2019-10-04 at 9 37 34 AM
ducvan0212 commented 5 years ago

@arlin It is not updated because the bibtex is generating in the server. I added the loading icon, so it looks good now.

arlin commented 5 years ago

When I select "Export" with all the check-boxes checked, I see the spinner (image) for several minutes, with no results. When I select just 2 entries, I can get the bibtex, but it does not parse. I don't know why it doesn't parse.

Screen Shot 2019-10-04 at 1 41 52 PM
ducvan0212 commented 5 years ago

@arlin Can you try to get all the study entries? I just fix the error that causes the frozen in studies querying process. Basically, a url to a study is not DOI so the portal couldn't resolve it into bib.

I also tried to parse the downloaded bib file in bib checker, and the file is parsable. I also included the bibfile in latex, and it perfectly worked. Did you try the file with Endnote?

arlin commented 5 years ago

OK, everything works now. Closing this. The slowness is because we get bib entries from OT, extract the DOI, then get a bibtex for the DOI?

ducvan0212 commented 5 years ago

I believe @abusalehmdtayeen set 1 second between each call to OT service for the studies. Before, it didn't take that long to extract all studies of a tree.