浏览代码

[add] OpenAIRE publication engine

and modifies OpenAIRE datasets engine
jibe-b 7 年前
父节点
当前提交
3e9cc1474f
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 13 次插入2 次删除
  1. 13
    2
      searx/settings.yml

+ 13
- 2
searx/settings.yml 查看文件

@@ -415,7 +415,7 @@ engines:
415 415
     shortcut : nt
416 416
     disabled : True
417 417
 
418
-  - name : openaire
418
+  - name : openairedatasets
419 419
     engine : json_engine
420 420
     paging : True
421 421
     search_url : http://api.openaire.eu/search/datasets?format=json&page={pageno}&size=10&title={query}
@@ -424,7 +424,18 @@ engines:
424 424
     title_query : metadata/oaf:entity/oaf:result/title/$
425 425
     content_query : metadata/oaf:entity/oaf:result/description/$
426 426
     categories : science
427
-    shortcut : oa
427
+    shortcut : oad
428
+    timeout: 5.0
429
+
430
+  - name : openairepublications
431
+    paging : True
432
+    search_url : http://api.openaire.eu/search/publications?format=json&page={pageno}&size=10&title={query}
433
+    results_query : response/results/result
434
+    url_query : metadata/oaf:entity/oaf:result/children/instance/webresource/url/$
435
+    title_query : metadata/oaf:entity/oaf:result/title/$
436
+    content_query : metadata/oaf:entity/oaf:result/description/$
437
+    categories : science
438
+    shortcut : oap
428 439
     timeout: 5.0
429 440
 
430 441
   - name : openstreetmap