<html>#2254: let Cactus thorns register citation requests at runtime
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Roland Haas</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>open</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'>  Version:</td><td></td></tr>
<tr><td style='text-align:right'>     Type:</td><td>enhancement</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>minor</td></tr>
<tr><td style='text-align:right'>Component:</td><td>EinsteinToolkit thorn</td></tr>
</table>

<p>Changes (by Roland Haas):</p>
<p><table>
<tr><td>title:</td><td>let Cactus thorns register citation requests at runtime (was let use codes registers citations)</td></tr>
</table></p>
<p>Comment (by Roland Haas):</p>
<p>Pull request is here: <a data-is-external-link="true" href="https://bitbucket.org/cactuscode/cactusutils/pull-requests/20/formaline-let-use-codes-registers/diff" rel="nofollow">https://bitbucket.org/cactuscode/cactusutils/pull-requests/20/formaline-let-use-codes-registers/diff</a></p>
<p>A while ago there was some discussion to have Cactus output the list of requested citations during the run. This pull request is the “simple” solution to this by just introducing a couple of lines of code to let thorns register (arbitrary really) strings for citations.</p>
<p>A more complex method would be to extend configuration.ccl to have fields for this, then edit the piraha parser and the Cactus flesh datastructure sto store that information. Then have flesh functions to query the information and finally have Formaline call those functions.</p>
<p>I sample usage is in the <a data-is-external-link="true" href="https://bitbucket.org/einsteintoolkit/einsteinevolve/branch/rhaas/citation" rel="nofollow">rhaas/citation</a> branch of <a data-is-external-link="true" href="https://bitbucket.org/einsteintoolkit/einsteinevolve" rel="nofollow">GRHydro</a>.</p>
<p>Output looks like this:</p>
<div class="codehilite language-plaintext"><pre><span></span><span class="ss">requested_citation_keys=</span><span class="s2">&quot;Baiotti:2004wn&quot;</span>
<span class="ss">requested_citations=</span><span class="s2">&quot;@Article{Baiotti:2004wn,</span>
<span class="s2">  requested-for </span><span class="se">\</span><span class="s2">=</span><span class="se">\</span><span class="s2">&quot;</span><span class="l">EinsteinEvolve/GRHydro</span><span class="err">\</span><span class="s2">&quot;,</span>
<span class="s2">  author </span><span class="se">\</span><span class="s2">=       </span><span class="se">\</span><span class="s2">&quot;</span>Luca Baiotti <span class="ow">and</span> Ian Hawke <span class="ow">and</span> Pedro J<span class="o">.</span> Montero <span class="ow">and</span>
                  Frank L<span class="p">{</span><span class
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2254/let-cactus-thorns-register-citation'>https://bitbucket.org/einsteintoolkit/tickets/issues/2254/let-cactus-thorns-register-citation</a></p>
</html>