@iebh/polyglot 4.6.0 → 4.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -65,7 +65,7 @@ var _default = {
65
65
  }
66
66
  }).join("");
67
67
  // Fix to move '+' back one space when quoting
68
- if (engine === "CINAHL (Ebsco)") {
68
+ if (engine == "CINAHL (Ebsco)" || engine == "PsycInfo (Ebsco)") {
69
69
  content = fixCinahl(content);
70
70
  }
71
71
  buffer += comment && settings.highlighting ? _tools["default"].createTooltip(content, comment) : content;
@@ -198,7 +198,7 @@ var _default = {
198
198
  }
199
199
  }).join("");
200
200
  // Fix to move '+' back one space when quoting
201
- if (engine == "CINAHL (Ebsco)") {
201
+ if (engine == "CINAHL (Ebsco)" || engine == "PsycInfo (Ebsco)") {
202
202
  content = fixCinahl(content);
203
203
  }
204
204
  buffer += _comment3 && settings.highlighting ? _tools["default"].createTooltip(content, _comment3) : content;
@@ -250,6 +250,9 @@ var _default = {
250
250
  case 'CINAHL (Ebsco)':
251
251
  buffer += "N".concat(branch.proximity);
252
252
  break;
253
+ case 'PsycInfo (Ebsco)':
254
+ buffer += "N".concat(branch.proximity);
255
+ break;
253
256
  case 'Scopus (basic search)':
254
257
  case 'Scopus (advanced search)':
255
258
  buffer += "W/".concat(branch.proximity);
@@ -284,6 +287,9 @@ var _default = {
284
287
  case 'CINAHL (Ebsco)':
285
288
  buffer += 'W1';
286
289
  break;
290
+ case 'PsycInfo (Ebsco)':
291
+ buffer += 'W1';
292
+ break;
287
293
  case 'Scopus (basic search)':
288
294
  case 'Scopus (advanced search)':
289
295
  buffer += 'W/1';
@@ -50,6 +50,7 @@ var _default = {
50
50
  description: 'Standard Cochrane RCT Filter',
51
51
  engines: {
52
52
  "CINAHL (Ebsco)": '(MH "Clinical Trials+") OR (MH "Quantitative Studies") OR TI placebo* OR AB placebo* OR (MH "Placebos") OR (MH "Random Assignment") OR TI random* OR AB random* OR TI ((singl* or doubl* or tripl* or trebl*) W1 (blind* or mask*)) OR AB ((singl* or doubl* or tripl* or trebl*) W1 (blind* or mask*)) OR TI clinic* trial* OR AB clinic* trial* OR PT clinical trial',
53
+ "PsycInfo (Ebsco)": '(MH "Clinical Trials+") OR (MH "Quantitative Studies") OR TI placebo* OR AB placebo* OR (MH "Placebos") OR (MH "Random Assignment") OR TI random* OR AB random* OR TI ((singl* or doubl* or tripl* or trebl*) W1 (blind* or mask*)) OR AB ((singl* or doubl* or tripl* or trebl*) W1 (blind* or mask*)) OR TI clinic* trial* OR AB clinic* trial* OR PT clinical trial',
53
54
  "Embase (Elsevier)": "random* OR factorial OR crossover OR placebo OR blind OR blinded OR assign OR assigned OR allocate OR allocated OR 'crossover procedure'/exp OR 'double-blind procedure'/exp OR 'randomized controlled trial'/exp OR 'single-blind procedure'/exp NOT ('animal'/exp NOT ('animal'/exp AND 'human'/exp))",
54
55
  "Ovid MEDLINE": '((randomized controlled trial or controlled clinical trial).pt. or randomized.ab. or randomised.ab. or placebo.ab. or drug therapy.fs. or randomly.ab. or trial.ab. or groups.ab.) not (exp animals/ not humans.sh.)',
55
56
  "PsycInfo (Ovid)": 'SU.EXACT("Treatment Effectiveness Evaluation") OR SU.EXACT.EXPLODE("Treatment Outcomes") OR SU.EXACT("Placebo") OR SU.EXACT("Followup Studies") OR placebo* OR random* OR "comparative stud*" OR clinical NEAR/3 trial* OR research NEAR/3 design OR evaluat* NEAR/3 stud* OR prospectiv* NEAR/3 stud* OR (singl* OR doubl* OR trebl* OR tripl*) NEAR/3 (blind* OR mask*)',
@@ -64,6 +65,7 @@ var _default = {
64
65
  description: 'Standard Cochrane SR Filter',
65
66
  engines: {
66
67
  "CINAHL (Ebsco)": 'TI Medline AB Medline OR TI Pubmed AB Pubmed OR (TI systematic AB systematic AND TI review AB review) OR TI meta-analysis OR AB meta-analysis',
68
+ "PsycInfo (Ebsco)": 'TI Medline AB Medline OR TI Pubmed AB Pubmed OR (TI systematic AB systematic AND TI review AB review) OR TI meta-analysis OR AB meta-analysis',
67
69
  "Embase (Elsevier)": 'Medline:ti,ab OR Pubmed:ti,ab OR (systematic:ti,ab AND review:ti,ab) OR meta-analysis:pt OR CDSR:jt',
68
70
  "Ovid MEDLINE": 'search:.tw.OR meta analysis.mp,pt.OR review.pt.OR di.xs. OR associated.tw.',
69
71
  "PubMed full": 'search*[Title/Abstract] OR meta analysis[Publication Type] OR meta analysis[Title/Abstract] OR meta analysis[MeSH] OR review[Publication Type] OR diagnosis[MeSH Subheading] OR associated[Title/Abstract]',
@@ -169,6 +169,7 @@ var tools = {
169
169
  number = ref;
170
170
  break;
171
171
  case 'CINAHL (Ebsco)':
172
+ case 'PsycInfo (Ebsco)':
172
173
  case 'SPORTDiscus':
173
174
  number = "S" + ref;
174
175
  break;
@@ -228,6 +229,13 @@ var tools = {
228
229
  '#': '?'
229
230
  };
230
231
  break;
232
+ case 'PsycInfo (Ebsco)':
233
+ replaceObj = {
234
+ '$': '?',
235
+ '?': '#',
236
+ '#': '?'
237
+ };
238
+ break;
231
239
  case 'Scopus (basic search)':
232
240
  case 'Scopus (advanced search)':
233
241
  // space = true; //Always include quotes with scopus to make phrase a "loose phrase"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iebh/polyglot",
3
- "version": "4.6.0",
3
+ "version": "4.6.2",
4
4
  "description": "IEBH-SRA tool to convert between different medical database search formats",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -34,7 +34,8 @@
34
34
  "Matt Carter <m@ttcarter.com> (https://github.com/hash-bang)",
35
35
  "Connor Forbes <cforbes.software@gmail.com> (https://github.com/connorf25)",
36
36
  "Justin Cark <jclark@bond.edu.au> (https://github.com/Justin-Clarc)",
37
- "Tian Liang <amethystoct2012@gmail.com> (https://github.com/Octian)"
37
+ "Tian Liang <amethystoct2012@gmail.com> (https://github.com/Octian)",
38
+ "Irene Priya Jose <irenepriyajose@gmail.com> (https://github.com/s5333384)"
38
39
  ],
39
40
  "license": "MIT",
40
41
  "bugs": {