<div dir="ltr">Thanks everyone, It turns out I had more options than I thought!<div><br></div><div>I went with Rory in the end. I&#39;ve been putting off getting to grips with triggers for ages and so this was a good opportunity.</div><div><br></div><div>The DataCite plugin works how I want and after a brief ban on my Twitter account, the twitter bot works as I want it to. For some reason, after changing the trigger on the Twitter script it sent LOADS of Tweets so I may need to take another look at it tomorrow.</div><div><br></div><div>The important one was DataCite and that&#39;s spot on.</div><div><br></div><div>As usual, thank you all for the advice.</div><div><br></div><div>James</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 12, 2019 at 1:51 PM Yuri via Eprints-tech &lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Maybe write the event directly in the mysql table used for the queue to<br>
mint and tweet?<br>
<br>
<br>
Il 12/11/19 13:56, Rory McNicholl via Eprints-tech ha scritto:<br>
&gt; Hi James,<br>
&gt;<br>
&gt; yes the trigger is the EP_TRIGGER_STATUS_CHANGE one, so from what you<br>
&gt; say that won&#39;t be happening.<br>
&gt;<br>
&gt; I guess options would be<br>
&gt;<br>
&gt; a)  to use a more general trigger like EP_TRIGGER_AFTER_COMMIT and<br>
&gt; then check the status of the item and whether there is already a DOI<br>
&gt; in place etc etc etc... though you may end up with a lot more logic to do?<br>
&gt;<br>
&gt; b) you could enable the action_coin plugin in the <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fz_datacitedoi.pl&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C18d2eee338e44155162908d767901593%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=djX5nl%2BhrwFpeND6h1dgw4zVXxoYaLm0KiTGhjlbrqI%3D&amp;reserved=0" originalSrc="http://z_datacitedoi.pl" shash="HnovKj7mh2qkw+39yJDrMdoUU2yPmVrCHTR5YQntPlxFAvv+qDUZZPJ5ykmbTlkIYP4UBv76vH/2uCOgqen1Fd3sCpDDQguWwbaHwxlQFZyQOtikiYhZi6phzLBIlV33grQnrrKYwcWOHDavcoLvnPpKFPvf1xCvsAFr5aNHvh8=" rel="noreferrer" target="_blank">z_datacitedoi.pl</a> and<br>
&gt; then go and press the &quot;Coin DOI&quot; button in the UI. I guess that would<br>
&gt; be a drag if you have more than a handful of Theses to process.<br>
&gt;<br>
&gt; Maybe there&#39;s a c) out there without any downsides?<br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; Rory<br>
&gt;<br>
&gt; Rory McNicholl<br>
&gt; Team Lead - Research Technologies<br>
&gt; CoSector, University of London<br>
&gt; Senate House<br>
&gt; Malet Street<br>
&gt; London<br>
&gt; WC1E 7HU<br>
&gt;<br>
&gt; t: +44 (0)20 7863 1344<br>
&gt; e: <a href="mailto:rory.mcnicholl@london.ac.uk" target="_blank">rory.mcnicholl@london.ac.uk</a><br>
&gt; w: <a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcosector.com%2Fdigital-research%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C18d2eee338e44155162908d767901593%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=HUr8k01y7g9APhMwIyqRaHaarfkYxBgpZSptxHaUuzw%3D&amp;reserved=0" originalSrc="https://cosector.com/digital-research/" shash="Zcu0dh+cVXcDoULLfQpQ6rOoVh5vKb+R5KH/wPyEGUa653EIxsqxqwyxdYMPXAAkyLakQfbYsGeC1+ZUi91H+/Oeq3rb+qNc66PMhJSDXbWrch/bzwi8NkfU6O9/mnNtwf84b+7UKDPrww56Ni0ZTwzY8GtgqMMN1dZ9XFXOlJo=" rel="noreferrer" target="_blank">https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcosector.com%2Fdigital-research%2F&amp;amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb676e764c24d4ccd716308d767776ddd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;amp;sdata=4l3BrUFniZstrmo5GhtGqq6FmvHiEAlWDFat9uy0RPY%3D&amp;amp;reserved=0</a><br>
&gt;<br>
&gt; The University of London is an exempt charity in England and Wales.<br>
&gt; ------------------------------------------------------------------------<br>
&gt; *From:* <a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk" target="_blank">eprints-tech-bounces@ecs.soton.ac.uk</a><br>
&gt; &lt;<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk" target="_blank">eprints-tech-bounces@ecs.soton.ac.uk</a>&gt; on behalf of James Kerwin via<br>
&gt; Eprints-tech &lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk" target="_blank">eprints-tech@ecs.soton.ac.uk</a>&gt;<br>
&gt; *Sent:* 12 November 2019 12:42<br>
&gt; *To:* <a href="mailto:eprints-tech@ecs.soton.ac.uk" target="_blank">eprints-tech@ecs.soton.ac.uk</a> &lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk" target="_blank">eprints-tech@ecs.soton.ac.uk</a>&gt;<br>
&gt; *Subject:* [EP-tech] DOI Minting<br>
&gt; Hi All,<br>
&gt;<br>
&gt; I&#39;m currently going through the process of uploading a load of<br>
&gt; digitised theses.<br>
&gt;<br>
&gt; I&#39;ve managed to write scripts to create the EPrints friendly metadata<br>
&gt; and altered the bin/import script to slurp up a load of XML files and<br>
&gt; do the deposits for me.<br>
&gt;<br>
&gt; I&#39;m having trouble getting the DOIs to mint on deposit (datacite) and<br>
&gt; to get my twitter bot to send tweets upon deposit (my own<br>
&gt; Frankenstein&#39;s monster of a script).<br>
&gt;<br>
&gt; Usually these scripts are triggered when an item moves from the review<br>
&gt; to the live archive. The digitised theses items are going straight<br>
&gt; into the live archive which I guess is why they aren&#39;t being triggered.<br>
&gt;<br>
&gt; Does anybody have any helpful advice on this?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; James<br>
&gt;<br>
&gt; *** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>
&gt; *** Archive: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C18d2eee338e44155162908d767901593%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=DkpNkI2%2FVdtl4PpWJPMKmL8Sr%2BNzE85BipukLvWMew0%3D&amp;reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="iKcsAOtlLbV0RzxoUFoLXN4qBQHfWuXYfycj12jAcJacB2CcYjpb9zsN51fItxh9yuZERIWs1eEgRJjYSC5tGeVtHCzaPxF+l6c2N19ZhyobAkwu9OF0el7i1Mf7hmuam74t7Q7olzHqIgHhlgrfcluh+Kb8MYrtF5NrMzoaXvs=" rel="noreferrer" target="_blank">https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb676e764c24d4ccd716308d767776ddd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;amp;sdata=6XVKDqBZ%2BFP1XYSlUpoz%2BvxhDX9JqwU3hKn2mRFwBQw%3D&amp;amp;reserved=0</a><br>
&gt; *** EPrints community wiki: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C18d2eee338e44155162908d767901593%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=MG0arlFQ8LrMtI5IojEVhYD35bDSXNI7IbOIi66X1T4%3D&amp;reserved=0" originalSrc="http://wiki.eprints.org/" shash="fsQn4LcVoLUvh4hD/q9njn2H1CIrA3Lrb8FdNWuAJ5doFuMDzuFgocABm2zyoT6T0IBmpuLaeF/IOxfECjj3DkcKvS799DK8+xIWLx3Gs8D/WOGhNFGSSrU0g6f5J1KqECXvYwdh4LiuoECPH3nx+4eNTa86Z1KVBQza5TtPL9I=" rel="noreferrer" target="_blank">https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb676e764c24d4ccd716308d767776ddd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;amp;sdata=J3sUddBMvMLJ9Geo%2BjDTbZeUYnjrl5VtB%2FRNKsQYOT0%3D&amp;amp;reserved=0</a><br>
&gt; *** EPrints developers Forum: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C18d2eee338e44155162908d767901593%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=XbW4Agtjch6lMKoFXIaBAmo%2Fp98lW8%2B085u1%2BRkUUNQ%3D&amp;reserved=0" originalSrc="http://forum.eprints.org/" shash="XvcE0Ss2csoJX9AR97KsAQFwG/b8xnnekLCe0PqBAAnsOBqs70oYejE2aKI3CoH6JKlr82bc4b8UK8zQi/AenhujK4+ygtmx+yPwahFhBGQ2Hd4JvYItjpE5RcVp3XDKbdpowLapCB71Mm6IUhdojUoXcONFzx6L+krk2MHdH70=" rel="noreferrer" target="_blank">https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&amp;amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb676e764c24d4ccd716308d767776ddd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;amp;sdata=4NS4UFJPeWQvZUHCpfjzkBBbxSizfGiFpqkitZ2VWAY%3D&amp;amp;reserved=0</a><br>
<br>
*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>
*** Archive: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C18d2eee338e44155162908d767901593%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=DkpNkI2%2FVdtl4PpWJPMKmL8Sr%2BNzE85BipukLvWMew0%3D&amp;reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="iKcsAOtlLbV0RzxoUFoLXN4qBQHfWuXYfycj12jAcJacB2CcYjpb9zsN51fItxh9yuZERIWs1eEgRJjYSC5tGeVtHCzaPxF+l6c2N19ZhyobAkwu9OF0el7i1Mf7hmuam74t7Q7olzHqIgHhlgrfcluh+Kb8MYrtF5NrMzoaXvs=" rel="noreferrer" target="_blank">http://www.eprints.org/tech.php/</a><br>
*** EPrints community wiki: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C18d2eee338e44155162908d767901593%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=MG0arlFQ8LrMtI5IojEVhYD35bDSXNI7IbOIi66X1T4%3D&amp;reserved=0" originalSrc="http://wiki.eprints.org/" shash="fsQn4LcVoLUvh4hD/q9njn2H1CIrA3Lrb8FdNWuAJ5doFuMDzuFgocABm2zyoT6T0IBmpuLaeF/IOxfECjj3DkcKvS799DK8+xIWLx3Gs8D/WOGhNFGSSrU0g6f5J1KqECXvYwdh4LiuoECPH3nx+4eNTa86Z1KVBQza5TtPL9I=" rel="noreferrer" target="_blank">http://wiki.eprints.org/</a><br>
*** EPrints developers Forum: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C18d2eee338e44155162908d767901593%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=XbW4Agtjch6lMKoFXIaBAmo%2Fp98lW8%2B085u1%2BRkUUNQ%3D&amp;reserved=0" originalSrc="http://forum.eprints.org/" shash="XvcE0Ss2csoJX9AR97KsAQFwG/b8xnnekLCe0PqBAAnsOBqs70oYejE2aKI3CoH6JKlr82bc4b8UK8zQi/AenhujK4+ygtmx+yPwahFhBGQ2Hd4JvYItjpE5RcVp3XDKbdpowLapCB71Mm6IUhdojUoXcONFzx6L+krk2MHdH70=" rel="noreferrer" target="_blank">http://forum.eprints.org/</a><br>
</blockquote></div>