<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <link href="chrome://translator/skin/floatingPanel.css"
      type="text/css" rel="stylesheet">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi,<br>
    <br>
    We are also on 3.3.12. On our server, the search url is
    <a class="moz-txt-link-freetext" href="http://.../cgi/search/eprint/staff"><font color="red"><b>MailScanner has detected a possible fraud attempt from "..." claiming to be</b></font> 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 :<br>
    <ul>
      <li>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 ?</li>
      <li>Is there a place where I could find a list and a description
        of all meta fields ?</li>
    </ul>
    <p>Thanks<br>
      Gilles<br>
    </p>
    <br>
    <br>
    <div class="moz-cite-prefix">Le 21/05/2014 13:39, Andrew Beeken a
      &eacute;crit&nbsp;:<br>
    </div>
    <blockquote
cite="mid:EMEW3|2ae3f1402c2d2585ccb420bccb9e6899q4KCej14eprints-tech-bounces|ecs.soton.ac.uk|CFA24EDD.16B8%25anbeeken@lincoln.ac.uk"
      type="cite">
      <pre wrap="">Hi John,

We&sup1;re on 3.3.12 here - I&sup1;ve tried what you suggested to no avail. To be
honest, I&sup1;m not sure where you&sup1;re getting the search config information
from; I&sup1;m following you up til point 4 okay but I don&sup1;t see anything in
that file to indicate what config to use :/



On 21/05/2014 11:56, "John Salter" <a class="moz-txt-link-rfc2396E" href="mailto:J.Salter@leeds.ac.uk">&lt;J.Salter@leeds.ac.uk&gt;</a> wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">Hi,
Good question. One I didn&sup1;t know the answer to until I had a quick look.

This is my thought process:
1. Log in to EPrints, go to the admin search page.
2. Look at the URL. It ends with screen=Staff%3A%3AEPrintSearch
3. Mentally convert the screen parameter above to a file to look at -
resulting in: ~/perl_lib/EPrints/Plugin/Screen/Staff/EPrintSearch.pm.
4. See what search config it uses [search-&gt;advanced-&gt;search_fields] AND
something a bit *magic* looking 'extra_fields' (sounds like exactly what
we need :o).
5. Grep rest of EPrints code to find other mentions of 'extra_fields'.
6. Be disappointed.
7. Look at: <a class="moz-txt-link-freetext" href="http://wiki.eprints.org/w/API:EPrints/Plugin#param">http://wiki.eprints.org/w/API:EPrints/Plugin#param</a>
8. Think that adding:
$c-&gt;{plugins}-&gt;{"Screen::Staff::EPrintSearch"}-&gt;{params}-&gt;{extra_fields}
= ...SOMETHING...;
is the way forward, SOMETHING being some config similar to the existing
search config options.
9. Decide to leave the next step for you, with the hope you add the
recipe to the 'How To' section of the wiki:
<a class="moz-txt-link-freetext" href="http://wiki.eprints.org/w/Category:Howto">http://wiki.eprints.org/w/Category:Howto</a>
10. Lunch! Sunshine!
11. Actually, I'm interested. What should that SOMETHING be..?
12. Add this to a file in ~/archives/cfg/cfg.d/ (possibly the
eprint_search_advanced.pl, or plugins.pl, or some other file that you'll
be able to find it in again!):
########
#Additional field for internal staff search
########
$c-&gt;{plugins}-&gt;{"Screen::Staff::EPrintSearch"}-&gt;{params}-&gt;{extra_fields}
= [
               { meta_fields =&gt; [ "id_number" ] },
               { meta_fields =&gt; [ "documents.license" ] },
];

NB: This is based on 3.3.10.

Cheers,
John

-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">eprints-tech-bounces@ecs.soton.ac.uk</a>
[<a class="moz-txt-link-freetext" href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">mailto:eprints-tech-bounces@ecs.soton.ac.uk</a>] On Behalf Of Andrew Beeken
Sent: 20 May 2014 16:14
To: <a class="moz-txt-link-abbreviated" href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>
Subject: [EP-tech] Adding fields to admin search

Hello!

I&sup1;ve now been asked to add some fields to the admin search screen in
EPrints. I&sup1;ve found a snippet here:
<a class="moz-txt-link-freetext" href="http://trac.eprints.org/eprints/ticket/3637">http://trac.eprints.org/eprints/ticket/3637</a> which suggests how different
fields can be added in, however the function in question is different in
the version of EPrints we are running. So, any thoughts on how we can do
this? The Trac page suggests that this was put forward to be added to a
future version of EPrints as an admin function, however I presume this
has yet to happen?

Andrew

The University of Lincoln, located in the heart of the city of Lincoln,
has established an international reputation based on high student
satisfaction, excellent graduate employment and world-class research.

The information in this e-mail and any attachments may be confidential.
If you have received this email in error please notify the sender
immediately and remove it from your system. Do not disclose the contents
to another person or take copies.

Email is not secure and may contain viruses. The University of Lincoln
makes every effort to ensure email is sent without viruses, but cannot
guarantee this and recommends recipients take appropriate precautions.

The University may monitor email traffic data and content in accordance
with its policies and English law. Further information can be found at:
<a class="moz-txt-link-freetext" href="http://www.lincoln.ac.uk/legal">http://www.lincoln.ac.uk/legal</a>.

*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="http://wiki.eprints.org/">http://wiki.eprints.org/</a>
*** EPrints developers Forum: <a class="moz-txt-link-freetext" href="http://forum.eprints.org/">http://forum.eprints.org/</a>

*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="http://wiki.eprints.org/">http://wiki.eprints.org/</a>
*** EPrints developers Forum: <a class="moz-txt-link-freetext" href="http://forum.eprints.org/">http://forum.eprints.org/</a>
</pre>
      </blockquote>
      <pre wrap="">

*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="http://wiki.eprints.org/">http://wiki.eprints.org/</a>
*** EPrints developers Forum: <a class="moz-txt-link-freetext" href="http://forum.eprints.org/">http://forum.eprints.org/</a>

</pre>
    </blockquote>
    <br>
    <div style="bottom: auto; left: 582px; right: auto; top: 234px;
      display: none;" class="translator-theme-default"
      id="translator-floating-panel">
      <div title="Cliquer pour traduire"
        id="translator-floating-panel-button"></div>
    </div>
  </body>
</html>