<div dir="ltr">Hi David,<div><br></div><div>Thanks for this. As it happens I was heavily borrowing from the DataCite plugin because it seems to have a bit of everything in it. The only obvious difference I can see between that and mine (beyond the overall quality and programming ability) is the roles, but I was (and still am) convinced that the roles were for the appearance of the minting button.</div><div><br></div><div>I would have thought that, if I&#39;d made an error in my code, the server would refuse to show me any EPrints pages after a restart until I&#39;d fixed it. Perhaps Events work differently.</div><div><br></div><div>Thanks,</div><div>James</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 16, 2020 at 8:50 AM Newman D.R. &lt;<a href="mailto:drn@ecs.soton.ac.uk">drn@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">



<div>
<p>Hi James,</p>
<p>The DataCiteDOI Bazaar plugin contains an Event plugin that it used to calls DataCite to coin (mint) a DOI.  This sounds like it would be doing a similar thing to posting some (I think) JSON to generate a tweet:<br>
</p>
<p><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fbazaar.eprints.org%2F1100%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C45803217d13e493e1df808d79a7b911b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=3m04K0RekHP2ogyBVK7WXGKmNE6RFNNDndH6jcUzuEs%3D&amp;reserved=0" originalSrc="http://bazaar.eprints.org/1100/" shash="aZJqxOR2jQ0oYWjAU6igmWaUIotMWiKGq69+zTZeDGoIwLZb8RhkLk7vWzx1FcB5JTMnrHHtI9FTN6yiWes8+PwZIZCi/zEaHK0EJea1U0L6MqvKeIexbB3QogPaPKv5EFZL9i6Y4bjRTa5EWvpicGM9W3SLX7E+F6bdUXvfOh0=" target="_blank">http://bazaar.eprints.org/1100/</a></p>
<p>Regards</p>
<p>David Newman<br>
</p>
<div>On 16/01/2020 08:39, Adam Field via Eprints-tech wrote:<br>
</div>
<blockquote type="cite">
<div dir="auto">Is it in github?  Can you link me to the code?</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 16 Jan 2020 08:31, James Kerwin via Eprints-tech <a href="mailto:eprints-tech@ecs.soton.ac.uk" target="_blank">
&lt;eprints-tech@ecs.soton.ac.uk&gt;</a> wrote:<br type="attribution">
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Hi All,<br>
<div><br>
</div>
<div>I rewrote my twitter bot using a different Perl module as it wasn&#39;t working how I wanted it to (failed with &quot;special characters&quot;).</div>
<div><br>
</div>
<div>It worked when I rewrote it as a .pl in cfg.d. I then decided to rewrite it as an Event plugin as this seems like the &quot;proper&quot; way to do things. Unfortunately, it doesn&#39;t work.</div>
<div><br>
</div>
<div>I can see that it gets added to the indexer and it subsequently fails.</div>
<div><br>
</div>
<div>One possible reason it fails is that I don&#39;t have any user roles set up for it. For an event plugin, do I need user roles to be set up?</div>
<div><br>
</div>
<div>I&#39;ve tried to look at documentation for other plugins, but they also involve a &quot;Screen&quot; plugin which is what I assume the user roles are for. My plugin just uses the status change trigger to compile and send a tweet.</div>
<div><br>
</div>
<div>Any pointers greatly appreciated.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>James</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<pre>*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** 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%7C45803217d13e493e1df808d79a7b911b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Dd5su9a%2BVib92qxNmcjeAAGykfEGXe9R7ZPvZrM1xqk%3D&amp;reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="q5RRpkm0//xZ98lehF40L5UKZMwD5ik7mmdzEzRXqqBqf1aZdHMtshPf4bKeSFPAP5Fodz1/R4wdrcoM15yL5x/d3yYUq9Z2tCWr6KeLAkDGE980hZk5FLaVbbVihWQ89aiDbQ1mIuwZ6aFcGRQtJ2UiA95Uj05OB1zs02R3w/k=" target="_blank">http://www.eprints.org/tech.php/</a>
*** 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%7C45803217d13e493e1df808d79a7b911b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=0rtgSEw1kqk4cJ0C0Dbg0SNSqy1zwW64yDXwgXZKEic%3D&amp;reserved=0" originalSrc="http://wiki.eprints.org/" shash="d4zg1y6zOJ6FO3G6Cv2ZkvdInWYazlwy68xNA4wWpmfN2f++VemSSwn0MPkMI+M4+AiDqzBNLuczZEkHtxAEzMqsQEf27g/+xmG75yJVkHuIUKTYM3r39vODTbIUHg5fMxh/9OO2T1NZgY6vetbtPKfGEENNTXXOc35r7O5CRK4=" target="_blank">http://wiki.eprints.org/</a>
*** 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%7C45803217d13e493e1df808d79a7b911b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=3l4zrwSD507ZJS%2B6iuokmSjXbMrsux3yyuu%2F0Wz9LKU%3D&amp;reserved=0" originalSrc="http://forum.eprints.org/" shash="em4dG2nx/H1vMW2qPhhu+3RZnxCHqGsVxpJTXT15PCxFkOnsdjRn94WOxVe+6+IEREETXXsvEhDPuoN5Zr/qkVYamV0/621V4Q+5fQWksxmmfi4ozpb9tK3/fAEjPFv1LFV3gT6/nE8TV/kDhqV+LlGSAtENA4/BlNpkZ8jj7g8=" target="_blank">http://forum.eprints.org/</a>
</pre>
</blockquote>
</div>

</blockquote></div>