<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="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:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.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="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hi Johannes,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Glad you got the first part working.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">I wonder if this is something to do with the way EPrints handles the user preferences - one of which stores which of these check-boxes
 are ticked.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">I've had a quick look through the code, and can see where the default values are getting set.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">These are the most relevant pieces of the code - the $user-&gt;preference parts:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints%2Fblob%2F3.3%2Fperl_lib%2FEPrints%2FDataObj%2FUser.pm%23L917-L956&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce69e36da5c6b4632a5af08d70f71cb1c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=XbEYie7SLNocBDQV2VVtydfXXqF9Sbcnjk6huSQ5F8w%3D&amp;reserved=0" originalSrc="https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/DataObj/User.pm#L917-L956" shash="ta9+gwQQS17MIonnObPiqaedqjtWZIgvq00hwFNX4FqGxdllqOB/dC6Gpt7hQP4teY28YCJjda7JIw61C/PQ3x9qFqaDQsg0eAThSsa2KN1ckzkL8k0fAna3HUZJvzUIQJBFEWXZMw/sVtwpLGOMPFcppxnrp3rdaxm2KwX1jvE=">https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/DataObj/User.pm#L917-L956</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">and in the screen itself:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints%2Fblob%2F3.3%2Fperl_lib%2FEPrints%2FPlugin%2FScreen%2FItems.pm%23L118-L149&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce69e36da5c6b4632a5af08d70f71cb1c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=j5%2F0WtEHMr7fRyNwbcuZxQ6nPl6Q5GpcKVTUuwm9QTI%3D&amp;reserved=0" originalSrc="https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Plugin/Screen/Items.pm#L118-L149" shash="Q8XBnEJwNUa2BsJm9deSYdyMKUinmFATrF300utyxE1OM+obXvsYRUd90EwBPEdGKmSHgewZwr4cAAtXBRxhs+t2/1TfG/0bcaVjHk7zX7thoPgNb7VxV7JUrNr0HgsIIz/DQ7xQQGmB23TE3SUltwnrigsiOHhREsxXBeCfiLA=">https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Plugin/Screen/Items.pm#L118-L149</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints%2Fblob%2F3.3%2Fperl_lib%2FEPrints%2FPlugin%2FScreen%2FItems.pm%23L226-L465&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce69e36da5c6b4632a5af08d70f71cb1c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=xHZuCw6P44wttpS%2BV4s%2FzjSDyyqUw%2BcJx2OJYElmeFI%3D&amp;reserved=0" originalSrc="https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Plugin/Screen/Items.pm#L226-L465" shash="qiA8z7+JLw1fRXlnbymujT74dgC3vHldcCl+afnN7uSiqHnjA9ebhG8AA/wXNZTW+xUpvfFD0eSLJQrN/yKMjlqRLV1cFirjRWKVDoqtGE/QF6iUn6jn1sLRy4lJGFyQRSpv4eh5cnn7XO+rRBdztHtyw/hR+dI2lS1BtiUJZn0=">https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Plugin/Screen/Items.pm#L226-L465</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">I cannot (at a quick look) see why the value for the new eprint_status isn't getting saved though.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">This script: &nbsp;https://gist.github.com/jesusbagpuss/b96dd5520018f2ec51c4c76d40e1d9b0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">will show you the value for a user that is saved in the database e.g.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&gt; bin/local/get_user_preference_screen_items_ep_status ARCHIVEID 1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">admin (admin@example.com)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Existing user preference for 'Screen::Items/eprint_status':<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">$VAR1 = [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'inbox',<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '1',<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'buffer',<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '1',<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'archive',<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '',<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'deletion',<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">If you have multiple sessions open for a user (either different tabs in a browser, or in different browsers/computers), then ticking
 it in one session can get overwritten by loading the screen in another session).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">You might also be able to see some of what's going on by using the console in the browser e.g. ticking the box for 'Retired' makes
 a request to:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Feprints.server%2Fcgi%2Fusers%2Fhome%3Fscreen%3DItems%26dataset%3Deprint%26set_show_deletion%3D1&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce69e36da5c6b4632a5af08d70f71cb1c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=cSBSMaeaze3tEY0j50OICNY9cPW2OEb2WLJBt%2BSBPC8%3D&amp;reserved=0" originalSrc="https://eprints.server/cgi/users/home?screen=Items&dataset=eprint&set_show_deletion=1" shash="A991ls+SD6maAvjnewXad8mQR4KazESM74i4uh0NdMRnTKs8GyxbEkOIAtaSOKOMZIwQeZRl0BNKamurcN3C1sC1kOjJPmDGZ+sIn04Aojz8dPLBWz0kJWtQ0BRj5/Nf2NaaeuRslrerRq1+BUndYtX9RR22CkoqBhLDQ9NgHsE=">https://eprints.server/cgi/users/home?screen=Items&amp;dataset=eprint&amp;set_show_deletion=1</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">You could try a request to e.g.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Feprints.server%2Fcgi%2Fusers%2Fhome%3Fscreen%3DItems%26dataset%3Deprint%26set_show_status1%3D1&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce69e36da5c6b4632a5af08d70f71cb1c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=l3opif%2B7rnZOKSKImsfu%2BDa8VZ8elR67Kn0YUrfv0Xg%3D&amp;reserved=0" originalSrc="https://eprints.server/cgi/users/home?screen=Items&dataset=eprint&set_show_status1=1" shash="dRQMACG+mYTIcBcReAtF5xl2xQVYBHrDcRbbXMYzVIn6e9nOkUo40AUEGYqlggE61X4suDFMqJ6yFnyQnRZy4zQjiEZs2Yk0tmSUt5ouqxi7QBRoAs7d9jeJv2PmNW4KYtUc/UuCcKgl0ggcTxbbm47SCeJScf7RiFwWDtvnZdM=">https://eprints.server/cgi/users/home?screen=Items&amp;dataset=eprint&amp;set_show_status1=1</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">to see if that does anything?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Sorry this isn't a definite answer - hopefully it helps get started though.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">I'll have a bit more time to take a look tomorrow if necessary.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">John<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:windowtext">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:windowtext"> eprints-tech-bounces@ecs.soton.ac.uk
 [mailto:eprints-tech-bounces@ecs.soton.ac.uk] <b>On Behalf Of </b>Johannes Schultze via Eprints-tech<br>
