Hello,

I've just noticed that some of the default BibTeX field types are missing. Editor in particular is much missed, since the BibTeX @book entry type usually employs it, and it could be easily mapped to a CSL field type of the same name that already exists.

Anyway, the complete list of missing fields is:

  • annote
  • crossref
  • editor
  • howpublished
  • key

And I think that's it!

Comments

SomniumLucidus created an issue. See original summary.

SomniumLucidus’s picture

Component: Miscellaneous » Code
Priority: Major » Normal

  • antongp committed 06f9a8b on 8.x-1.x
    Issue #3055944 by SomniumLucidus: Add missing BibTeX field types
    
antongp’s picture

Assigned: Unassigned » antongp
Status: Active » Needs work

Hello @SomniumLucidus.

Thank you for your issue! The missing fields are added. They're not mapped to any reference's fields by default.

But there is problem with the editor field: I believe expected/wanted behavior is to populate references' Author field from both author and editor of BibTeX, and Role is supposed to be set appropriately. Is this correct? First, author field is actually hardcoded in BibTeX format for the moment, so it's not possible to map to Authors from any other field for the moment (though, it's quite easy to fix). Second, it's not possible to map from several fields to one (actually, it's always possible to code custom normalizers to provide any needed logic, but the target is to provide such possibility by default, via UI). Last one is not so easy to fix and should be implemented right, so it'll take some time. And we'll probably do some improvements in mapping to CSL logic, which is related at some degree. Any suggestions are welcome.

Setting the issue status to Needs work...

Thanks!

SomniumLucidus’s picture

Thanks for your fast reply, @antongp.

I've noticed that I can import a reference with a person listed as Author and then set his/her role to Editor, but the citation display still shows that person as Author.

The BibTeX format guidelines list Author and Editor as if they were interchangeable, it's true, but then provide separate field types for each of them. And indeed some works have an author and an editor, and bibliographic citation formats will be written to show both of them if they exist.

Anyway, thanks again. Great module!

  • antongp committed eb83950 on 8.x-1.x
    Issue #3055944 by SomniumLucidus: Add missing BibTeX field types
    
antongp’s picture

Status: Needs work » Fixed

Created separate issue for proper mapping from multiple format fields: #3057695: Make it possible to map from several format fields to reference's Authors field.
Closing this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.