This PR is to address issue #173, which was that hayagriva did not use the BibTex shorttitle field for short titles in CSL. In order to fix this issue, I made two changes:
In interop.rs, I added functionality for detecting if the BibTex shorttitle exists and adding it to the FormatString if it does.
In taxonomy.rs, I fixed the code for StandardVariable::Title and StandardVariable::TitleShort being switched around. Previously, hayagriva would always select the short title for StandardVariable::Title, but would choose between the short title and long title for StandardVariable::TitleShort, which is obviously incorrect behavior. It appears that the behavior for StandardVariable::TitleShort was mistakenly placed in StandardVariable::Title. I fixed this issue by simply switching the code around.
This PR is to address issue #173, which was that hayagriva did not use the BibTex
shorttitle
field for short titles in CSL. In order to fix this issue, I made two changes:shorttitle
exists and adding it to theFormatString
if it does.StandardVariable::Title
andStandardVariable::TitleShort
being switched around. Previously, hayagriva would always select the short title forStandardVariable::Title
, but would choose between the short title and long title forStandardVariable::TitleShort
, which is obviously incorrect behavior. It appears that the behavior forStandardVariable::TitleShort
was mistakenly placed inStandardVariable::Title
. I fixed this issue by simply switching the code around.