@iebh/polyglot 4.8.6 → 4.8.8

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.
@@ -323,6 +323,36 @@ var _default = {
323
323
  buffer += branch.content;
324
324
  break;
325
325
  case 'dollarOne':
326
+ switch (engine) {
327
+ case 'PubMed full':
328
+ case 'PubMed abbreviation':
329
+ case 'Lilacs':
330
+ case 'Scopus (basic search)':
331
+ case 'Scopus (advanced search)':
332
+ case 'International HTA Database':
333
+ buffer += '*';
334
+ break;
335
+ case 'Ovid MEDLINE':
336
+ buffer += branch.content;
337
+ break;
338
+ case 'Cochrane Library':
339
+ case 'PsycInfo (Ovid)':
340
+ case 'ProQuest Health and Medical':
341
+ buffer += '?';
342
+ break;
343
+ case 'Embase (Elsevier)':
344
+ case 'Web of Science':
345
+ case 'WoS Advanced':
346
+ buffer += '$';
347
+ break;
348
+ case 'CINAHL (Ebsco)':
349
+ case 'SPORTDiscus':
350
+ case 'Business Source Ultimate':
351
+ case 'PsycInfo (Ebsco)':
352
+ buffer += '#';
353
+ break;
354
+ }
355
+ break;
326
356
  case 'template':
327
357
  console.log("Here2", branch.content, engine, buffer);
328
358
  buffer += _tools["default"].resolveTemplate(branch.content, engine);
@@ -142,7 +142,7 @@ var parse = function parse(query, options) {
142
142
  // $1
143
143
  branch.nodes.push({
144
144
  type: 'dollarOne',
145
- content: match[1].toLowerCase()
145
+ content: match[0].toLowerCase()
146
146
  });
147
147
  offset += match[0].length;
148
148
  q = q.substr(match[0].length);
@@ -151,7 +151,7 @@ var parse = function parse(query, options) {
151
151
  // $2 to $9
152
152
  branch.nodes.push({
153
153
  type: 'dollarOtherNum',
154
- content: match[1].toLowerCase()
154
+ content: match[0].toLowerCase()
155
155
  });
156
156
  offset += match[0].length;
157
157
  q = q.substr(match[0].length);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iebh/polyglot",
3
- "version": "4.8.6",
3
+ "version": "4.8.8",
4
4
  "description": "IEBH-SRA tool to convert between different medical database search formats",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {