<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 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@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;}
@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-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;}
/* List Definitions */
@list l0
        {mso-list-id:361175576;
        mso-list-template-ids:1847230020;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:72.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:108.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:144.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:180.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:216.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:252.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:288.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:324.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></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:"Calibri","sans-serif";color:#1F497D'>HI Gilles,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>For your first question, it looks like ‘metadata_visibility’ might already be set when the search is set up:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="https://github.com/eprints/eprints/blob/3.3/cgi/search#L96-L100">https://github.com/eprints/eprints/blob/3.3/cgi/search#L96-L100</a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I’m not sure if EPrints will then ignore this field, as it’s already used?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Not sure about your second question.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Cheers,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>John<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] <b>On Behalf Of </b>Gilles Fournié<br><b>Sent:</b> 21 May 2014 13:41<br><b>To:</b> eprints-tech@ecs.soton.ac.uk<br><b>Subject:</b> [EP-tech] {Disarmed} Re: Re: Adding fields to admin search<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi,<br><br>We are also on 3.3.12. On our server, the search url is <a href="http://.../cgi/search/eprint/staff"><b><span style='color:red'>MailScanner has detected a possible fraud attempt from "..." claiming to be</span></b> http://.../cgi/search/eprint/staff</a><br><br>Looking for one of the fieldnames appearing in the form ('eprint_status'), I found a file in lib (lib/cfg.d/eprint_search_staff.pl).<br>It was not in the cfg.d directory for our archive.<br>So I copied it from lib/cfg.d to archives/.../cfg/cfg.d.<br><br>I tried to add a few columns found in the eprint table and it seems to allow us to change the meta fields that appear in the search form.<br>Hope this would help you.<br><br>I also had related questions for the list :<o:p></o:p></p><ul type=disc><li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1'>I added "metadata_visibility" to the staff search form, but this field is not shown (the other ones I added (importid and num_pieces) do). Any idea why ?<o:p></o:p></li><li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1'>Is there a place where I could find a list and a description of all meta fields ?<o:p></o:p></li></ul><p>Thanks<br>Gilles<o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>Le 21/05/2014 13:39, Andrew Beeken a écrit :<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><pre>Hi John,<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>We¹re on 3.3.12 here - I¹ve tried what you suggested to no avail. To be<o:p></o:p></pre><pre>honest, I¹m not sure where you¹re getting the search config information<o:p></o:p></pre><pre>from; I¹m following you up til point 4 okay but I don¹t see anything in<o:p></o:p></pre><pre>that file to indicate what config to use :/<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>On 21/05/2014 11:56, "John Salter" <a href="mailto:J.Salter@leeds.ac.uk"><J.Salter@leeds.ac.uk></a> wrote:<o:p></o:p></pre><pre><o:p> </o:p></pre><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><pre>Hi,<o:p></o:p></pre><pre>Good question. One I didn¹t know the answer to until I had a quick look.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>This is my thought process:<o:p></o:p></pre><pre>1. Log in to EPrints, go to the admin search page.<o:p></o:p></pre><pre>2. Look at the URL. It ends with screen=Staff%3A%3AEPrintSearch<o:p></o:p></pre><pre>3. Mentally convert the screen parameter above to a file to look at -<o:p></o:p></pre><pre>resulting in: ~/perl_lib/EPrints/Plugin/Screen/Staff/EPrintSearch.pm.<o:p></o:p></pre><pre>4. See what search config it uses [search->advanced->search_fields] AND<o:p></o:p></pre><pre>something a bit *magic* looking 'extra_fields' (sounds like exactly what<o:p></o:p></pre><pre>we need :o).<o:p></o:p></pre><pre>5. Grep rest of EPrints code to find other mentions of 'extra_fields'.<o:p></o:p></pre><pre>6. Be disappointed.<o:p></o:p></pre><pre>7. Look at: <a href="http://wiki.eprints.org/w/API:EPrints/Plugin#param">http://wiki.eprints.org/w/API:EPrints/Plugin#param</a><o:p></o:p></pre><pre>8. Think that adding:<o:p></o:p></pre><pre>$c->{plugins}->{"Screen::Staff::EPrintSearch"}->{params}->{extra_fields}<o:p></o:p></pre><pre>= ...SOMETHING...;<o:p></o:p></pre><pre>is the way forward, SOMETHING being some config similar to the existing<o:p></o:p></pre><pre>search config options.<o:p></o:p></pre><pre>9. Decide to leave the next step for you, with the hope you add the<o:p></o:p></pre><pre>recipe to the 'How To' section of the wiki:<o:p></o:p></pre><pre><a href="http://wiki.eprints.org/w/Category:Howto">http://wiki.eprints.org/w/Category:Howto</a><o:p></o:p></pre><pre>10. Lunch! Sunshine!<o:p></o:p></pre><pre>11. Actually, I'm interested. What should that SOMETHING be..?<o:p></o:p></pre><pre>12. Add this to a file in ~/archives/cfg/cfg.d/ (possibly the<o:p></o:p></pre><pre>eprint_search_advanced.pl, or plugins.pl, or some other file that you'll<o:p></o:p></pre><pre>be able to find it in again!):<o:p></o:p></pre><pre>########<o:p></o:p></pre><pre>#Additional field for internal staff search<o:p></o:p></pre><pre>########<o:p></o:p></pre><pre>$c->{plugins}->{"Screen::Staff::EPrintSearch"}->{params}->{extra_fields}<o:p></o:p></pre><pre>= [<o:p></o:p></pre><pre> { meta_fields => [ "id_number" ] },<o:p></o:p></pre><pre> { meta_fields => [ "documents.license" ] },<o:p></o:p></pre><pre>];<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>NB: This is based on 3.3.10.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Cheers,<o:p></o:p></pre><pre>John<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>-----Original Message-----<o:p></o:p></pre><pre>From: <a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">eprints-tech-bounces@ecs.soton.ac.uk</a><o:p></o:p></pre><pre>[<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">mailto:eprints-tech-bounces@ecs.soton.ac.uk</a>] On Behalf Of Andrew Beeken<o:p></o:p></pre><pre>Sent: 20 May 2014 16:14<o:p></o:p></pre><pre>To: <a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a><o:p></o:p></pre><pre>Subject: [EP-tech] Adding fields to admin search<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Hello!<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>I¹ve now been asked to add some fields to the admin search screen in<o:p></o:p></pre><pre>EPrints. I¹ve found a snippet here:<o:p></o:p></pre><pre><a href="http://trac.eprints.org/eprints/ticket/3637">http://trac.eprints.org/eprints/ticket/3637</a> which suggests how different<o:p></o:p></pre><pre>fields can be added in, however the function in question is different in<o:p></o:p></pre><pre>the version of EPrints we are running. So, any thoughts on how we can do<o:p></o:p></pre><pre>this? The Trac page suggests that this was put forward to be added to a<o:p></o:p></pre><pre>future version of EPrints as an admin function, however I presume this<o:p></o:p></pre><pre>has yet to happen?<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Andrew<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>The University of Lincoln, located in the heart of the city of Lincoln,<o:p></o:p></pre><pre>has established an international reputation based on high student<o:p></o:p></pre><pre>satisfaction, excellent graduate employment and world-class research.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>The information in this e-mail and any attachments may be confidential.<o:p></o:p></pre><pre>If you have received this email in error please notify the sender<o:p></o:p></pre><pre>immediately and remove it from your system. Do not disclose the contents<o:p></o:p></pre><pre>to another person or take copies.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Email is not secure and may contain viruses. The University of Lincoln<o:p></o:p></pre><pre>makes every effort to ensure email is sent without viruses, but cannot<o:p></o:p></pre><pre>guarantee this and recommends recipients take appropriate precautions.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>The University may monitor email traffic data and content in accordance<o:p></o:p></pre><pre>with its policies and English law. Further information can be found at:<o:p></o:p></pre><pre><a href="http://www.lincoln.ac.uk/legal">http://www.lincoln.ac.uk/legal</a>.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><o:p></o:p></pre><pre>*** Archive: <a href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a><o:p></o:p></pre><pre>*** EPrints community wiki: <a href="http://wiki.eprints.org/">http://wiki.eprints.org/</a><o:p></o:p></pre><pre>*** EPrints developers Forum: <a href="http://forum.eprints.org/">http://forum.eprints.org/</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre>*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><o:p></o:p></pre><pre>*** Archive: <a href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a><o:p></o:p></pre><pre>*** EPrints community wiki: <a href="http://wiki.eprints.org/">http://wiki.eprints.org/</a><o:p></o:p></pre><pre>*** EPrints developers Forum: <a href="http://forum.eprints.org/">http://forum.eprints.org/</a><o:p></o:p></pre></blockquote><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><o:p></o:p></pre><pre>*** Archive: <a href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a><o:p></o:p></pre><pre>*** EPrints community wiki: <a href="http://wiki.eprints.org/">http://wiki.eprints.org/</a><o:p></o:p></pre><pre>*** EPrints developers Forum: <a href="http://forum.eprints.org/">http://forum.eprints.org/</a><o:p></o:p></pre><pre><o:p> </o:p></pre></blockquote><p class=MsoNormal><o:p> </o:p></p></div></body></html>