<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=us-ascii">
<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;}
@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;
        mso-fareast-language:EN-US;}
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
        {mso-style-priority:99;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.pl-c1
        {mso-style-name:pl-c1;}
span.pl-k
        {mso-style-name:pl-k;}
span.pl-s
        {mso-style-name:pl-s;}
span.pl-pds
        {mso-style-name:pl-pds;}
span.EmailStyle23
        {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 lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">From memory (through the jet-lag) I modified our eprints a few years ago to return public If there was at least one open attachment on an item as we have many where we received a word document version which is
 attached and restricted and hidden, from which we have created a PDF version which is then publicly available, so it made more sense to class an item as public where there was something accessible.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Alan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><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="mso-fareast-language:EN-GB">From:</span></b><span lang="EN-US" style="mso-fareast-language:EN-GB"> eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
<b>On Behalf Of </b>Rory McNicholl<br>
<b>Sent:</b> 06 July 2017 18:06<br>
<b>To:</b> 'eprints-tech@ecs.soton.ac.uk' &lt;eprints-tech@ecs.soton.ac.uk&gt;<br>
<b>Subject:</b> Re: [EP-tech] full_test_status field<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div id="divtagdefaultwrapper">
<p><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black">or...<o:p></o:p></span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black">cgi/oai2 could be updated so that it could handle filters for searches on the&nbsp;document dataset<o:p></o:p></span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black"><a href="https://github.com/eprints/eprints/blob/3.3/cgi/oai2#L778" id="LPlnk413586">https://github.com/eprints/eprints/blob/3.3/cgi/oai2#L778</a>&nbsp;menas that cgi/oai2 applies the filters in the config
 to eprints only<o:p></o:p></span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black">More flexible config options could mean that you can send it filters for documents eg<o:p></o:p></span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
<p><span style="font-size:9.0pt;font-family:Consolas;color:#24292E;background:#FFFBDD">{<o:p></o:p></span></p>
<p><span class="pl-c1"><span style="font-size:9.0pt;font-family:Consolas;color:#005CC5">meta_fields</span></span><span style="font-size:9.0pt;font-family:Consolas;color:#24292E;background:#FFFBDD"><o:p></o:p></span></p>
<p><span class="pl-k"><span style="font-size:9.0pt;font-family:Consolas;color:#D73A49">=&gt;</span></span><span style="font-size:9.0pt;font-family:Consolas;color:#24292E;background:#FFFBDD"><o:p></o:p></span></p>
<p><span style="font-size:9.0pt;font-family:Consolas;color:#24292E;background:#FFFBDD">[
</span><span class="pl-pds"><span style="font-size:9.0pt;font-family:Consolas;color:#032F62">&quot;</span></span><span class="pl-s"><span style="font-size:9.0pt;font-family:Consolas;color:#032F62">security</span></span><span class="pl-pds"><span style="font-size:9.0pt;font-family:Consolas;color:#032F62">&quot;</span></span><span style="font-size:9.0pt;font-family:Consolas;color:#24292E;background:#FFFBDD"><o:p></o:p></span></p>
<p><span style="font-size:9.0pt;font-family:Consolas;color:#24292E;background:#FFFBDD">],
</span><span class="pl-c1"><span style="font-size:9.0pt;font-family:Consolas;color:#005CC5">value</span></span><span style="font-size:9.0pt;font-family:Consolas;color:#24292E;background:#FFFBDD"><o:p></o:p></span></p>
<p><span class="pl-k"><span style="font-size:9.0pt;font-family:Consolas;color:#D73A49">=&gt;</span></span><span style="font-size:9.0pt;font-family:Consolas;color:#24292E;background:#FFFBDD"><o:p></o:p></span></p>
<p><span class="pl-pds"><span style="font-size:9.0pt;font-family:Consolas;color:#032F62">&quot;</span></span><span class="pl-s"><span style="font-size:9.0pt;font-family:Consolas;color:#032F62">public</span></span><span class="pl-pds"><span style="font-size:9.0pt;font-family:Consolas;color:#032F62">&quot;</span></span><span style="font-size:9.0pt;font-family:Consolas;color:#24292E;background:#FFFBDD">,<o:p></o:p></span></p>
<p style="margin-bottom:12.0pt"><span style="font-size:9.0pt;font-family:Consolas;color:#24292E;background:#FFFBDD">},</span><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black"><o:p></o:p></span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black">From the result set once could build down theunique list of $doc-&gt;value(&quot;eprintid&quot;) and this&nbsp;would be the result set you were looking for for the Driver set.<o:p></o:p></span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black">I'm not sure this has any particular advantages to John's method. Maybe having a method to define custom sets of eprints based on document metadata would be useful for other OAI-PMH use cases?<o:p></o:p></span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black">Maybe it would be slower as it is searching a bigger dataset?<o:p></o:p></span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black">Cheers,<o:p></o:p></span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black">Rory<o:p></o:p></span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
<div id="Signature">
<div id="divtagdefaultwrapper">
<div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;mso-fareast-language:EN-GB">Rory McNicholl</span><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif;color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;mso-fareast-language:EN-GB">Lead developer</span><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif;color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;mso-fareast-language:EN-GB">Digital&nbsp;Archives &amp; Research Technologies</span><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif;color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;mso-fareast-language:EN-GB">University of London Computer Centre</span><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif;color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;mso-fareast-language:EN-GB">Senate House</span><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif;color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;mso-fareast-language:EN-GB">Malet Street</span><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif;color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;mso-fareast-language:EN-GB">London</span><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif;color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;mso-fareast-language:EN-GB">WC1E 7HU</span><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif;color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif;color:black;mso-fareast-language:EN-GB"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;mso-fareast-language:EN-GB">t: &#43;44 (0)20 7863 1344</span><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif;color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;mso-fareast-language:EN-GB">e:
<a href="mailto:rory.mcnicholl@london.ac.uk">rory.mcnicholl@london.ac.uk</a></span><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif;color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;mso-fareast-language:EN-GB">w:
<a href="http://www.ulcc.ac.uk/">http://www.ulcc.ac.uk/</a></span><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif;color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif;color:black;mso-fareast-language:EN-GB"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;mso-fareast-language:EN-GB">The University of London is an exempt charity in England and Wales.</span><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif;color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif;mso-fareast-language:EN-GB">
<hr size="2" width="98%" align="center">
</span></div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="color:black;mso-fareast-language:EN-GB">From:</span></b><span style="color:black;mso-fareast-language:EN-GB">
<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">eprints-tech-bounces@ecs.soton.ac.uk</a> &lt;<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">eprints-tech-bounces@ecs.soton.ac.uk</a>&gt; on behalf of John Salter &lt;<a href="mailto:J.Salter@leeds.ac.uk">J.Salter@leeds.ac.uk</a>&gt;<br>
<b>Sent:</b> 06 July 2017 14:55:36<br>
<b>To:</b> 'eprints-tech@ecs.soton.ac.uk'<br>
<b>Subject:</b> [EP-tech] full_test_status field</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif;mso-fareast-language:EN-GB">
<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif;mso-fareast-language:EN-GB">&nbsp;<o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal">Something for discussion:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">By default, EPrints sets the eprint-&gt;full_text_status field to:<o:p></o:p></p>
<p class="MsoNormal">'none' - if there are no docs<o:p></o:p></p>
<p class="MsoNormal">'public' - if there are some docs, and all are 'public'<o:p></o:p></p>
<p class="MsoNormal">'restricted' - if there are some docs, and at least one is not public.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Code: <a href="https://github.com/eprints/eprints/blob/392474eec1/lib/defaultcfg/cfg.d/eprint_fields_automatic.pl#L30-L44">
https://github.com/eprints/eprints/blob/392474eec1/lib/defaultcfg/cfg.d/eprint_fields_automatic.pl#L30-L44</a><o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">The full_text_status value is used as a filter in the OAI-PMH Driver set:<o:p></o:p></p>
<p class="MsoNormal"><a href="https://github.com/eprints/eprints/blob/392474eec1b8125a66ed2d3e12b02aeb67dc07c4/lib/defaultcfg/cfg.d/oai.pl#L59-L63">https://github.com/eprints/eprints/blob/392474eec1/lib/defaultcfg/cfg.d/oai.pl#L59-L63</a><o:p></o:p></p>
<p class="MsoNormal">which means for items that have multiple documents, of which one is restricted, the item will not be included in the Driver set.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Should there be another option for the full_text_status defined - e.g. 'some_public' - to show that at least one document is public?<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Currently, from the full_text_status value of 'restricted', it's not possible to determine whether this means *<b>all</b>* documents are restricted, or whether just one is.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I realise this can be addressed on a repository-by-repository basis by updating the conifg, but I think that making it work better in core EPrints would be best.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Any thoughts?<o:p></o:p></p>
<p class="MsoNormal">Cheers,<o:p></o:p></p>
<p class="MsoNormal">John<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
-- The Open University is incorporated by Royal Charter (RC 000391), an exempt 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.
</body>
</html>