<b>Sent:</b> 23 July 2019 13:19<br>
<b>To:</b> eprints-tech@ecs.soton.ac.uk<br>
<b>Subject:</b> Re: [EP-tech] Adding more stages to approval workflow?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Chris, hi John,<br>
<br>
one follow up question. I got my complex net of different states working, but I can't get the filters on the &quot;manage deposits&quot; page to work. I reduced the new statuses to one for this example.<br>
<br>
<img border="0" width="527" height="157" id="_x0000_i1025" src="cid:image001.png@01D5415C.48763240"><br>
<br>
I can't check the &quot;Status 1&quot; checkbox. It always stays unchecked. Having eprints in that state or not does not change anything. The same problem occurs when I use the unedited dark_archive code from the Bazaar. Can you give me a hint, why this might not work?<br>
<br>
Regards,<br>
Johannes<br>
<br>
<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Chris, hi John,<br>
<br>
I think I got a working demo by now. I used the dark_archive plugin as a start, and added a second stage so ...<br>
<br>
inbox/buffer/... -&gt; dark_archive -&gt; dark_archive2<br>
<br>
... is now possible. The final workflow will be more complex, but I think I should get it configured with this approach.<br>
<br>
Thanks again,<br>
Johannes<br>
<br>
<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Chris, hi John,<br>
<br>
thanks a lot for your quick replies and your hints! I'll take a look at both solutions and let you know if I got it all to work.<br>
<br>
Regards,<br>
Johannes<br>
<br>
<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">There is a different way to achieve this.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">You can add new 'eprint_status' options.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">This page:
<a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FBuilding_a_DataSet&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce69e36da5c6b4632a5af08d70f71cb1c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=JLDkvVmL1TrbmKD3mcbdijNWapdO%2BuPLJlZSa9z4IOc%3D&amp;reserved=0" originalSrc="https://wiki.eprints.org/w/Building_a_DataSet" shash="B88nxQ/r2mJCvwsJltaPzQ9R2m89+rZ1cRVk1Cd/C0xy32MduRzqHfK1gd0gGRy5VaBALeO+5zbq0IcuHBqxkB2O+yyz0INzNse4KEJOfTBbPoguflUgT8xPNPS1Fc9Wo1xJX6vg6J7BDreU7IM6KcvZCjRxxz/8WBZeFAwg/6Y=">
https://wiki.eprints.org/w/Building_a_DataSet</a> provides details of how to create a 'dark archive' - which is normally a different end-point for a record - so instead of:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Inbox -&gt; buffer -&gt; archive</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">You can also go:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Inbox -&gt; buffer -&gt; dark_archive</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">This plugin does the same:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fbazaar.eprints.org%2F401%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce69e36da5c6b4632a5af08d70f71cb1c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=dvK0qXdCIMOGkBEW%2Bjv9bDcuM9BqQ96yJw84lXOkaV8%3D&amp;reserved=0" originalSrc="http://bazaar.eprints.org/401/" shash="xmaZeGECX8kNHNrkMzFc006mIW/xbX/eVecWX0so76zKS7CF73PcYaESyKsQ2EMqz6ZHmrEVwwDvy5MLAPZQLBXOMnnqzPkI1dehOv9ns/M8BFKa0fBSQtrrrTFoNVYJOvF72kCXIJMEAZx72PvA7PV2jqsE95REc6+jYt2DK/w=">http://bazaar.eprints.org/401/</a></span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">What you would need to configure is
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">options&nbsp; =&gt; [qw( inbox buffer archive deletion bufferX bufferY )],</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">and also think about whether anyone can move e.g. from buffer to archive - or whether everything has to go through all stages.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">You may want to define more user roles - so a 'normal' editor can move from buffer to bufferX, but a 'super editor' can move from buffer
 to bufferX, bufferY or even to archive.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">You may also want to create a clone of the review screen that looks at bufferX and buffer explicitily.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Chris' solution would also work, each has it's merits!</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Cheers,<br>
