Re: [EP-tech] DOI Minting

"Alan.Stiles via Eprints-tech" <[email protected]> Tue, 12 Nov 2019 13:47:05 +0000
Newsgroups gmane.comp.web.eprints.devel
Message-ID <EMEW3|ffa3d6ad469e28992a708dfb1032f67evABDlJ14eprints-tech-bounces|ecs.soton.ac.uk|LO3P265MB1786916C56CA05DA777CC27ACA770@LO3P265MB1786.GBRP265.PROD.OUTLOOK.COM>
--===============2566786293684612837==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_LO3P265MB1786916C56CA05DA777CC27ACA770LO3P265MB1786GBRP_"

--_000_LO3P265MB1786916C56CA05DA777CC27ACA770LO3P265MB1786GBRP_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Quick and dirty, but could you batch update the theses (find just these one=
s with an admin search) to change the status to review and then back to liv=
e to trigger the minting and tweeting processes?

Alan

From: [email protected] <[email protected].=
ac.uk> On Behalf Of Rory McNicholl via Eprints-tech
Sent: 12 November 2019 12:57
To: [email protected]; James Kerwin <[email protected]>
Subject: Re: [EP-tech] DOI Minting

Hi James,

yes the trigger is the EP_TRIGGER_STATUS_CHANGE one, so from what you say t=
hat won't be happening.

I guess options would be

a)  to use a more general trigger like EP_TRIGGER_AFTER_COMMIT and then che=
ck the status of the item and whether there is already a DOI in place etc e=
tc 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]<mailto:[email protected]>
w: https://eur03.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fcose=
ctor.com%2Fdigital-research%2F&amp;data=3D01%7C01%7Ceprints-tech%40ecs.soto=
n.ac.uk%7C64d7c4105c5f49f4915c08d76776cebd%7C4a5378f929f44d3ebe89669d03ada9=
d8%7C0&amp;sdata=3DOiGi%2BjZjWP5CiSjWbSL1Q2Wt5ME1P%2FvPn%2FZHYuvyvtA%3D&amp=
;reserved=3D0

The University of London is an exempt charity in England and Wales.
________________________________
From: [email protected]<mailto:eprints-tech-bounces@ecs.=
soton.ac.uk> <[email protected]<mailto:eprints-tech-boun=
[email protected]>> on behalf of James Kerwin via Eprints-tech <eprints-t=
[email protected]<mailto:[email protected]>>
Sent: 12 November 2019 12:42
To: [email protected]<mailto:[email protected]> <epri=
[email protected]<mailto:[email protected]>>
Subject: [EP-tech] DOI Minting

Hi All,

I'm currently going through the process of uploading a load of digitised th=
eses.

I've managed to write scripts to create the EPrints friendly metadata and a=
ltered the bin/import script to slurp up a load of XML files and do the dep=
osits for me.

I'm having trouble getting the DOIs to mint on deposit (datacite) and to ge=
t 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 t=
he live archive. The digitised theses items are going straight into the liv=
e archive which I guess is why they aren't being triggered.

Does anybody have any helpful advice on this?

Thanks,
James
-- The Open University is incorporated by Royal Charter (RC 000391), an exe=
mpt charity in England & Wales and a charity registered in Scotland (SC 038=
302). The Open University is authorised and regulated by the Financial Cond=
uct Authority in relation to its secondary activity of credit broking.

