uwdata / living-papers

Authoring tools for scholarly communication. Create interactive web pages or formal research papers from markdown source.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cite-ref fails when given name is missing

joshuahhh opened this issue · comments

This line fails when given is missing (say, the author is a company):

const aMap = author.map(({ given, family }) => `${given.includes('.') ? given:given[0] + '.'} ${family}`);

Thanks! This was also affecting all single word names. The simple fix would result in this format: company -> company, company two -> c. two. However, if there needs to distinction between the names of people and special cases, then the input might need to change.

Currently, it assumes that all passed author names are the names of people. It would be difficult to differentiate between the name of a person and a special case. Would it be better to use a separate field for special cases? For example...

@inproceedings{placeholder,
  title={placeholder},
  company={company},
  year={placeholder},
  doi={placeholder}
}

Or add syntax?

@inproceedings{placeholder,
  title={placeholder},
  author={@company and author1 and author2},
  year={placeholder},
  doi={placeholder}
}

Or another approach?