<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi!</p>
    <p> I've found that the virus can be referred also as "SARS COV-2"
      so maybe you can add also this. But beware that Eprints search has
      a problem with -, it split the word using it.<br>
    </p>
    <div class="moz-cite-prefix">Il 27/04/20 17:06, James Kerwin via
      Eprints-tech ha scritto:<br>
    </div>
    <blockquote type="cite"
cite="mid:EMEW3|942a457e724595d3b487147e73b60d14w3QG9014eprints-tech-bounces|ecs.soton.ac.uk|CAKkNZ9Bp5Hpsxb-G9oKRtnn6-pHfcG10ob8mfYBkQ-KFcAF6Sw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hello All,<br>
        <div><br>
        </div>
        <div>I hope everyone is well in body and mind.</div>
        <div><br>
        </div>
        <div>I need some help with the EPrints search function. I have
          been asked to add a box to the repository homepage that lists
          the latest coronavirus-related deposits.</div>
        <div><br>
        </div>
        <div>I'm hoping to search via keywords for "coronavirus" and
          "covid-19". I also want to search for either of these terms in
          titles. To do this I'm currently butchering a copy of
          cgi/latest_tool.</div>
        <div><br>
        </div>
        <div>I can get the keywords part to work using:</div>
        <div><br>
        </div>
        <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
          <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
            <blockquote style="margin:0 0 0
              40px;border:none;padding:0px">
              <div>$c-&gt;{latest_rona_modes} = {</div>
            </blockquote>
          </blockquote>
          <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
            <blockquote style="margin:0 0 0
              40px;border:none;padding:0px">
              <div> default =&gt; { citation =&gt; "noauth" },</div>
            </blockquote>
          </blockquote>
          <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
            <blockquote style="margin:0 0 0
              40px;border:none;padding:0px">
              <div> fplatest =&gt; { </div>
            </blockquote>
          </blockquote>
          <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
            <blockquote style="margin:0 0 0
              40px;border:none;padding:0px">
              <div> citation =&gt; "popular", max =&gt; 5, </div>
            </blockquote>
          </blockquote>
          <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
            <blockquote style="margin:0 0 0
              40px;border:none;padding:0px">
              <div> #citation =&gt; "result", max =&gt; 3, </div>
            </blockquote>
          </blockquote>
          <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
            <blockquote style="margin:0 0 0
              40px;border:none;padding:0px">
              <div> filters =&gt; [</div>
            </blockquote>
          </blockquote>
          <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
            <blockquote style="margin:0 0 0
              40px;border:none;padding:0px">
              <div> #{ meta_fields =&gt; [
                "full_text_status","full_text_status" ], value =&gt;
                ("none"||"public") }</div>
            </blockquote>
          </blockquote>
          <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
            <blockquote style="margin:0 0 0
              40px;border:none;padding:0px">
              <div> { meta_fields =&gt; [ "keywords" ], value =&gt;
                "covid-19"}</div>
              <div><br>
              </div>
            </blockquote>
          </blockquote>
        </blockquote>
        This also works with "title" as you would expect.
        <div><br>
        </div>
        <div>What I really want is to do a search where the keywords can
          be "covid-19" OR "coronavirus" as well as including some
          allowance for adding an:</div>
        <div><br>
        </div>
        <div> "OR title LIKE '%covid-19%' OR title LIKE 'coronavirus' in
          MYSQL-speak.</div>
        <div><br>
        </div>
        <div>Am I able to do this using the EPrints::Search plugin? I've
          tried reading the codumentation and experimenting with it, but
          I'm not getting very far.</div>
        <div><br>
        </div>
        <div>If it's not possible I can think of a number of bodges for
          it, but decided it was best to attempt the proper way first.</div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>James</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce3788c97bf5e4320cdc008d7ecd7ec5d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=hS6%2Fq6as5cjfnRDl3%2BVaWvU1alvq1ltSMuFlNBTHAFs%3D&amp;reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="ag0AM0GQyofv9izmFAhUT8LJqczj967nuk/Jy6Ju1Tc7MGGpbt0w7affnR/IuQ+Mijw745sjE1ZN/tgaoocBkS6brRcWrUs0myG4vQC11H5GWpbB6h0grw/BCdpR0VGfLZ7c7e1JbS6VUOQAlI7EYXwfsiUwx99GgYzu7Fpj3tU=">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce3788c97bf5e4320cdc008d7ecd7ec5d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=ztmnioWCFvO0cEhJZ8n6ENq%2BBlz7CDx%2FloY%2BPn9%2FapE%3D&amp;reserved=0" originalSrc="http://wiki.eprints.org/" shash="fCNwhX3Uwl1r9suvQB1hHLpu7KjLBio1IiIJy80wofzIcMy7zERsiVgZzkOTRAxmftLe7mSWTHm2t5hc6u0fLvZreNiWW/5eo1EgxJ6q1S1olDu6UL/FreNvr6fr20kxQkbFoY9yur7MmpJrIskIU/KpslLuQaEluI+LloAm8kA=">http://wiki.eprints.org/</a></pre>
    </blockquote>
  </body>
</html>