<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints%2Fblob%2F3.3%2Fbin%2Flift_embargos&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C73262c8d957a44c8389b08d7eac381b6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=S0G3qnX7tK3Kmlw4%2FlWwkaPH8COeYb%2FbH7PVZDVxWck%3D&reserved=0" originalSrc="https://github.com/eprints/eprints/blob/3.3/bin/lift_embargos" shash="ndNuJOIaXr0ycra6MpcQBrDgH2I7mA+7RoiKwcID1pmrBZxCNB4yvexUKs8PnJQpztWOmDhCZNbhHw3RJQ2CqoKejONjYxgOZoHkV2wrY+KjMGDj+lLq1uObu/OMU9Af1f00EDPRhba2UGDQE928htw+MIdOiIe73W2la/3YC+I=">https://github.com/eprints/eprints/blob/3.3/bin/lift_embargos</a></p>
<p>and</p>
<p><a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FAPI%3AEPrints%2FSearch&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C73262c8d957a44c8389b08d7eac381b6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=dkgF%2FMJTLhMoDyDdAEj5Bu8dsboV9JN1r2Bo%2FRAY7bY%3D&reserved=0" originalSrc="https://wiki.eprints.org/w/API:EPrints/Search" shash="DAIwF3/QVfQrx/nYA7DKlQ/t9lAYSw+UKLLDlKbqCaacF6fpTKuwNqyEqKLVoXuY13PzRCbskvGFcJPiMkZEWYV106i6bVK0kaemPxs2DdMQq2NRZmqe/tRXT5axD0+HZzuJzEEgN4bGi9Opnd8zUBknf5E4TW2G2fYsFbdt5zs=">https://wiki.eprints.org/w/API:EPrints/Search</a></p>
<p>should be a good starting point<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->{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 => { citation => "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 => { </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 => "popular", max => 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 => "result", max => 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 => [</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 => [
"full_text_status","full_text_status" ], value =>
("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 => [ "keywords" ], value =>
"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&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C73262c8d957a44c8389b08d7eac381b6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=fEN3B4c0buIfaRDXDZQGZk0UyfEsFcvfAM1ZwqruIyA%3D&reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="cSsAzoQd9IppIfvW2hvoAyptbl9dEvmNY3DTKxUSW7okxKH25Buk8s+OQXqXu15i9DLP+6caJKq+eW42BOuh2LqflxOsglvyvxZD5ycIvi/yoC0RCQl9j/5VJ/NRfrUntmTDazBawhaG8igBBmdZoOb7pehEVXv4NBlKj0aryYY=">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&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C73262c8d957a44c8389b08d7eac381b6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=OosS3%2F1tkMdUNsZNdQWr%2FxnGJNKicFVYvMJSyFtGvxI%3D&reserved=0" originalSrc="http://wiki.eprints.org/" shash="Suy631SZSzdvg/aI4xAXKUu1M1241Vkl6yKjoyFG8RaPQlDekhXFi1ZUEZCk33Zg9r9bkVySArardqm9T5M0cs9WijPNFEtB3z1D+As8P4xhhR5dRyq14OmcoTX2nFiciRpiAsXR83zwYPWONjzj7sgebldQB6MyXsj5BzIwEec=">http://wiki.eprints.org/</a></pre>
</blockquote>
</body>
</html>