Re: [EP-tech] DOI Minting
James Kerwin via Eprints-tech <[email protected]> Tue, 12 Nov 2019 16:47:48 +0000
| Newsgroups | gmane.comp.web.eprints.devel |
|---|---|
| Message-ID | <EMEW3|dfd43ac48b40094286506f56524232bevABGmA14eprints-tech-bounces|ecs.soton.ac.uk|CAKkNZ9AO2ETtCcgNAySK5c9d=SGKE-UGM7pqWJCvisgi8w8L1w@mail.gmail.com> |
--===============2181654582972465507== Content-Type: multipart/alternative; boundary="000000000000bfd0c505972902ad" --000000000000bfd0c505972902ad Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks everyone, It turns out I had more options than I thought! I went with Rory in the end. I've been putting off getting to grips with triggers for ages and so this was a good opportunity. 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. The important one was DataCite and that's spot on. As usual, thank you all for the advice. James On Tue, Nov 12, 2019 at 1:51 PM Yuri via Eprints-tech < [email protected]> wrote: > Maybe write the event directly in the mysql table used for the queue to > mint and tweet? > > > Il 12/11/19 13:56, Rory McNicholl via Eprints-tech ha scritto: > > Hi James, > > > > yes the trigger is the EP_TRIGGER_STATUS_CHANGE one, so from what you > > say that won't be happening. > > > > I guess options would be > > > > a) to use a more general trigger like EP_TRIGGER_AFTER_COMMIT and > > then check the status of the item and whether there is already a DOI > > in place etc etc etc... though you may end up with a lot more logic to > do? > > > > b) you could enable the action_coin plugin in the z_datacitedoi.pl and > > then go and press the "Coin DOI" button in the UI. I guess that would > > be a drag if you have more than a handful of Theses to process. > > > > Maybe there's a c) out there without any downsides? > > > > Cheers, > > > > Rory > > > > Rory McNicholl > > Team Lead - Research Technologies > > CoSector, University of London > > Senate House > > Malet Street > > London > > WC1E 7HU > > > > t: +44 (0)20 7863 1344 > > e: [email protected] > > w: > https://eur03.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fcosec= tor.com%2Fdigital-research%2F&data=3D01%7C01%7Ceprints-tech%40ecs.soton= .ac.uk%7C18d2eee338e44155162908d767901593%7C4a5378f929f44d3ebe89669d03ada9d= 8%7C0&sdata=3DHUr8k01y7g9APhMwIyqRaHaarfkYxBgpZSptxHaUuzw%3D&reserv= ed=3D0 > > > > The University of London is an exempt charity in England and Wales. > > -----------------------------------------------------------------------= - > > *From:* [email protected] > > <[email protected]> on behalf of James Kerwin via > > Eprints-tech <[email protected]> > > *Sent:* 12 November 2019 12:42 > > *To:* [email protected] <[email protected]> > > *Subject:* [EP-tech] DOI Minting > > Hi All, > > > > I'm currently going through the process of uploading a load of > > digitised theses. > > > > I've managed to write scripts to create the EPrints friendly metadata > > and altered the bin/import script to slurp up a load of XML files and > > do the deposits for me. > > > > I'm having trouble getting the DOIs to mint on deposit (datacite) and > > to get my twitter bot to send tweets upon deposit (my own > > Frankenstein's monster of a script). > > > > Usually these scripts are triggered when an item moves from the review > > to the live archive. The digitised theses items are going straight > > into the live archive which I guess is why they aren't being triggered. > > > > Does anybody have any helpful advice on this? > > > > Thanks, > > James > > > > *** Options: > http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech > > *** Archive: > https://eur03.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fwww.ep= rints.org%2Ftech.php%2F&data=3D01%7C01%7Ceprints-tech%40ecs.soton.ac.uk= %7C18d2eee338e44155162908d767901593%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&= amp;sdata=3DDkpNkI2%2FVdtl4PpWJPMKmL8Sr%2BNzE85BipukLvWMew0%3D&reserved= =3D0 > > *** EPrints community wiki: > https://eur03.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fwiki.e= prints.org%2F&data=3D01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C18d2eee= 338e44155162908d767901593%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata= =3DMG0arlFQ8LrMtI5IojEVhYD35bDSXNI7IbOIi66X1T4%3D&reserved=3D0 > > *** EPrints developers Forum: > https://eur03.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fforum.= eprints.org%2F&data=3D01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C18d2ee= e338e44155162908d767901593%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata= =3DXbW4Agtjch6lMKoFXIaBAmo%2Fp98lW8%2B085u1%2BRkUUNQ%3D&reserved=3D0 > > *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech > *** Archive: https://eur03.safelinks.protection.outlook.com/?url=3Dhttp%3= A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=3D01%7C01%7Ceprints-tech%40ec= s.soton.ac.uk%7C18d2eee338e44155162908d767901593%7C4a5378f929f44d3ebe89669d= 03ada9d8%7C0&sdata=3DDkpNkI2%2FVdtl4PpWJPMKmL8Sr%2BNzE85BipukLvWMew0%3D= &reserved=3D0 > *** EPrints community wiki: https://eur03.safelinks.protection.outlook.co= m/?url=3Dhttp%3A%2F%2Fwiki.eprints.org%2F&data=3D01%7C01%7Ceprints-tech= %40ecs.soton.ac.uk%7C18d2eee338e44155162908d767901593%7C4a5378f929f44d3ebe8= 9669d03ada9d8%7C0&sdata=3DMG0arlFQ8LrMtI5IojEVhYD35bDSXNI7IbOIi66X1T4%3= D&reserved=3D0 > *** EPrints developers Forum: https://eur03.safelinks.protection.outlook.= com/?url=3Dhttp%3A%2F%2Fforum.eprints.org%2F&data=3D01%7C01%7Ceprints-t= ech%40ecs.soton.ac.uk%7C18d2eee338e44155162908d767901593%7C4a5378f929f44d3e= be89669d03ada9d8%7C0&sdata=3DXbW4Agtjch6lMKoFXIaBAmo%2Fp98lW8%2B085u1%2= BRkUUNQ%3D&reserved=3D0 > --000000000000bfd0c505972902ad Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Thanks everyone, It turns out I had more options than I th= ought!<div><br></div><div>I went with Rory in the end. I've been puttin= g off getting to grips with triggers for ages and so this was a good opport= unity.</div><div><br></div><div>The DataCite plugin works how I want and af= ter a brief ban on my Twitter account, the twitter bot works as I want it t= o. For some reason, after changing the trigger on the Twitter script it sen= t 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'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=3D"gmail_quote"><div dir=3D"l= tr" class=3D"gmail_attr">On Tue, Nov 12, 2019 at 1:51 PM Yuri via Eprints-t= ech <<a href=3D"mailto:[email protected]">[email protected]= ton.ac.uk</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style= =3D"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 q= ueue to<br> mint and tweet?<br> <br> <br> Il 12/11/19 13:56, Rory McNicholl via Eprints-tech ha scritto:<br> > Hi James,<br> ><br> > yes the trigger is the=C2=A0EP_TRIGGER_STATUS_CHANGE one, so from what= you<br> > say that won't be happening.<br> ><br> > I guess options would be<br> ><br> > a)=C2=A0 to use a more general trigger like EP_TRIGGER_AFTER_COMMIT an= d<br> > then check the status of the item and whether there is already a DOI<b= r> > in place etc etc etc... though you may end up with a lot more logic to= do?<br> ><br> > b) you could enable the action_coin plugin in the <a href=3D"https://e= ur03.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fz_datacitedoi.pl&= amp;data=3D01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C18d2eee338e4415516290= 8d767901593%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=3DdjX5nl%2Bhrw= FpeND6h1dgw4zVXxoYaLm0KiTGhjlbrqI%3D&reserved=3D0" originalSrc=3D"http:= //z_datacitedoi.pl" shash=3D"HnovKj7mh2qkw+39yJDrMdoUU2yPmVrCHTR5YQntPlxFAv= v+qDUZZPJ5ykmbTlkIYP4UBv76vH/2uCOgqen1Fd3sCpDDQguWwbaHwxlQFZyQOtikiYhZi6phz= LBIlV33grQnrrKYwcWOHDavcoLvnPpKFPvf1xCvsAFr5aNHvh8=3D" rel=3D"noreferrer" t= arget=3D"_blank">z_datacitedoi.pl</a> and<br> > then go and press the "Coin DOI" button in the UI. I guess t= hat would<br> > be a drag if you have more than a handful of Theses to process.<br> ><br> > Maybe there's a c) out there without any downsides?<br> ><br> > Cheers,<br> ><br> > Rory<br> ><br> > Rory McNicholl<br> > Team Lead - Research Technologies<br> > CoSector,=C2=A0University of London<br> > Senate House<br> > Malet Street<br> > London<br> > WC1E 7HU<br> ><br> > t: +44 (0)20 7863 1344<br> > e: <a href=3D"mailto:[email protected]" target=3D"_blank">ro= [email protected]</a><br> > w: <a href=3D"https://eur03.safelinks.protection.outlook.com/?url=3Dht= tps%3A%2F%2Fcosector.com%2Fdigital-research%2F&data=3D01%7C01%7Ceprints= -tech%40ecs.soton.ac.uk%7C18d2eee338e44155162908d767901593%7C4a5378f929f44d= 3ebe89669d03ada9d8%7C0&sdata=3DHUr8k01y7g9APhMwIyqRaHaarfkYxBgpZSptxHaU= uzw%3D&reserved=3D0" originalSrc=3D"https://cosector.com/digital-resear= ch/" shash=3D"Zcu0dh+cVXcDoULLfQpQ6rOoVh5vKb+R5KH/wPyEGUa653EIxsqxqwyxdYMPX= AAkyLakQfbYsGeC1+ZUi91H+/Oeq3rb+qNc66PMhJSDXbWrch/bzwi8NkfU6O9/mnNtwf84b+7U= KDPrww56Ni0ZTwzY8GtgqMMN1dZ9XFXOlJo=3D" rel=3D"noreferrer" target=3D"_blank= ">https://eur03.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fcosec= tor.com%2Fdigital-research%2F&amp;data=3D01%7C01%7Ceprints-tech%40ecs.s= oton.ac.uk%7Cb676e764c24d4ccd716308d767776ddd%7C4a5378f929f44d3ebe89669d03a= da9d8%7C0&amp;sdata=3D4l3BrUFniZstrmo5GhtGqq6FmvHiEAlWDFat9uy0RPY%3D&am= p;amp;reserved=3D0</a><br> ><br> > The University of London is an exempt charity in England and Wales.<br= > > ----------------------------------------------------------------------= --<br> > *From:* <a href=3D"mailto:[email protected]" target= =3D"_blank">[email protected]</a><br> > <<a href=3D"mailto:[email protected]" target=3D"= _blank">[email protected]</a>> on behalf of James Ker= win via<br> > Eprints-tech <<a href=3D"mailto:[email protected]" targe= t=3D"_blank">[email protected]</a>><br> > *Sent:* 12 November 2019 12:42<br> > *To:* <a href=3D"mailto:[email protected]" target=3D"_blank= ">[email protected]</a> <<a href=3D"mailto:[email protected]= oton.ac.uk" target=3D"_blank">[email protected]</a>><br> > *Subject:* [EP-tech] DOI Minting<br> > Hi All,<br> ><br> > I'm currently going through the process of uploading a load of<br> > digitised theses.<br> ><br> > I've managed to write scripts to create the EPrints friendly metad= ata<br> > and altered the bin/import script to slurp up a load of XML files and<= br> > do the deposits for me.<br> ><br> > I'm having trouble getting the DOIs to mint on deposit (datacite) = and<br> > to get my twitter bot to send tweets upon deposit (my own<br> > Frankenstein's monster of a script).<br> ><br> > Usually these scripts are triggered when an item moves from the review= <br> > to the live archive. The digitised theses items are going straight<br> > into the live archive which I guess is why they aren't being trigg= ered.<br> ><br> > Does anybody have any helpful advice on this?<br> ><br> > Thanks,<br> > James<br> ><br> > *** Options: <a href=3D"http://mailman.ecs.soton.ac.uk/mailman/listinf= o/eprints-tech" rel=3D"noreferrer" target=3D"_blank">http://mailman.ecs.sot= on.ac.uk/mailman/listinfo/eprints-tech</a><br> > *** Archive: <a href=3D"https://eur03.safelinks.protection.outlook.com= /?url=3Dhttp%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=3D01%7C01%7Cepr= ints-tech%40ecs.soton.ac.uk%7C18d2eee338e44155162908d767901593%7C4a5378f929= f44d3ebe89669d03ada9d8%7C0&sdata=3DDkpNkI2%2FVdtl4PpWJPMKmL8Sr%2BNzE85B= ipukLvWMew0%3D&reserved=3D0" originalSrc=3D"http://www.eprints.org/tech= .php/" shash=3D"iKcsAOtlLbV0RzxoUFoLXN4qBQHfWuXYfycj12jAcJacB2CcYjpb9zsN51f= Itxh9yuZERIWs1eEgRJjYSC5tGeVtHCzaPxF+l6c2N19ZhyobAkwu9OF0el7i1Mf7hmuam74t7Q= 7olzHqIgHhlgrfcluh+Kb8MYrtF5NrMzoaXvs=3D" rel=3D"noreferrer" target=3D"_bla= nk">https://eur03.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fwww.= eprints.org%2Ftech.php%2F&amp;data=3D01%7C01%7Ceprints-tech%40ecs.soton= .ac.uk%7Cb676e764c24d4ccd716308d767776ddd%7C4a5378f929f44d3ebe89669d03ada9d= 8%7C0&amp;sdata=3D6XVKDqBZ%2BFP1XYSlUpoz%2BvxhDX9JqwU3hKn2mRFwBQw%3D&am= p;amp;reserved=3D0</a><br> > *** EPrints community wiki: <a href=3D"https://eur03.safelinks.protect= ion.outlook.com/?url=3Dhttp%3A%2F%2Fwiki.eprints.org%2F&data=3D01%7C01%= 7Ceprints-tech%40ecs.soton.ac.uk%7C18d2eee338e44155162908d767901593%7C4a537= 8f929f44d3ebe89669d03ada9d8%7C0&sdata=3DMG0arlFQ8LrMtI5IojEVhYD35bDSXNI= 7IbOIi66X1T4%3D&reserved=3D0" originalSrc=3D"http://wiki.eprints.org/" = shash=3D"fsQn4LcVoLUvh4hD/q9njn2H1CIrA3Lrb8FdNWuAJ5doFuMDzuFgocABm2zyoT6T0I= BmpuLaeF/IOxfECjj3DkcKvS799DK8+xIWLx3Gs8D/WOGhNFGSSrU0g6f5J1KqECXvYwdh4Liuo= ECPH3nx+4eNTa86Z1KVBQza5TtPL9I=3D" rel=3D"noreferrer" target=3D"_blank">htt= ps://eur03.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fwiki.eprint= s.org%2F&amp;data=3D01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cb676e764= c24d4ccd716308d767776ddd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sda= ta=3DJ3sUddBMvMLJ9Geo%2BjDTbZeUYnjrl5VtB%2FRNKsQYOT0%3D&amp;reserved=3D= 0</a><br> > *** EPrints developers Forum: <a href=3D"https://eur03.safelinks.prote= ction.outlook.com/?url=3Dhttp%3A%2F%2Fforum.eprints.org%2F&data=3D01%7C= 01%7Ceprints-tech%40ecs.soton.ac.uk%7C18d2eee338e44155162908d767901593%7C4a= 5378f929f44d3ebe89669d03ada9d8%7C0&sdata=3DXbW4Agtjch6lMKoFXIaBAmo%2Fp9= 8lW8%2B085u1%2BRkUUNQ%3D&reserved=3D0" originalSrc=3D"http://forum.epri= nts.org/" shash=3D"XvcE0Ss2csoJX9AR97KsAQFwG/b8xnnekLCe0PqBAAnsOBqs70oYejE2= aKI3CoH6JKlr82bc4b8UK8zQi/AenhujK4+ygtmx+yPwahFhBGQ2Hd4JvYItjpE5RcVp3XDKbdp= owLapCB71Mm6IUhdojUoXcONFzx6L+krk2MHdH70=3D" rel=3D"noreferrer" target=3D"_= blank">https://eur03.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Ff= orum.eprints.org%2F&amp;data=3D01%7C01%7Ceprints-tech%40ecs.soton.ac.uk= %7Cb676e764c24d4ccd716308d767776ddd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&= amp;amp;sdata=3D4NS4UFJPeWQvZUHCpfjzkBBbxSizfGiFpqkitZ2VWAY%3D&amp;rese= rved=3D0</a><br> <br> *** Options: <a href=3D"http://mailman.ecs.soton.ac.uk/mailman/listinfo/epr= ints-tech" rel=3D"noreferrer" target=3D"_blank">http://mailman.ecs.soton.ac= .uk/mailman/listinfo/eprints-tech</a><br> *** Archive: <a href=3D"https://eur03.safelinks.protection.outlook.com/?url= =3Dhttp%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=3D01%7C01%7Ceprints-= tech%40ecs.soton.ac.uk%7C18d2eee338e44155162908d767901593%7C4a5378f929f44d3= ebe89669d03ada9d8%7C0&sdata=3DDkpNkI2%2FVdtl4PpWJPMKmL8Sr%2BNzE85BipukL= vWMew0%3D&reserved=3D0" originalSrc=3D"http://www.eprints.org/tech.php/= " shash=3D"iKcsAOtlLbV0RzxoUFoLXN4qBQHfWuXYfycj12jAcJacB2CcYjpb9zsN51fItxh9= yuZERIWs1eEgRJjYSC5tGeVtHCzaPxF+l6c2N19ZhyobAkwu9OF0el7i1Mf7hmuam74t7Q7olzH= qIgHhlgrfcluh+Kb8MYrtF5NrMzoaXvs=3D" rel=3D"noreferrer" target=3D"_blank">h= ttp://www.eprints.org/tech.php/</a><br> *** EPrints community wiki: <a href=3D"https://eur03.safelinks.protection.o= utlook.com/?url=3Dhttp%3A%2F%2Fwiki.eprints.org%2F&data=3D01%7C01%7Cepr= ints-tech%40ecs.soton.ac.uk%7C18d2eee338e44155162908d767901593%7C4a5378f929= f44d3ebe89669d03ada9d8%7C0&sdata=3DMG0arlFQ8LrMtI5IojEVhYD35bDSXNI7IbOI= i66X1T4%3D&reserved=3D0" originalSrc=3D"http://wiki.eprints.org/" shash= =3D"fsQn4LcVoLUvh4hD/q9njn2H1CIrA3Lrb8FdNWuAJ5doFuMDzuFgocABm2zyoT6T0IBmpuL= aeF/IOxfECjj3DkcKvS799DK8+xIWLx3Gs8D/WOGhNFGSSrU0g6f5J1KqECXvYwdh4LiuoECPH3= nx+4eNTa86Z1KVBQza5TtPL9I=3D" rel=3D"noreferrer" target=3D"_blank">http://w= iki.eprints.org/</a><br> *** EPrints developers Forum: <a href=3D"https://eur03.safelinks.protection= .outlook.com/?url=3Dhttp%3A%2F%2Fforum.eprints.org%2F&data=3D01%7C01%7C= eprints-tech%40ecs.soton.ac.uk%7C18d2eee338e44155162908d767901593%7C4a5378f= 929f44d3ebe89669d03ada9d8%7C0&sdata=3DXbW4Agtjch6lMKoFXIaBAmo%2Fp98lW8%= 2B085u1%2BRkUUNQ%3D&reserved=3D0" originalSrc=3D"http://forum.eprints.o= rg/" shash=3D"XvcE0Ss2csoJX9AR97KsAQFwG/b8xnnekLCe0PqBAAnsOBqs70oYejE2aKI3C= oH6JKlr82bc4b8UK8zQi/AenhujK4+ygtmx+yPwahFhBGQ2Hd4JvYItjpE5RcVp3XDKbdpowLap= CB71Mm6IUhdojUoXcONFzx6L+krk2MHdH70=3D" rel=3D"noreferrer" target=3D"_blank= ">http://forum.eprints.org/</a><br> </blockquote></div> --000000000000bfd0c505972902ad-- --===============2181654582972465507== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** Archive: http://www.eprints.org/tech.php/ *** EPrints community wiki: http://wiki.eprints.org/ *** EPrints developers Forum: http://forum.eprints.org/ --===============2181654582972465507==--