WormBase / textpresso

Repository for TextPressoCentral
1 stars 0 forks source link

Accept PMID:nnnnnnn as format for Accession #107

Closed vanaukenk closed 5 years ago

vanaukenk commented 6 years ago

Hi,

Would it be possible to accept Accessions in the filter section in the format 'PMID:nnnnnnnnn', e.g. PMID:28743734.

Adding just the number, e.g. 28743734, works, but adding PMID:28743734 fails after the red loading box appears, and automatically logs me out.

Thx.

valearna commented 6 years ago

If you put accessions in double quotes (e.g., "PMID:28743734") it works. It seems that special characters outside double quotes are not processed correctly. I'll try to find a way to process special characters, maybe adding extra double quotes when needed.

vanaukenk commented 6 years ago

Ah, I didn't think that the ":'" might be the source of the problem. If there isn't an easy workaround, then maybe this is another good place to put a question mark and examples of what accession formats are accepted. Would it be possible, if there is an error like this, to get some kind of message that the search failed, but not automatically get logged out?
Thx @valearna

valearna commented 6 years ago

I can definitely add a question mark with some examples, but it will be hard to identify cases when there is an error like this since the search crashes and you get logged out for that reason. The only way to identify the error is to fix it.

vanaukenk commented 6 years ago

Okay, thanks for the explanation.

valearna commented 6 years ago

The bug has been fixed in the new Textpressocentral version (now online). I also added the question mark with some examples.