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

booktitle in inproceedings parses as journal #200

Closed
himito opened this issue Jul 15, 2020 · 3 comments
Closed

booktitle in inproceedings parses as journal #200

himito opened this issue Jul 15, 2020 · 3 comments
Labels
bug Something isn't working right mappings Requests for improvement to scheme mappings

Comments

@himito
Copy link

himito commented Jul 15, 2020

Hello,

I tried to parse a bibtex entry of type inproceedings, but the output changes the field booktitle to journal. Here an example:

BibTeX input

@inproceedings{Bordea2014,
  author = {Paul Buitelaar and
               Georgeta Bordea and
               Barry Coughlan},
  title = {Hot Topics and Schisms in {NLP:} Community and Trend Analysis with Saffron on {ACL} and {LREC} Proceedings},
  booktitle = {Proceedings of the Ninth International Conference on Language Resources and Evaluation, {LREC}},
  pages = {2083--2088},
  year = {2014},
  biburl = {https://dblp.org/rec/bib/conf/lrec/BuitelaarBC14},
  bibsource = {dblp computer science bibliography, https://dblp.org}
}

Output from BibTeX input

[{
  "label":"Bordea2014",
  "type":"inproceedings",
  "properties":{
    "journal":"Proceedings of the Ninth International Conference on Language Resources and Evaluation, LREC","title":"Hot Topics and Schisms in NLP: Community and Trend Analysis with Saffron on ACL and LREC Proceedings","author":"Buitelaar, Paul and Bordea, Georgeta and Coughlan, Barry","pages":"2083--2088","date":"2014","year":"2014"
  }
}]

Thank you for your help !

@larsgw larsgw added bug Something isn't working right mappings Requests for improvement to scheme mappings labels Jul 15, 2020
@larsgw
Copy link
Owner

larsgw commented Jul 15, 2020

This line is the problem: https://github.com/citation-js/citation-js/blob/1226cde7518a44df37892ff431bcccfcc2087b94/packages/plugin-bibtex/src/output/json.js#L39, it should be paper-conference, the CSL equivalent of inproceedings. In the meantime, if you just need the BibTeX as JSON, you can also use the following snippet:

// Parses the input one step and returns the result. In the case
// of a BibTeX string, this outputs the JSON representation of the BibTeX
Cite.plugins.input.chainLink('...')

Demo on RunKit · Method docs

@himito
Copy link
Author

himito commented Jul 16, 2020

Thank you @larsgw!

@larsgw
Copy link
Owner

larsgw commented Jan 28, 2021

This issue should be fixed in v0.5.0-alpha.10. If not, please re-open the issue.

@larsgw larsgw closed this as completed Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working right mappings Requests for improvement to scheme mappings
Projects
None yet
Development

No branches or pull requests

2 participants