lsstdarkmatter / dark-matter-graph

Create dark matter graphics
https://lsstdarkmatter.github.io/dark-matter-graph/
MIT License
5 stars 2 forks source link

Reference formatting? #35

Closed kadrlica closed 6 years ago

kadrlica commented 6 years ago

How hard is it to format the references as "First Author (Year)" instead of the ADS key?

yymao commented 6 years ago

Doing it in the yaml to json conversion step is possible.

But if that's implemented, there would be more requirements for people who want to run prepare_data.py. They'll need to install some packages and also obtain an ADS account to a their API token.

kadrlica commented 6 years ago

Maybe it'd be easier to hardcode it in the yaml by changing the references to a key, value pair. Maybe something like:

  references:
    - [ADS..Key..YearA, Author (Year)]
    - [ADS..Key..YearA, Author et al. (Year)]
    - ...
yymao commented 6 years ago

Now that i think about it, given that we have ADS bibcode already, maybe it is easy to do it in the conversion script. Give me a few minutes to confirm.