John</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;</span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:windowtext">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:windowtext">
<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">eprints-tech-bounces@ecs.soton.ac.uk</a> [<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">mailto:eprints-tech-bounces@ecs.soton.ac.uk</a>]
<b>On Behalf Of </b>Christöpher Gutteridge via Eprints-tech<br>
<b>Sent:</b> 26 June 2019 12:06<br>
<b>To:</b> <a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>; Johannes Schultze
<a href="mailto:schultze@effective-webwork.de">&lt;schultze@effective-webwork.de&gt;</a><br>
<b>Subject:</b> Re: [EP-tech] Adding more stages to approval workflow?</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
<p>This isn't trivial but would be possible. This is me riffing and would need refining.<o:p></o:p></p>
<p>First of all, I would add tickbox fields for levels of signoff. ie. signoffA and signoffB and&nbsp; signoffC.<o:p></o:p></p>
<p>Next I would use conditionals on the &quot;workflow&quot; XML file to modify it as follows.<o:p></o:p></p>
<p>In the main &lt;flow&gt; section, use a &lt;when&gt; condition to split behaviour for the 3 stages of the buffer to add additional stages to the end IF the user has the appropriate parameters. At an extreme level you can write a plugin function that takes the user and
 eprint as inputs and returns true if they have the right to approve it at stage a/b/c.<o:p></o:p></p>
