Skip to content

Commit

Permalink
Fixes #278.
Browse files Browse the repository at this point in the history
  • Loading branch information
khituras committed Sep 19, 2024
1 parent 92b909d commit cb4fa94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ private void readParameters(Request request) {
if (listATextAreaValue == null)
listATextAreaValue = request.getParameter(ALIST);
if (listATextAreaValue != null)
listATextAreaValue = Arrays.stream(listATextAreaValue.split("[\n,]")).map(this::decodeUrlEncoding).collect(Collectors.joining("\n"));
listATextAreaValue = Arrays.stream(decodeUrlEncoding(listATextAreaValue).split("[\n,]")).collect(Collectors.joining("\n"));
listBTextAreaValue = request.getParameter(LISTB);
if (listBTextAreaValue == null)
listBTextAreaValue = request.getParameter(BLIST);
if (listBTextAreaValue != null)
listBTextAreaValue = Arrays.stream(listBTextAreaValue.split("[\n,]")).map(this::decodeUrlEncoding).collect(Collectors.joining("\n"));
listBTextAreaValue = Arrays.stream(decodeUrlEncoding(listBTextAreaValue).split("[\n,]")).collect(Collectors.joining("\n"));
taxId = request.getParameter(TAXID);
selectedEventTypes = new ArrayList<>(EnumSet.allOf(EventTypes.class));
final String eventTypesString = request.getParameter(EVENTTYPES);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@
</dd>
<dt>Why do full-text query or filter results highlight words that do not seem to match a query term?</dt>
<dd>
For full-text queries GePI expands abbreviations. Consider the abbreviation <em>cyclic mechanical stress (CMS)</em>, used for example in <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2654047/" class="link-secondary" target="_blank">PMC2654047</a>. It is introduced at the beginning of the document and then used throughout the text. Thus, the query <em>stress</em> would only work on the first occurrence of the term when the long form is given. To allow matches for all the other places, too, we internally expand abbreviations to make such matches possible.
For full-text queries GePI expands abbreviations. Consider the abbreviation <em>oscillatory shear stress (OS)</em>, used for example in <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10835076/" class="link-secondary" target="_blank">PMC10835076</a>. It is introduced at the beginning of the document and then used throughout the text. Thus, the query <em>stress</em> would only work on the first occurrence of the term when the long form is given. To allow matches for all the other places, too, we internally expand abbreviations to make such matches possible.
<p>
<t:pagelink page="Index" anchor="tableresult_widget" parameters="literal:{alist:bmp1%2Cbmp2%2Csmad1,sentencefilter:stress}" target="_blank" class="link-light btn btn-info" title="Click to start an example search filtered by the word 'stress' that will be found in abbreviations." data-bs-toggle="default-tooltip">
<t:pagelink page="Index" anchor="tableresult_widget" parameters="literal:{docid:PMC10835076,alist:bmp1%2Cbmp2%2Csmad1,sentencefilter:stress}" target="_blank" class="link-light btn btn-info" title="Click to start an example search filtered by the word 'stress' that will be found in abbreviations." data-bs-toggle="default-tooltip">
Show this example in GePI</t:pagelink>
</p>
</dd>
Expand Down

0 comments on commit cb4fa94

Please sign in to comment.