Skip to content

Commit ce4979e

Browse files
committed
1 parent 493e3c2 commit ce4979e

File tree

1 file changed

+59
-2
lines changed

1 file changed

+59
-2
lines changed

WHO.js

+59-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"inRepository": true,
1010
"translatorType": 12,
1111
"browserSupport": "gcsibv",
12-
"lastUpdated": "2021-08-10 16:40:28"
12+
"lastUpdated": "2022-12-06 12:21:28"
1313
}
1414

1515
/*
@@ -157,7 +157,7 @@ function detectSearch(item) {
157157

158158
function doSearch(item) {
159159
let ISBN = ZU.cleanISBN(item.ISBN);
160-
let url = `https://apps.who.int/iris/discover/export?format=refman&list=discover&rpp=10&etal=0&query=${ISBN}&group_by=none&page=1`;
160+
let url = `https://apps.who.int/iris/discover/export?format=refman&list=discover&rpp=10&etal=0&query=${ISBN}&group_by=none&page=1&filtertype_0=identifier&filter_relational_operator_0=equals&filter_0=${ISBN}`;
161161
ZU.doGet(url, function (risText) {
162162
if (!risText) return;
163163

@@ -396,6 +396,63 @@ var testCases = [
396396
"type": "web",
397397
"url": "http://apps.who.int/iris/discover?query=acupuncture",
398398
"items": "multiple"
399+
},
400+
{
401+
"type": "search",
402+
"input": {
403+
"ISBN": "9789241506236"
404+
},
405+
"items": [
406+
{
407+
"itemType": "book",
408+
"title": "Global action plan for the prevention and control of noncommunicable diseases 2013-2020",
409+
"creators": [
410+
{
411+
"lastName": "World Health Organization",
412+
"creatorType": "author",
413+
"fieldMode": 1
414+
}
415+
],
416+
"date": "2013",
417+
"ISBN": "9789241506236",
418+
"language": "en",
419+
"libraryCatalog": "WHO IRIS",
420+
"place": "Geneva",
421+
"publisher": "World Health Organization",
422+
"url": "https://apps.who.int/iris/handle/10665/94384",
423+
"attachments": [
424+
{
425+
"title": "Full Text PDF",
426+
"mimeType": "application/pdf"
427+
}
428+
],
429+
"tags": [
430+
{
431+
"tag": "Cardiovascular Diseases"
432+
},
433+
{
434+
"tag": "Chronic Disease"
435+
},
436+
{
437+
"tag": "Diabetes Mellitus"
438+
},
439+
{
440+
"tag": "Health Planning"
441+
},
442+
{
443+
"tag": "International Cooperation"
444+
},
445+
{
446+
"tag": "Neoplasms"
447+
},
448+
{
449+
"tag": "Respiratory Tract Diseases"
450+
}
451+
],
452+
"notes": [],
453+
"seeAlso": []
454+
}
455+
]
399456
}
400457
]
401458
/** END TEST CASES **/

0 commit comments

Comments
 (0)