--_000_LO3P265MB1786916C56CA05DA777CC27ACA770LO3P265MB1786GBRP_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
	{mso-style-name:msonormal;
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
span.EmailStyle20
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-GB" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span style=3D"mso-fareast-language:EN-US">Quick and=
 dirty, but could you batch update the theses (find just these ones with an=
 admin search) to change the status to review and then back to live to trig=
ger the minting and tweeting processes?<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"mso-fareast-language:EN-US"><o:p>&nbs=
p;</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"mso-fareast-language:EN-US">Alan<o:p>=
</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"mso-fareast-language:EN-US"><o:p>&nbs=
p;</o:p></span></p>
<div>
<div style=3D"border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm =
0cm 0cm">
<p class=3D"MsoNormal"><b><span lang=3D"EN-US">From:</span></b><span lang=
=3D"EN-US"> [email protected] &lt;eprints-tech-bounces@e=
cs.soton.ac.uk&gt;
<b>On Behalf Of </b>Rory McNicholl via Eprints-tech<br>
<b>Sent:</b> 12 November 2019 12:57<br>
<b>To:</b> [email protected]; James Kerwin &lt;jkerwin2101@gmail=
.com&gt;<br>
<b>Subject:</b> Re: [EP-tech] DOI Minting<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt;color:black">Hi Jame=
s,<o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt;color:black"><o:p>&n=
bsp;</o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt;color:black">yes the=
 trigger is the&nbsp;EP_TRIGGER_STATUS_CHANGE one, so from what you say tha=
t won't be happening.<o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt;color:black"><o:p>&n=
bsp;</o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt;color:black">I guess=
 options would be<o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt;color:black"><o:p>&n=
bsp;</o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt;color:black">a)&nbsp=
; 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?<o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt;color:black"><o:p>&n=
bsp;</o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt;color:black">b) you =
could enable the action_coin plugin in the z_datacitedoi.pl and then go and=
 press the &quot;Coin DOI&quot; button in the UI. I guess that would be a d=
rag if you have more than a handful of Theses
 to process.<o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt;color:black"><o:p>&n=
bsp;</o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt;color:black">Maybe t=
here's a c) out there without any downsides?<o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt;color:black"><o:p>&n=
bsp;</o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt;color:black">Cheers,=
<o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt;color:black"><o:p>&n=
bsp;</o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt;color:black">Rory<o:=
p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:12.0pt;color:black"><o:p>&n=
bsp;</o:p></span></p>
</div>
<div id=3D"Signature">
<div id=3D"divtagdefaultwrapper">
<div>
<div>
<div>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:=
10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black">Rory McNicholl=
</span><span style=3D"font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-=
serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:=
10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black">Team Lead - Re=
search Technologies</span><span style=3D"font-size:10.0pt;font-family:&quot=
;Tahoma&quot;,sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:=
10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black">CoSector,&nbsp=
;University of London</span><span style=3D"font-size:10.0pt;font-family:&qu=
ot;Tahoma&quot;,sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:=
10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black">Senate House</=
span><span style=3D"font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-se=
rif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:=
10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black">Malet Street</=
span><span style=3D"font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-se=
rif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:=
10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black">London</span><=
span style=3D"font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif;co=
lor:black"><o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:=
10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black">WC1E 7HU</span=
><span style=3D"font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif;=
color:black"><o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:=
10.0pt;font-family:&quot;Tahoma&quot;,sans-serif;color:black"><o:p>&nbsp;</=
o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:=
10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black">t: &#43;44 (0)=
20 7863 1344</span><span style=3D"font-size:10.0pt;font-family:&quot;Tahoma=
&quot;,sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:=
10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black">e:
<a href=3D"mailto:[email protected]">[email protected]<=
/a></span><span style=3D"font-size:10.0pt;font-family:&quot;Tahoma&quot;,sa=
ns-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:=
10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black">w:
<a href=3D"https://eur03.safelinks.protection.outlook.com/?url=3Dhttps%3A%2=
F%2Fcosector.com%2Fdigital-research%2F&amp;data=3D01%7C01%7Ceprints-tech%40=
ecs.soton.ac.uk%7C64d7c4105c5f49f4915c08d76776cebd%7C4a5378f929f44d3ebe8966=
9d03ada9d8%7C0&amp;sdata=3DOiGi%2BjZjWP5CiSjWbSL1Q2Wt5ME1P%2FvPn%2FZHYuvyvt=
A%3D&amp;reserved=3D0" originalSrc=3D"https://cosector.com/digital-research=
/" shash=3D"GhkUuz8TBXrbIec3Bwfy6eN9WwCE9ZGmxnpgMvr0eg7KEJKSs97/zXkZZkQUsXj=
GOSW3V/L36tQgJSG3LLKA37rsN9MMtMLNtLPv8oED32nqz1qQShE5AAiKdWfPmyzQjGSu3EzKN3=
j5xN1dDEvl//fVA97au7PBTuXiwVh14qg=3D">https://cosector.com/digital-research=
/</a></span><span style=3D"font-size:10.0pt;font-family:&quot;Tahoma&quot;,=
sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:=
10.0pt;font-family:&quot;Tahoma&quot;,sans-serif;color:black"><o:p>&nbsp;</=
o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:=
10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black">The University=
 of London is an exempt charity in England and Wales.</span><span style=3D"=
font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif;color:black"><o:=
p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
<div class=3D"MsoNormal" align=3D"center" style=3D"text-align:center">
<hr size=3D"2" width=3D"98%" align=3D"center">
</div>
<div id=3D"divRplyFwdMsg">
<p class=3D"MsoNormal"><b><span style=3D"color:black">From:</span></b><span=
 style=3D"color:black">
<a href=3D"mailto:[email protected]">eprints-tech-bounce=
[email protected]</a> &lt;<a href=3D"mailto:[email protected].=
ac.uk">[email protected]</a>&gt; on behalf of James Kerw=
in via Eprints-tech &lt;<a href=3D"mailto:[email protected]">epr=
[email protected]</a>&gt;<br>
<b>Sent:</b> 12 November 2019 12:42<br>
<b>To:</b> <a href=3D"mailto:[email protected]">eprints-tech@ecs=
.soton.ac.uk</a> &lt;<a href=3D"mailto:[email protected]">eprint=
[email protected]</a>&gt;<br>
<b>Subject:</b> [EP-tech] DOI Minting</span> <o:p></o:p></p>
<div>
<p class=3D"MsoNormal">&nbsp;<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class=3D"MsoNormal">Hi All, <o:p></o:p></p>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">I'm currently going through the process of uploading=
 a load of digitised theses.<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">I've managed to write scripts to create the EPrints =
friendly metadata and altered the bin/import script to slurp up a load of X=
ML files and do the deposits for me.<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">I'm having trouble getting the DOIs to mint on depos=
it (datacite) and to get my twitter bot to send tweets upon deposit (my own=
 Frankenstein's monster of a script).<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">Usually these scripts are triggered when an item mov=
es from the review to the live archive. The digitised theses items are goin=
g straight into the live archive which I guess is why they aren't being tri=
ggered.<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">Does anybody have any helpful advice on this?<o:p></=
o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">Thanks,<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal">James<o:p></o:p></p>
</div>
</div>
</div>
</div>
-- The Open University is incorporated by Royal Charter (RC 000391), an exe=
mpt charity in England &amp; Wales and a charity registered in Scotland (SC=
 038302). The Open University is authorised and regulated by the Financial =
Conduct Authority in relation to its
 secondary activity of credit broking.
</body>
</html>

--_000_LO3P265MB1786916C56CA05DA777CC27ACA770LO3P265MB1786GBRP_--

--===============2566786293684612837==
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/

--===============2566786293684612837==--