Skip to content

Commit

Permalink
Updated search examples
Browse files Browse the repository at this point in the history
  • Loading branch information
shinyichen authored and thostetler committed Jul 30, 2023
1 parent 305fc6a commit b7401c1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/react/Recommender/components/SearchExamples.jsx.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ define([
<div className="search-examples">
<div className="quick-reference">
<Dl>
{searchExamples.slice(0, 7).map((entry) => {
{searchExamples.slice(0, 8).map((entry) => {
const index = generateRandom(entry.examples.length);
const example = entry.syntax.replace('%', entry.examples[index]);
return (
Expand All @@ -86,7 +86,7 @@ define([
</div>
<div className="quick-reference">
<Dl>
{searchExamples.slice(7).map((entry) => {
{searchExamples.slice(8).map((entry) => {
const index = generateRandom(entry.examples.length);
const example = entry.syntax.replace('%', entry.examples[index]);
return (
Expand Down
12 changes: 12 additions & 0 deletions src/js/react/Recommender/models/searchExamples.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,18 @@ define([], function() {
syntax: 'doctype:%',
examples: ['software'],
},
{
label: 'newly ingested',
syntax: 'entdate:[NOW-7DAYS TO NOW]',
examples: [],
tooltip: 'papers entered in the last week',
},
{
label: 'eprint',
syntax: 'property:"eprint_openaccess”',
examples: [],
tooltip: 'papers which are or have an eprint',
},
];

return searchExamples;
Expand Down

0 comments on commit b7401c1

Please sign in to comment.