<p>If signoffA is false and the user can approve level A on this EPrint, they see the levelA approve stage which has the signoffA tickbox on it and they can set it to true.<o:p></o:p></p>
<p>If signoffA is true, but&nbsp; signoffB is false and the user can approve level B, the see the levelB approve stage which has the signoffB tickbox<o:p></o:p></p>
<p>Similar for signoffC.<o:p></o:p></p>
<p>The validation for publishing makes &quot;signoffC&quot; approval a required field so it can't be published without signoffC being set.<o:p></o:p></p>
<pre>&lt;flow&gt;<o:p></o:p></pre>
<pre>&nbsp; &lt;stage ref=&quot;type&quot;/&gt;<o:p></o:p></pre>
<pre>&nbsp; &lt;stage ref=&quot;files&quot;/&gt;<o:p></o:p></pre>
<pre>&nbsp; &lt;stage ref=&quot;core&quot;/&gt;<o:p></o:p></pre>
<pre>&nbsp; &lt;stage ref=&quot;subjects&quot;/&gt;<o:p></o:p></pre>
<pre>&nbsp; &lt;epc:choose&gt;<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp; &lt;epc:when test=&quot;eprint_status='buffer' and !signoffA and $current_user{canSignoffA}'&gt;<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;stage ref=&quot;signoffA&quot; /&gt;<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/epc:when&gt;<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp; &lt;epc:when test=&quot;eprint_status='buffer' and signoffA and !signoffB and $current_user{canSignoffB}'&gt;<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;stage ref=&quot;signoffB&quot; /&gt;<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/epc:when&gt;<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp; &lt;epc:when test=&quot;eprint_status='buffer' and signoffA and signoffB and !signoffC and $current_user{canSignoffC}'&gt;<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;stage ref=&quot;signoffC&quot; /&gt;<o:p></o:p></pre>
<pre>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/epc:when&gt;<o:p></o:p></pre>
<pre>&nbsp;<o:p></o:p></pre>
<pre>&nbsp; &lt;/epc:choose&gt;<o:p></o:p></pre>
<pre>&nbsp;&lt;/flow&gt;<o:p></o:p></pre>
<p>This is utterly untested but gives some ideas I hope. Documentation here:<o:p></o:p></p>
<p><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FEPrints_Control_Format&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce69e36da5c6b4632a5af08d70f71cb1c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=bQs0f8%2FG0g%2FcWta2mqOKDRk0RtK2Tx2Df%2BDJ44erCRQ%3D&amp;reserved=0" originalSrc="https://wiki.eprints.org/w/EPrints_Control_Format" shash="NhDk9twhMgCyCUCzdkYg72P3g5JR637ivpU32BEiVzq+pr2Ngm2NhSd8rOxsuitTlCrbI4bJlBNdNrDgH8SESZG9jvV2ZBqWtAWPtE1MW71+ntxlqUeK4rLQ40as+QGGna99Hw9xs+5kEeEVuWy374sOYLT3i7imKuxtwb3h7aY=">https://wiki.eprints.org/w/EPrints_Control_Format</a><o:p></o:p></p>
<p><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FWorkflow_Format&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce69e36da5c6b4632a5af08d70f71cb1c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=9Xtrlx9SXHmSEtXF0dCrGwW1wxrbP2FMKx0XviQ64dc%3D&amp;reserved=0" originalSrc="https://wiki.eprints.org/w/Workflow_Format" shash="QGaH3Ej39gFVbL3zu4l0j3ScHUo5T+a0opmGh9dMiUoA+sQDR9rS9n8rFl6taPHIBbguvHN/AZMcKJiM2OwMxpYCyav5boKM2ZBn/ghCE9SbF03OBlv09C07WLZ2IF6lzb8XA2J2e1d7Y1S/ohSV5KGK1h6xhT6k25Np4X4Zwhg=">https://wiki.eprints.org/w/Workflow_Format</a><o:p></o:p></p>
<p><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FEPScript&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce69e36da5c6b4632a5af08d70f71cb1c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=O55GzxpYzDUTpRcY1VIoUpna5nycvV9nXvBWD3NIwYQ%3D&amp;reserved=0" originalSrc="https://wiki.eprints.org/w/EPScript" shash="opgyFsyunSCUFBJ5JZbT+nxnlQWcPe30AYyQciHQ3TUrPtFowjgrjcF9SWf9860+CPX+zOmThWb4xdYeNi0SFaIxvi4EXMDYS5th4F5i0cSNB1CcLVCr9/VitxWeYkIN+ik7QjeAj43U80Sjzc+J4wt4uP1LghXLGIWSDRkHN4Q=">https://wiki.eprints.org/w/EPScript</a><o:p></o:p></p>
<p>It's possible to make custom EPScript functions to do more complex tests.<o:p></o:p></p>
<p>&nbsp;<o:p></o:p></p>
<p>&nbsp;<o:p></o:p></p>
<div>
<p class="MsoNormal">On 26/06/2019 11:05, Johannes Schultze via Eprints-tech wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>Hi all,<o:p></o:p></pre>
<pre>&nbsp;<o:p></o:p></pre>
<pre>I'm currently evaluating EPrints as a replacement for an old repository <o:p></o:p></pre>
<pre>(custom made). Until now everything worked fine (import of existing <o:p></o:p></pre>
<pre>files and metadata), and I'm now trying to get the release/approval <o:p></o:p></pre>
<pre>workflow configured. As far as I have read in the documentation, there <o:p></o:p></pre>
<pre>are four stages by default:<o:p></o:p></pre>
<pre>&nbsp;<o:p></o:p></pre>
<pre>inbox -&gt; buffer -&gt; archive -&gt; deletion<o:p></o:p></pre>
<pre>&nbsp;<o:p></o:p></pre>
<pre>I would need some more levels (and roles) in the approval workflow. <o:p></o:p></pre>
<pre>Something like this:<o:p></o:p></pre>
<pre>&nbsp;<o:p></o:p></pre>
<pre>inbox -&gt; buffer1 -&gt; buffer2 -&gt; buffer3 -&gt; archive -&gt; deletion<o:p></o:p></pre>
<pre>&nbsp;<o:p></o:p></pre>
<pre>Different roles in the hierarchy of the organisation should approve the <o:p></o:p></pre>
<pre>submitted eprint in multiple steps. Is it possible to configure such <o:p></o:p></pre>
<pre>behaviour in EPrints? Or can something like this only be implemented <o:p></o:p></pre>
<pre>with some kind of plugin?<o:p></o:p></pre>
<pre>&nbsp;<o:p></o:p></pre>
<pre>Regards<o:p></o:p></pre>
<pre>Johannes<o:p></o:p></pre>
<pre>&nbsp;<o:p></o:p></pre>
<pre>&nbsp;<o:p></o:p></pre>
</blockquote>
<pre>-- <o:p></o:p></pre>
<pre>Christopher Gutteridge <a href="mailto:totl@soton.ac.uk">&lt;totl@soton.ac.uk&gt;</a> <o:p></o:p></pre>
<pre>You should read our team blog at <a href="http://blog.soton.ac.uk/webteam/">http://blog.soton.ac.uk/webteam/</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<pre>-- <o:p></o:p></pre>
<pre>Dipl. Inf. Johannes Schultze<o:p></o:p></pre>
<pre>Gesellschafter / Entwicklung<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Tel. &#43;49 40 60940857-5<o:p></o:p></pre>
<pre>Fax. &#43;49 40 60940857-1<o:p></o:p></pre>
<pre><a href="mailto:schultze@effective-webwork.de">schultze@effective-webwork.de</a>&nbsp;&nbsp;&nbsp; <o:p></o:p></pre>
<pre>effective WEBWORK GmbH<o:p></o:p></pre>
<pre>Neuer Wall 18<o:p></o:p></pre>
<pre>20354 Hamburg<o:p></o:p></pre>
<pre><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.effective-webwork.de&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce69e36da5c6b4632a5af08d70f71cb1c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=mTdfqM2igL56HZmw6LyCDdH%2FmkRG4GYtzSmRoLcuzvA%3D&amp;reserved=0" originalSrc="http://www.effective-webwork.de" shash="Zprxcrjt82uCVv/t0Vpj8y9FWm4CBjLjDjczQ9vJtKdaj5WsgzB2HMLQ0wr3RmYdVCX9gf0SD0nZnmFS3QQ7JIX/gfVkbT87FkMpCckF0x85CmSaIfV2PTsaIjtW0oz0i+FOwV1R/sUMl3NuvAq1LHTK6bu9LNum+booDTYmVl0=">http://www.effective-webwork.de</a><o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>GF Dr. Matthias Finck<o:p></o:p></pre>
<pre>HRB 101108 (Hamburg)<o:p></o:p></pre>
<pre>UStId DE254169943<o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<pre>-- <o:p></o:p></pre>
<pre>Dipl. Inf. Johannes Schultze<o:p></o:p></pre>
<pre>Gesellschafter / Entwicklung<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Tel. &#43;49 40 60940857-5<o:p></o:p></pre>
<pre>Fax. &#43;49 40 60940857-1<o:p></o:p></pre>
<pre><a href="mailto:schultze@effective-webwork.de">schultze@effective-webwork.de</a>&nbsp;&nbsp;&nbsp; <o:p></o:p></pre>
<pre>effective WEBWORK GmbH<o:p></o:p></pre>
<pre>Neuer Wall 18<o:p></o:p></pre>
<pre>20354 Hamburg<o:p></o:p></pre>
<pre><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.effective-webwork.de&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce69e36da5c6b4632a5af08d70f71cb1c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=mTdfqM2igL56HZmw6LyCDdH%2FmkRG4GYtzSmRoLcuzvA%3D&amp;reserved=0" originalSrc="http://www.effective-webwork.de" shash="Zprxcrjt82uCVv/t0Vpj8y9FWm4CBjLjDjczQ9vJtKdaj5WsgzB2HMLQ0wr3RmYdVCX9gf0SD0nZnmFS3QQ7JIX/gfVkbT87FkMpCckF0x85CmSaIfV2PTsaIjtW0oz0i+FOwV1R/sUMl3NuvAq1LHTK6bu9LNum+booDTYmVl0=">http://www.effective-webwork.de</a><o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>GF Dr. Matthias Finck<o:p></o:p></pre>
<pre>HRB 101108 (Hamburg)<o:p></o:p></pre>
<pre>UStId DE254169943<o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<pre>-- <o:p></o:p></pre>
<pre>Dipl. Inf. Johannes Schultze<o:p></o:p></pre>
<pre>Gesellschafter / Entwicklung<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Tel. &#43;49 40 60940857-5<o:p></o:p></pre>
<pre>Fax. &#43;49 40 60940857-1<o:p></o:p></pre>
<pre><a href="mailto:schultze@effective-webwork.de">schultze@effective-webwork.de</a>&nbsp;&nbsp;&nbsp; <o:p></o:p></pre>
<pre>effective WEBWORK GmbH<o:p></o:p></pre>
<pre>Neuer Wall 18<o:p></o:p></pre>
<pre>20354 Hamburg<o:p></o:p></pre>
<pre><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.effective-webwork.de&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce69e36da5c6b4632a5af08d70f71cb1c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=mTdfqM2igL56HZmw6LyCDdH%2FmkRG4GYtzSmRoLcuzvA%3D&amp;reserved=0" originalSrc="http://www.effective-webwork.de" shash="Zprxcrjt82uCVv/t0Vpj8y9FWm4CBjLjDjczQ9vJtKdaj5WsgzB2HMLQ0wr3RmYdVCX9gf0SD0nZnmFS3QQ7JIX/gfVkbT87FkMpCckF0x85CmSaIfV2PTsaIjtW0oz0i+FOwV1R/sUMl3NuvAq1LHTK6bu9LNum+booDTYmVl0=">http://www.effective-webwork.de</a><o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>GF Dr. Matthias Finck<o:p></o:p></pre>
<pre>HRB 101108 (Hamburg)<o:p></o:p></pre>
<pre>UStId DE254169943<o:p></o:p></pre>
</div>
</body>
</html>