瀏覽代碼

Merge pull request #1076 from jibe-b/patch-10

[add] OpenAIRE publication engine
Adam Tauber 7 年之前
父節點
當前提交
ddeea6386b
沒有帳戶連結到提交者的電子郵件
共有 1 個文件被更改,包括 14 次插入2 次删除
  1. 14
    2
      searx/settings.yml

+ 14
- 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,19 @@ 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
+    engine : json_engine
432
+    paging : True
433
+    search_url : http://api.openaire.eu/search/publications?format=json&page={pageno}&size=10&title={query}
434
+    results_query : response/results/result
435
+    url_query : metadata/oaf:entity/oaf:result/children/instance/webresource/url/$
436
+    title_query : metadata/oaf:entity/oaf:result/title/$
437
+    content_query : metadata/oaf:entity/oaf:result/description/$
438
+    categories : science
439
+    shortcut : oap
428 440
     timeout: 5.0
429 441
 
430 442
   - name : openstreetmap