Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bib file formatting not support #18

Closed
ghost opened this issue Jul 31, 2017 · 7 comments
Closed

Bib file formatting not support #18

ghost opened this issue Jul 31, 2017 · 7 comments

Comments

@ghost
Copy link

ghost commented Jul 31, 2017

Does my bib needs to be in particular format to get the output ?
Following error is thrown when I provide as an input the complete bib file but when I just provide three to four selective content elements they generate accurate table.

bib-list-min.js:284 Uncaught TypeError: this.raiseError is not a function
    at BibTex._determineCase (bib-list-min.js:284)
    at BibTex._extractAuthors (bib-list-min.js:276)
    at BibTex._parseEntry (bib-list-min.js:253)
    at BibTex.parse (bib-list-min.js:230)
    at Bib2HTML.initialize (bib-list-min.js:369)
    at new Bib2HTML (bib-list-min.js:369)
    at bib-list-min.js:382
    at 127.0.0.1/:237
@vkaravir
Copy link
Owner

vkaravir commented Aug 1, 2017

Just having your bibliography in the bibtex format should be enough. Looks like you've uncovered a bug in the bibtex parser I'm using. Could you share the bib you're using so I can take a look and fix the issue? Or, even better if you can find the bibtex entry that's causing the issue.

@ghost
Copy link
Author

ghost commented Aug 3, 2017

Well I noticed the problem was with comma separated author list instead of and's, but I think this is one of the errors. Following is the link to a similar bibsonomy:

https://www.bibsonomy.org/bib/user/aksw

You can check this one out, please let me know if you can figure out the exact trouble.

@vkaravir
Copy link
Owner

vkaravir commented Aug 8, 2017

I fixed quite a few issues and the bibtex from the bibsonomy link works now. Let me know if you still have issues with your bibtex.

@ghost
Copy link
Author

ghost commented Aug 9, 2017

The update fixed quite a number of issues.

but I still find this one issue, for captial letters in the tittle attribute for example the following:

title= {{SampleResearch}: Open Research for Scientists}

The parser throws an error, would be happy if you can manage to fix this one too.

@vkaravir
Copy link
Owner

This does work for me. But if I don't have the comma like in your example, I do get an error. I fixed that now so that it won't crash. But the title will still be missing as the bibtex is invalid (assuming of course that title isn't the last line for the entry). If it still won't work for you, could you share the whole entry with the issue?

Also, I changed it so that the whole code shouldn't crash if displaying one of the entries fails. But if the parser fails, everything still fails.

@chsu5358
Copy link

chsu5358 commented Oct 21, 2017

For bibtex files that list authors in the format used by Google Scholar, ex: "author={last_name1, first_name1 and last_name2, first_name2 and last_name3, first_name3}," it seems to display only the last names in the rendered table instead of displaying full name in the order of "first_name last_name" (such as that in your personal website example.)
Can we switch to displaying full names for the author field? Or do we need to manually change the author field in bibtex files to "author={first_name1 last_name1 and first_name2 last_name2 and first_name3 last_name3}"?

@vkaravir
Copy link
Owner

Good catch @chsu5358! I just pushed a fix for it, let me know if you still have the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants