<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>Hi James,</p>
<p>I am fairly certain, as you say, that the roles for the Coin DOI button under actions as you really want to restrict who can uses this.
<br>
</p>
<p>I assume you are seeing "Everything Seems OK" when you run epadmin test. I know certain things won't be covered there and this is only a syntax check when you actually start passing around real values might be when the bug becomes apparent. I ofter run:<br>
</p>
<p>perl -I EPRINTS_PATH/perl_lib/ -c FULL_PLUGIN_FILENAME<br>
</p>
<div class="moz-cite-prefix">to test the individual file syntactically. However, as this is running the the indexer, any runtime error message is likely to appear in indexer.log under EPRINTS_PATH/var/. Also it should be noted that need to restart the Indexer
not just reload Apache* to put into effect any changes you have made to the event plugin.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Regards</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">David Newman<br>
</div>
<div class="moz-cite-prefix">*Reloading Apache should not necessary but is a good sanity check and if you do have a bug saves this taking down to repository next time Apache is reloaded/restart for something else or a general reboot of the server.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 16/01/2020 11:59, James Kerwin wrote:<br>
</div>
<blockquote type="cite" cite="mid:CAKkNZ9C4JPYt7La+s4cbO0OZ2p53dLV_y4kbhwhuVjj43eM7PQ@mail.gmail.com">
<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'd made an error in my code, the server would refuse to show me any EPrints pages after a restart until I'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. <<a href="mailto:drn@ecs.soton.ac.uk" moz-do-not-send="true">drn@ecs.soton.ac.uk</a>> 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&data=01%7C01%7C%7Cae7063fbc7344c26ef0308d79a7dc36f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=vu1cdPLONYiOtilH3KTIDxm4NqOzFBUeyNpoLEMl%2BO4%3D&reserved=0" originalsrc="http://bazaar.eprints.org/1100/" shash="gFPTdBfEX0agAQUowmcrXzSr0TG+FLFHnkIK2xSd/WQGajuJb1fY3bHrp56LNfIW4w98bQWHOQmSC2BLTQ8R43/b4smyKkh9UMRqroKgHdGpJir4kDI8sdyl3X/FoGwAskllkXIHkDLpspdIWXalBCpEZZu+6IogKFDAqioBcjQ=" originalsrc="http://bazaar.eprints.org/1100/" shash="dwy8ZBv6HnTM8q1CiapCeoYw9yCaJQEEf2n+Zu32j9+G8R/rv4AFny+bvdKU1XgWOb6KC2EJ7ZEpRIaneBBcubnur4zBUbKorSmlZ6G7wapKkzvWjhCbUB5RdsITtYHY0xwNmKFQDmETeMqSBCTwUieHz1vC/9mSuG1/mZZHwCw=" target="_blank" moz-do-not-send="true">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" moz-do-not-send="true">
<eprints-tech@ecs.soton.ac.uk></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't working how I wanted it to (failed with "special characters").</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 "proper" way to do things. Unfortunately, it doesn'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'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've tried to look at documentation for other plugins, but they also involve a "Screen" 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" moz-do-not-send="true">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&data=01%7C01%7C%7Cae7063fbc7344c26ef0308d79a7dc36f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=7qo0rQHOXGZvkNrJ%2BJiZ4JsVXPhlVZkNLKIkU3RaFJ8%3D&reserved=0" originalsrc="http://www.eprints.org/tech.php/" shash="bqXxScE9KKSI/0yOF69D2FXAs/ZBYDYvVV/HZI7Jx/z3lmMz5zRL6Wb367K/Oo78ec/ENjQdgE3YjdAtUCy1/GRBQ5Rz3k74LjoBnK/zLlTgMA77kAgqjVaEZzj8UP0MnMdhS9PSWaw08M+mD9v17ZVZFP40WzeCyNXJ61OgMWc=" originalsrc="http://www.eprints.org/tech.php/" shash="cI7wFTp04uurE0I3R0U5/QGn+hEZuM3omuY9Ka80K+tMEgPqQp3t6CbvfJF5iXyNwx8SmSojJQ9UCBalvLGm7En/QIOUuDL3EN23241esl+qGNsEAxCrCCDMdhUynL/CMCBmXD1FlA/C8I1dxumS4p5teF/W3v3Ks9oPbljKY0w=" target="_blank" moz-do-not-send="true">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&data=01%7C01%7C%7Cae7063fbc7344c26ef0308d79a7dc36f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=x2pOoRKDgAcdU3v4%2FujEgArG7sIiMDfzBmVBk7oemio%3D&reserved=0" originalsrc="http://wiki.eprints.org/" shash="TmQFoG8N/ZxJlCwCI89nzjKzYiSVvgu2GTClVWkGWhgD2pM7ZibZ922UFzl7UDU62Otjf/P6FkFbHvyLdNcRE6V1SvbYImq3egBc6dOCSIMBbIf7K/rjyuI1c0bClI7oOezGbzQaNIdhjKluH3ME2/NJJAhhtC0HnoMyWde2w+4=" originalsrc="http://wiki.eprints.org/" shash="OTNC/Mp2EHTLu+D7vZwKakyFE82LYB8Sk6FAqsw0wuJMG/jseLeHPBPLLDqw0KQhmNMOmAfw9wkf2chONyfjRSgCbepB2803rZqjynYHW/y3K7JOVAy9EXsYWM1B4Qapqvof831zwLYgd143SqQCoJgD5G/b5pKa0dRSQvE5ui8=" target="_blank" moz-do-not-send="true">http://wiki.eprints.org/</a>
*** EPrints developers Forum: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&data=01%7C01%7C%7Cae7063fbc7344c26ef0308d79a7dc36f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=iCQTVrOJbbemmQDllU5rLBHMoqthNukLIImzLYkZgos%3D&reserved=0" originalsrc="http://forum.eprints.org/" shash="VJzcoz+rTzVNeUCO6OFxAkPOeJRMYN0xibBr6/ULC4VLpVfWSzTQlO/Lkv4MoOj09ttgN0waftsA7q305oOunKDw8pJPfch/oQM8c6NVt23bGbRV9wwZGgi8gDB7nSI1go/aLOZRCFR1azlfNxoMvLVGPCYmVed1s+bMdsuLgfA=" originalsrc="http://forum.eprints.org/" shash="Ea42hZLaA5NrwMi/Rvl7gWFCrs2nY5g3GzcBz8FGSoEZJN6VwglUp/9GE49RZtcaGorpKNmclMHHTMcG0emVeezimYkchd4FlYRefoQ9HHfnkrArQT/FLDd739jQ73Aewiq2DPhaGggs+dnwyAOPMjz73lxfhqIzDbyT8bdvcB0=" target="_blank" moz-do-not-send="true">http://forum.eprints.org/</a>
</pre>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</body>
</html>