@@ -7,12 +7,28 @@ import { queryConcatenator } from "../../../../utils/data";
77import { unescapeHTML } from "../../../../utils/unescapeHTMLentities.js" ;
88
99
10+ const fieldmapper = {
11+ relation : "relation" ,
12+ identifier : "identifier" ,
13+ title : "title" ,
14+ paper_abstract : "abstract" ,
15+ published_in : "publication source" ,
16+ year : "publication date" ,
17+ authors : "authors" ,
18+ link : "link" ,
19+ oa_state : "open access status" ,
20+ resulttype : "result type" ,
21+ language : "language" ,
22+ content_provider : "content provider" ,
23+ coverage : "coverage"
24+ }
25+
1026
1127const StandardKMInfo = ( {
1228 serviceName,
1329 serviceDesc,
1430 serviceLogo,
15- params : { query, customTitle, repo_name, q_advanced, custom_clustering} ,
31+ params : { query, customTitle, sorting , repo_name, q_advanced, custom_clustering} ,
1632} ) => {
1733 let queryString = queryConcatenator ( [ query , q_advanced ] )
1834
@@ -28,19 +44,23 @@ const StandardKMInfo = ({
2844 < Modal . Body id = "info-body" >
2945 { ( ! ! customTitle || ! ! query || ! ! q_advanced ) && (
3046 < p >
31- This knowledge map presents you with a topical overview of research
47+ This knowledge map presents you with { ! ! custom_clustering ? "an overview" : " a topical overview" } of research
3248 on{ " " }
3349 < strong className = "hs-strong" >
3450 { customTitle ? customTitle : queryString }
3551 </ strong > { " " }
3652 based on the 100{ " " }
53+ { ( sorting === "most-relevant" ) ? (
3754 < a
3855 target = "_blank"
3956 rel = "noreferrer"
4057 href = "https://openknowledgemaps.org/faq#faq-most-relevant"
4158 >
4259 most relevant
43- </ a > { " " }
60+ </ a > ) : (
61+ "most recent" )
62+ }
63+ { " " }
4464 documents matching your search query.
4565 { custom_clustering && (
4666 < span >
@@ -89,9 +109,10 @@ const StandardKMInfo = ({
89109 { custom_clustering && (
90110 < p >
91111 < strong className = "hs-strong" > Please note:</ strong >
92- { " " } For this knowledge map we use a custom clustering.
93- Area titles are created from custom
94- keywords and may behave slightly differently to regular knowledge maps described in our FAQs.
112+ { " " } For this knowledge map we do not use topical clustering
113+ as described in our FAQs. In this knowledge map we use the keywords
114+ available in the { custom_clustering in fieldmapper ? fieldmapper [ custom_clustering ] : "subject" } metadata field for the creation of the area titles.
115+
95116 </ p >
96117 ) }
97118 { ! custom_clustering && (
0 commit comments