@iebh/polyglot 4.4.2 → 4.4.6

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.
package/lib/index.js CHANGED
@@ -3,6 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ Object.defineProperty(exports, "parse", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _parse.parse;
10
+ }
11
+ });
6
12
  Object.defineProperty(exports, "fieldCodesObject", {
7
13
  enumerable: true,
8
14
  get: function get() {
@@ -54,7 +54,7 @@ var _default = {
54
54
 
55
55
  case 'group':
56
56
  if (branch.field) {
57
- if (engine === "Ovid MEDLINE" || engine === "Scopus (advanced search)" || engine === "Embase (Elsevier)") {
57
+ if (engine === "Ovid MEDLINE" || engine === "Scopus (advanced search)" || engine === "Embase (Elsevier)" || engine === "WoS Advanced") {
58
58
  // Put field code outside brackets
59
59
  if (branch.field.match(/mesh/i)) {
60
60
  var translateObject = _meshObject["default"][engine] ? _meshObject["default"][engine][branch.field] : null;
@@ -135,7 +135,7 @@ var _default = {
135
135
  }
136
136
  }
137
137
  } else {
138
- // Only print each line number in format defined by engine
138
+ // Only print each line number in format defined by engine
139
139
  // If branch.ref is array then user specified OR/1-4
140
140
  if (Array.isArray(branch.ref)) {
141
141
  for (node in branch.ref) {
@@ -215,7 +215,7 @@ var parse = function parse(query, options) {
215
215
  offset += match[1].length - 1;
216
216
  q = q.substr(match[1].length - 1);
217
217
  }
218
- } else if (match = /^((AND|OR|NOT) +#?([0-9]+))($(?![\r\n])|\s+)/i.exec(q)) {
218
+ } else if (match = /^((AND|OR|NOT) +#?([0-9]+))($(?![\r\n])|\s+|\))/i.exec(q)) {
219
219
  // AND 2...
220
220
  trimLastLeaf();
221
221
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iebh/polyglot",
3
- "version": "4.4.2",
3
+ "version": "4.4.6",
4
4
  "description": "IEBH-SRA tool to convert between different medical database search formats",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
package/dist/demoApp.css DELETED
@@ -1,190 +0,0 @@
1
- a, [ng-click] {
2
- cursor: pointer;
3
- }
4
-
5
- .fa-eraser:hover {
6
- color: blue;
7
- }
8
-
9
- .fa-clipboard:hover {
10
- color: blue;
11
- }
12
-
13
- .fa-random:hover {
14
- color: blue;
15
- }
16
-
17
- a:hover {
18
- text-decoration: none;
19
- }
20
-
21
- .ace_editor {
22
- font-size: 16px;
23
- }
24
-
25
- .tab {
26
- display: inline-block;
27
- width: 20px;
28
- }
29
-
30
- #customcard {
31
- overflow: visible;
32
- }
33
-
34
- .preview {
35
- white-space: pre-wrap;
36
- background-color: #F7F7F7;
37
- box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
38
- padding: 20px;
39
- overflow: visible;
40
- }
41
-
42
- .preview * {
43
- display: inline
44
- }
45
-
46
- .black-underline {
47
- border-bottom: 1px black dotted;
48
- }
49
-
50
- .blue-underline {
51
- border-bottom: 1px blue dashed;
52
- }
53
-
54
- .red-underline {
55
- border-bottom: 1px red dashed;
56
- }
57
-
58
- .highlight {
59
- background-color: #FFFF00;
60
- }
61
-
62
- .tooltip-content {
63
- margin-bottom: 10px;
64
- }
65
-
66
- .btn-dark {
67
- margin-left: 10px;
68
- }
69
-
70
- #checkbox {
71
- margin-right: 5px;
72
- }
73
-
74
- .show-example {
75
- margin-top: 10px;
76
- margin-bottom: 0px;
77
- }
78
-
79
- .push-up {
80
- margin-top: -15px;
81
- }
82
-
83
- .tooltip {
84
- display: block !important;
85
- z-index: 10000;
86
- }
87
-
88
- .tooltip .tooltip-inner {
89
- max-width: 210px;
90
- background: black;
91
- color: white;
92
- border-radius: 16px;
93
- padding: 5px 10px 4px;
94
- }
95
-
96
- .tooltip .tooltip-arrow {
97
- width: 0;
98
- height: 0;
99
- border-style: solid;
100
- position: absolute;
101
- margin: 5px;
102
- border-color: black;
103
- z-index: 1;
104
- }
105
-
106
- .tooltip[x-placement^="top"] {
107
- margin-bottom: 5px;
108
- }
109
-
110
- .tooltip[x-placement^="top"] .tooltip-arrow {
111
- border-width: 5px 5px 0 5px;
112
- border-left-color: transparent !important;
113
- border-right-color: transparent !important;
114
- border-bottom-color: transparent !important;
115
- bottom: -5px;
116
- left: calc(50% - 5px);
117
- margin-top: 0;
118
- margin-bottom: 0;
119
- }
120
-
121
- .tooltip[x-placement^="bottom"] {
122
- margin-top: 5px;
123
- }
124
-
125
- .tooltip[x-placement^="bottom"] .tooltip-arrow {
126
- border-width: 0 5px 5px 5px;
127
- border-left-color: transparent !important;
128
- border-right-color: transparent !important;
129
- border-top-color: transparent !important;
130
- top: -5px;
131
- left: calc(50% - 5px);
132
- margin-top: 0;
133
- margin-bottom: 0;
134
- }
135
-
136
- .tooltip[x-placement^="right"] {
137
- margin-left: 5px;
138
- }
139
-
140
- .tooltip[x-placement^="right"] .tooltip-arrow {
141
- border-width: 5px 5px 5px 0;
142
- border-left-color: transparent !important;
143
- border-top-color: transparent !important;
144
- border-bottom-color: transparent !important;
145
- left: -5px;
146
- top: calc(50% - 5px);
147
- margin-left: 0;
148
- margin-right: 0;
149
- }
150
-
151
- .tooltip[x-placement^="left"] {
152
- margin-right: 5px;
153
- }
154
-
155
- .tooltip[x-placement^="left"] .tooltip-arrow {
156
- border-width: 5px 0 5px 5px;
157
- border-top-color: transparent !important;
158
- border-right-color: transparent !important;
159
- border-bottom-color: transparent !important;
160
- right: -5px;
161
- top: calc(50% - 5px);
162
- margin-left: 0;
163
- margin-right: 0;
164
- }
165
-
166
- .tooltip.popover .popover-inner {
167
- background: #f9f9f9;
168
- color: black;
169
- padding: 24px;
170
- border-radius: 5px;
171
- box-shadow: 0 0px 15px 5px rgba(0, 0, 0, 0.5);
172
- }
173
-
174
- .tooltip.popover .popover-arrow {
175
- border-color: #f9f9f9;
176
- box-shadow: 0 5px 30px rgba(black, .1);
177
- }
178
-
179
- .tooltip[aria-hidden='true'] {
180
- visibility: hidden;
181
- opacity: 0;
182
- transition: opacity .15s, visibility .15s;
183
- }
184
-
185
- .tooltip[aria-hidden='false'] {
186
- visibility: visible;
187
- opacity: 1;
188
- transition: opacity .15s;
189
- }
190
-