@iebh/polyglot 4.5.0 → 4.6.0

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.
@@ -4,7 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
-
8
7
  var _default = JSON.parse("{\"virology[subheading]\":\"Virology\",\"virology[sh]\":\"Virology\",\"virology.fs.\":\"Virology\",\"virology.fs\":\"Virology\",\"vi[subheading]\":\"Virology\",\"vi.fs.\":\"Virology\",\"vi.fs\":\"Virology\",\"veterinary[subheading]\":\"Veterinary\",\"veterinary[sh]\":\"Veterinary\",\"veterinary.fs.\":\"Veterinary\",\"veterinary.fs\":\"Veterinary\",\"ve[subheading]\":\"Veterinary\",\"ve.fs.\":\"Veterinary\",\"ve.fs\":\"Veterinary\",\"utilization[subheading]\":\"Utilization\",\"utilization[sh]\":\"Utilization\",\"utilization.fs.\":\"Utilization\",\"utilization.fs\":\"Utilization\",\"ut[subheading]\":\"Utilization\",\"ut.fs.\":\"Utilization\",\"ut.fs\":\"Utilization\",\"urine[subheading]\":\"Urine\",\"urine[sh]\":\"Urine\",\"urine.fs.\":\"Urine\",\"urine.fs\":\"Urine\",\"ur[subheading]\":\"Urine\",\"ur.fs.\":\"Urine\",\"ur.fs\":\"Urine\",\"ultrastructure[subheading]\":\"Ultrastructure\",\"ultrastructure[sh]\":\"Ultrastructure\",\"ultrastructure.fs.\":\"Ultrastructure\",\"ultrastructure.fs\":\"Ultrastructure\",\"ul[subheading]\":\"Ultrastructure\",\"ul.fs.\":\"Ultrastructure\",\"ul.fs\":\"Ultrastructure\",\"tu[subheading]\":\"Therapeutic Use\",\"tu.fs.\":\"Therapeutic Use\",\"tu.fs\":\"Therapeutic Use\",\"trends[subheading]\":\"Trends\",\"trends[sh]\":\"Trends\",\"trends.fs.\":\"Trends\",\"trends.fs\":\"Trends\",\"transplantation[subheading]\":\"Transplantation\",\"transplantation[sh]\":\"Transplantation\",\"transplantation.fs.\":\"Transplantation\",\"transplantation.fs\":\"Transplantation\",\"transmission[subheading]\":\"Transmission\",\"transmission[sh]\":\"Transmission\",\"transmission.fs.\":\"Transmission\",\"transmission.fs\":\"Transmission\",\"tr[subheading]\":\"Transplantation\",\"tr.fs.\":\"Transplantation\",\"tr.fs\":\"Transplantation\",\"toxicity[subheading]\":\"Toxicity\",\"toxicity[sh]\":\"Toxicity\",\"toxicity.fs.\":\"Toxicity\",\"toxicity.fs\":\"Toxicity\",\"to[subheading]\":\"Toxicity\",\"to.fs.\":\"Toxicity\",\"to.fs\":\"Toxicity\",\"tm[subheading]\":\"Transmission\",\"tm.fs.\":\"Transmission\",\"tm.fs\":\"Transmission\",\"therapy[subheading]\":\"Therapy\",\"therapy[sh]\":\"Therapy\",\"therapy.fs.\":\"Therapy\",\"therapy.fs\":\"Therapy\",\"therapeutic use[subheading]\":\"Therapeutic Use\",\"therapeutic use[sh]\":\"Therapeutic Use\",\"therapeutic use.fs.\":\"Therapeutic Use\",\"therapeutic use.fs\":\"Therapeutic Use\",\"th[subheading]\":\"Therapy\",\"th.fs.\":\"Therapy\",\"th.fs\":\"Therapy\",\"td[subheading]\":\"Trends\",\"td.fs.\":\"Trends\",\"td.fs\":\"Trends\",\"surgery[subheading]\":\"Surgery\",\"surgery[sh]\":\"Surgery\",\"surgery.fs.\":\"Surgery\",\"surgery.fs\":\"Surgery\",\"supply and distribution[subheading]\":\"Supply & Distribution\",\"supply and distribution[sh]\":\"Supply & Distribution\",\"supply and distribution.fs.\":\"Supply & Distribution\",\"supply and distribution.fs\":\"Supply & Distribution\",\"supply & distribution[subheading]\":\"Supply & Distribution\",\"supply & distribution[sh]\":\"Supply & Distribution\",\"supply & distribution.fs.\":\"Supply & Distribution\",\"supply & distribution.fs\":\"Supply & Distribution\",\"su[subheading]\":\"Surgery\",\"su.fs.\":\"Surgery\",\"su.fs\":\"Surgery\",\"statistics and numerical data[subheading]\":\"Statistics & Numerical Data\",\"statistics and numerical data[sh]\":\"Statistics & Numerical Data\",\"statistics and numerical data.fs.\":\"Statistics & Numerical Data\",\"statistics and numerical data.fs\":\"Statistics & Numerical Data\",\"statistics & numerical data[subheading]\":\"Statistics & Numerical Data\",\"statistics & numerical data[sh]\":\"Statistics & Numerical Data\",\"statistics & numerical data.fs.\":\"Statistics & Numerical Data\",\"statistics & numerical data.fs\":\"Statistics & Numerical Data\",\"standards[subheading]\":\"Standards\",\"standards[sh]\":\"Standards\",\"standards.fs.\":\"Standards\",\"standards.fs\":\"Standards\",\"st[subheading]\":\"Standards\",\"st.fs.\":\"Standards\",\"st.fs\":\"Standards\",\"sn[subheading]\":\"Statistics & Numerical Data\",\"sn.fs.\":\"Statistics & Numerical Data\",\"sn.fs\":\"Statistics & Numerical Data\",\"secretion[subheading]\":\"Secretion\",\"secretion[sh]\":\"Secretion\",\"secretion.fs.\":\"Secretion\",\"secretion.fs\":\"Secretion\",\"secondary[subheading]\":\"Secondary\",\"secondary[sh]\":\"Secondary\",\"secondary.fs.\":\"Secondary\",\"secondary.fs\":\"Secondary\",\"se[subheading]\":\"Secretion\",\"se.fs.\":\"Secretion\",\"se.fs\":\"Secretion\",\"sd[subheading]\":\"Supply & Distribution\",\"sd.fs.\":\"Supply & Distribution\",\"sd.fs\":\"Supply & Distribution\",\"sc[subheading]\":\"Secondary\",\"sc.fs.\":\"Secondary\",\"sc.fs\":\"Secondary\",\"rt[subheading]\":\"Radiotherapy\",\"rt.fs.\":\"Radiotherapy\",\"rt.fs\":\"Radiotherapy\",\"rh[subheading]\":\"Rehabilitation\",\"rh.fs.\":\"Rehabilitation\",\"rh.fs\":\"Rehabilitation\",\"rehabilitation[subheading]\":\"Rehabilitation\",\"rehabilitation[sh]\":\"Rehabilitation\",\"rehabilitation.fs.\":\"Rehabilitation\",\"rehabilitation.fs\":\"Rehabilitation\",\"re[subheading]\":\"Radiation Effects\",\"re.fs.\":\"Radiation Effects\",\"re.fs\":\"Radiation Effects\",\"radiotherapy[subheading]\":\"Radiotherapy\",\"radiotherapy[sh]\":\"Radiotherapy\",\"radiotherapy.fs.\":\"Radiotherapy\",\"radiotherapy.fs\":\"Radiotherapy\",\"radiation effects[subheading]\":\"Radiation Effects\",\"radiation effects[sh]\":\"Radiation Effects\",\"radiation effects.fs.\":\"Radiation Effects\",\"radiation effects.fs\":\"Radiation Effects\",\"py[subheading]\":\"Pathogenicity\",\"py.fs.\":\"Pathogenicity\",\"py.fs\":\"Pathogenicity\",\"px[subheading]\":\"Psychology\",\"px.fs.\":\"Psychology\",\"px.fs\":\"Psychology\",\"psychology[subheading]\":\"Psychology\",\"psychology[sh]\":\"Psychology\",\"psychology.fs.\":\"Psychology\",\"psychology.fs\":\"Psychology\",\"ps[subheading]\":\"Parasitology\",\"ps.fs.\":\"Parasitology\",\"ps.fs\":\"Parasitology\",\"prevention and control[subheading]\":\"Prevention & Control\",\"prevention and control[sh]\":\"Prevention & Control\",\"prevention and control.fs.\":\"Prevention & Control\",\"prevention and control.fs\":\"Prevention & Control\",\"prevention & control[subheading]\":\"Prevention & Control\",\"prevention & control[sh]\":\"Prevention & Control\",\"prevention & control.fs.\":\"Prevention & Control\",\"prevention & control.fs\":\"Prevention & Control\",\"pp[subheading]\":\"Physiopathology\",\"pp.fs.\":\"Physiopathology\",\"pp.fs\":\"Physiopathology\",\"poisoning[subheading]\":\"Poisoning\",\"poisoning[sh]\":\"Poisoning\",\"poisoning.fs.\":\"Poisoning\",\"poisoning.fs\":\"Poisoning\",\"po[subheading]\":\"Poisoning\",\"po.fs.\":\"Poisoning\",\"po.fs\":\"Poisoning\",\"pk[subheading]\":\"Pharmacokinetics\",\"pk.fs.\":\"Pharmacokinetics\",\"pk.fs\":\"Pharmacokinetics\",\"physiopathology[subheading]\":\"Physiopathology\",\"physiopathology[sh]\":\"Physiopathology\",\"physiopathology.fs.\":\"Physiopathology\",\"physiopathology.fs\":\"Physiopathology\",\"physiology[subheading]\":\"Physiology\",\"physiology[sh]\":\"Physiology\",\"physiology.fs.\":\"Physiology\",\"physiology.fs\":\"Physiology\",\"pharmacology[subheading]\":\"Pharmacology\",\"pharmacology[sh]\":\"Pharmacology\",\"pharmacology.fs.\":\"Pharmacology\",\"pharmacology.fs\":\"Pharmacology\",\"pharmacokinetics[subheading]\":\"Pharmacokinetics\",\"pharmacokinetics[sh]\":\"Pharmacokinetics\",\"pharmacokinetics.fs.\":\"Pharmacokinetics\",\"pharmacokinetics.fs\":\"Pharmacokinetics\",\"ph[subheading]\":\"Physiology\",\"ph.fs.\":\"Physiology\",\"ph.fs\":\"Physiology\",\"pd[subheading]\":\"Pharmacology\",\"pd.fs.\":\"Pharmacology\",\"pd.fs\":\"Pharmacology\",\"pc[subheading]\":\"Prevention & Control\",\"pc.fs.\":\"Prevention & Control\",\"pc.fs\":\"Prevention & Control\",\"pathology[subheading]\":\"Pathology\",\"pathology[sh]\":\"Pathology\",\"pathology.fs.\":\"Pathology\",\"pathology.fs\":\"Pathology\",\"pathogenicity[subheading]\":\"Pathogenicity\",\"pathogenicity[sh]\":\"Pathogenicity\",\"pathogenicity.fs.\":\"Pathogenicity\",\"pathogenicity.fs\":\"Pathogenicity\",\"parasitology[subheading]\":\"Parasitology\",\"parasitology[sh]\":\"Parasitology\",\"parasitology.fs.\":\"Parasitology\",\"parasitology.fs\":\"Parasitology\",\"pa[subheading]\":\"Pathology\",\"pa.fs.\":\"Pathology\",\"pa.fs\":\"Pathology\",\"organization and administration[subheading]\":\"Organization & Administration\",\"organization and administration[sh]\":\"Organization & Administration\",\"organization and administration.fs.\":\"Organization & Administration\",\"organization and administration.fs\":\"Organization & Administration\",\"organization & administration[subheading]\":\"Organization & Administration\",\"organization & administration[sh]\":\"Organization & Administration\",\"organization & administration.fs.\":\"Organization & Administration\",\"organization & administration.fs\":\"Organization & Administration\",\"og[subheading]\":\"Organization & Administration\",\"og.fs.\":\"Organization & Administration\",\"og.fs\":\"Organization & Administration\",\"nursing[subheading]\":\"Nursing\",\"nursing[sh]\":\"Nursing\",\"nursing.fs.\":\"Nursing\",\"nursing.fs\":\"Nursing\",\"nu[subheading]\":\"Nursing\",\"nu.fs.\":\"Nursing\",\"nu.fs\":\"Nursing\",\"mt[subheading]\":\"Methods\",\"mt.fs.\":\"Methods\",\"mt.fs\":\"Methods\",\"mortality[subheading]\":\"Mortality\",\"mortality[sh]\":\"Mortality\",\"mortality.fs.\":\"Mortality\",\"mortality.fs\":\"Mortality\",\"mo[subheading]\":\"Mortality\",\"mo.fs.\":\"Mortality\",\"mo.fs\":\"Mortality\",\"microbiology[subheading]\":\"Microbiology\",\"microbiology[sh]\":\"Microbiology\",\"microbiology.fs.\":\"Microbiology\",\"microbiology.fs\":\"Microbiology\",\"mi[subheading]\":\"Microbiology\",\"mi.fs.\":\"Microbiology\",\"mi.fs\":\"Microbiology\",\"methods[subheading]\":\"Methods\",\"methods[sh]\":\"Methods\",\"methods.fs.\":\"Methods\",\"methods.fs\":\"Methods\",\"metabolism[subheading]\":\"Metabolism\",\"metabolism[sh]\":\"Metabolism\",\"metabolism.fs.\":\"Metabolism\",\"metabolism.fs\":\"Metabolism\",\"me[subheading]\":\"Metabolism\",\"me.fs.\":\"Metabolism\",\"me.fs\":\"Metabolism\",\"manpower[subheading]\":\"Manpower\",\"manpower[sh]\":\"Manpower\",\"manpower.fs.\":\"Manpower\",\"manpower.fs\":\"Manpower\",\"ma[subheading]\":\"Manpower\",\"ma.fs.\":\"Manpower\",\"ma.fs\":\"Manpower\",\"lj[subheading]\":\"Legislation & Jurisprudence\",\"lj.fs.\":\"Legislation & Jurisprudence\",\"lj.fs\":\"Legislation & Jurisprudence\",\"legislation and jurisprudence[subheading]\":\"Legislation & Jurisprudence\",\"legislation and jurisprudence[sh]\":\"Legislation & Jurisprudence\",\"legislation and jurisprudence.fs.\":\"Legislation & Jurisprudence\",\"legislation and jurisprudence.fs\":\"Legislation & Jurisprudence\",\"legislation & jurisprudence[subheading]\":\"Legislation & Jurisprudence\",\"legislation & jurisprudence[sh]\":\"Legislation & Jurisprudence\",\"legislation & jurisprudence.fs.\":\"Legislation & Jurisprudence\",\"legislation & jurisprudence.fs\":\"Legislation & Jurisprudence\",\"isolation and purification[subheading]\":\"Isolation & Purification\",\"isolation and purification[sh]\":\"Isolation & Purification\",\"isolation and purification.fs.\":\"Isolation & Purification\",\"isolation and purification.fs\":\"Isolation & Purification\",\"isolation & purification[subheading]\":\"Isolation & Purification\",\"isolation & purification[sh]\":\"Isolation & Purification\",\"isolation & purification.fs.\":\"Isolation & Purification\",\"isolation & purification.fs\":\"Isolation & Purification\",\"is[subheading]\":\"Instrumentation\",\"is.fs.\":\"Instrumentation\",\"is.fs\":\"Instrumentation\",\"ir[subheading]\":\"Innervation\",\"ir.fs.\":\"Innervation\",\"ir.fs\":\"Innervation\",\"ip[subheading]\":\"Isolation & Purification\",\"ip.fs.\":\"Isolation & Purification\",\"ip.fs\":\"Isolation & Purification\",\"instrumentation[subheading]\":\"Instrumentation\",\"instrumentation[sh]\":\"Instrumentation\",\"instrumentation.fs.\":\"Instrumentation\",\"instrumentation.fs\":\"Instrumentation\",\"innervation[subheading]\":\"Innervation\",\"innervation[sh]\":\"Innervation\",\"innervation.fs.\":\"Innervation\",\"innervation.fs\":\"Innervation\",\"injuries[subheading]\":\"Injuries\",\"injuries[sh]\":\"Injuries\",\"injuries.fs.\":\"Injuries\",\"injuries.fs\":\"Injuries\",\"in[subheading]\":\"Injuries\",\"in.fs.\":\"Injuries\",\"in.fs\":\"Injuries\",\"immunology[subheading]\":\"Immunology\",\"immunology[sh]\":\"Immunology\",\"immunology.fs.\":\"Immunology\",\"immunology.fs\":\"Immunology\",\"im[subheading]\":\"Immunology\",\"im.fs.\":\"Immunology\",\"im.fs\":\"Immunology\",\"history[subheading]\":\"History\",\"history[sh]\":\"History\",\"history.fs.\":\"History\",\"history.fs\":\"History\",\"hi[subheading]\":\"History\",\"hi.fs.\":\"History\",\"hi.fs\":\"History\",\"growth and development[subheading]\":\"Growth & Development\",\"growth and development[sh]\":\"Growth & Development\",\"growth and development.fs.\":\"Growth & Development\",\"growth and development.fs\":\"Growth & Development\",\"growth & development[subheading]\":\"Growth & Development\",\"growth & development[sh]\":\"Growth & Development\",\"growth & development.fs.\":\"Growth & Development\",\"growth & development.fs\":\"Growth & Development\",\"genetics[subheading]\":\"Genetics\",\"genetics[sh]\":\"Genetics\",\"genetics.fs.\":\"Genetics\",\"genetics.fs\":\"Genetics\",\"ge[subheading]\":\"Genetics\",\"ge.fs.\":\"Genetics\",\"ge.fs\":\"Genetics\",\"gd[subheading]\":\"Growth & Development\",\"gd.fs.\":\"Growth & Development\",\"gd.fs\":\"Growth & Development\",\"etiology[subheading]\":\"Etiology\",\"etiology[sh]\":\"Etiology\",\"etiology.fs.\":\"Etiology\",\"etiology.fs\":\"Etiology\",\"ethnology[subheading]\":\"Ethnology\",\"ethnology[sh]\":\"Ethnology\",\"ethnology.fs.\":\"Ethnology\",\"ethnology.fs\":\"Ethnology\",\"ethics[subheading]\":\"Ethics\",\"ethics[sh]\":\"Ethics\",\"ethics.fs.\":\"Ethics\",\"ethics.fs\":\"Ethics\",\"et[subheading]\":\"Etiology\",\"et.fs.\":\"Etiology\",\"et.fs\":\"Etiology\",\"es[subheading]\":\"Ethics\",\"es.fs.\":\"Ethics\",\"es.fs\":\"Ethics\",\"epidemiology[subheading]\":\"Epidemiology\",\"epidemiology[sh]\":\"Epidemiology\",\"epidemiology.fs.\":\"Epidemiology\",\"epidemiology.fs\":\"Epidemiology\",\"ep[subheading]\":\"Epidemiology\",\"ep.fs.\":\"Epidemiology\",\"ep.fs\":\"Epidemiology\",\"enzymology[subheading]\":\"Enzymology\",\"enzymology[sh]\":\"Enzymology\",\"enzymology.fs.\":\"Enzymology\",\"enzymology.fs\":\"Enzymology\",\"en[subheading]\":\"Enzymology\",\"en.fs.\":\"Enzymology\",\"en.fs\":\"Enzymology\",\"embryology[subheading]\":\"Embryology\",\"embryology[sh]\":\"Embryology\",\"embryology.fs.\":\"Embryology\",\"embryology.fs\":\"Embryology\",\"em[subheading]\":\"Embryology\",\"em.fs.\":\"Embryology\",\"em.fs\":\"Embryology\",\"eh[subheading]\":\"Ethnology\",\"eh.fs.\":\"Ethnology\",\"eh.fs\":\"Ethnology\",\"education[subheading]\":\"Education\",\"education[sh]\":\"Education\",\"education.fs.\":\"Education\",\"education.fs\":\"Education\",\"ed[subheading]\":\"Education\",\"ed.fs.\":\"Education\",\"ed.fs\":\"Education\",\"economics[subheading]\":\"Economics\",\"economics[sh]\":\"Economics\",\"economics.fs.\":\"Economics\",\"economics.fs\":\"Economics\",\"ec[subheading]\":\"Economics\",\"ec.fs.\":\"Economics\",\"ec.fs\":\"Economics\",\"dt[subheading]\":\"Drug Therapy\",\"dt.fs.\":\"Drug Therapy\",\"dt.fs\":\"Drug Therapy\",\"drug therapy[subheading]\":\"Drug Therapy\",\"drug therapy[sh]\":\"Drug Therapy\",\"drug therapy.fs.\":\"Drug Therapy\",\"drug therapy.fs\":\"Drug Therapy\",\"drug effects[subheading]\":\"Drug Effects\",\"drug effects[sh]\":\"Drug Effects\",\"drug effects.fs.\":\"Drug Effects\",\"drug effects.fs\":\"Drug Effects\",\"diet therapy[subheading]\":\"Diet Therapy\",\"diet therapy[sh]\":\"Diet Therapy\",\"diet therapy.fs.\":\"Diet Therapy\",\"diet therapy.fs\":\"Diet Therapy\",\"diagnostic imaging[subheading]\":\"Diagnostic Imaging\",\"diagnostic imaging[sh]\":\"Diagnostic Imaging\",\"diagnostic imaging.fs.\":\"Diagnostic Imaging\",\"diagnostic imaging.fs\":\"Diagnostic Imaging\",\"diagnosis[subheading]\":\"Diagnosis\",\"diagnosis[sh]\":\"Diagnosis\",\"diagnosis.fs.\":\"Diagnosis\",\"diagnosis.fs\":\"Diagnosis\",\"di[subheading]\":\"Diagnosis\",\"di.fs.\":\"Diagnosis\",\"di.fs\":\"Diagnosis\",\"dh[subheading]\":\"Diet Therapy\",\"dh.fs.\":\"Diet Therapy\",\"dh.fs\":\"Diet Therapy\",\"dg[subheading]\":\"Diagnostic Imaging\",\"dg.fs.\":\"Diagnostic Imaging\",\"dg.fs\":\"Diagnostic Imaging\",\"df[subheading]\":\"Deficiency\",\"df.fs.\":\"Deficiency\",\"df.fs\":\"Deficiency\",\"deficiency[subheading]\":\"Deficiency\",\"deficiency[sh]\":\"Deficiency\",\"deficiency.fs.\":\"Deficiency\",\"deficiency.fs\":\"Deficiency\",\"de[subheading]\":\"Drug Effects\",\"de.fs.\":\"Drug Effects\",\"de.fs\":\"Drug Effects\",\"cytology[subheading]\":\"Cytology\",\"cytology[sh]\":\"Cytology\",\"cytology.fs.\":\"Cytology\",\"cytology.fs\":\"Cytology\",\"cy[subheading]\":\"Cytology\",\"cy.fs.\":\"Cytology\",\"cy.fs\":\"Cytology\",\"cs[subheading]\":\"Chemical Synthesis\",\"cs.fs.\":\"Chemical Synthesis\",\"cs.fs\":\"Chemical Synthesis\",\"congenital[subheading]\":\"Congenital\",\"congenital[sh]\":\"Congenital\",\"congenital.fs.\":\"Congenital\",\"congenital.fs\":\"Congenital\",\"complications[subheading]\":\"Complications\",\"complications[sh]\":\"Complications\",\"complications.fs.\":\"Complications\",\"complications.fs\":\"Complications\",\"co[subheading]\":\"Complications\",\"co.fs.\":\"Complications\",\"co.fs\":\"Complications\",\"cn[subheading]\":\"Congenital\",\"cn.fs.\":\"Congenital\",\"cn.fs\":\"Congenital\",\"classification[subheading]\":\"Classification\",\"classification[sh]\":\"Classification\",\"classification.fs.\":\"Classification\",\"classification.fs\":\"Classification\",\"cl[subheading]\":\"Classification\",\"cl.fs.\":\"Classification\",\"cl.fs\":\"Classification\",\"ci[subheading]\":\"Chemically Induced\",\"ci.fs.\":\"Chemically Induced\",\"ci.fs\":\"Chemically Induced\",\"chemistry[subheading]\":\"Chemistry\",\"chemistry[sh]\":\"Chemistry\",\"chemistry.fs.\":\"Chemistry\",\"chemistry.fs\":\"Chemistry\",\"chemically induced[subheading]\":\"Chemically Induced\",\"chemically induced[sh]\":\"Chemically Induced\",\"chemically induced.fs.\":\"Chemically Induced\",\"chemically induced.fs\":\"Chemically Induced\",\"chemical synthesis[subheading]\":\"Chemical Synthesis\",\"chemical synthesis[sh]\":\"Chemical Synthesis\",\"chemical synthesis.fs.\":\"Chemical Synthesis\",\"chemical synthesis.fs\":\"Chemical Synthesis\",\"ch[subheading]\":\"Chemistry\",\"ch.fs.\":\"Chemistry\",\"ch.fs\":\"Chemistry\",\"cf[subheading]\":\"Cerebrospinal Fluid\",\"cf.fs.\":\"Cerebrospinal Fluid\",\"cf.fs\":\"Cerebrospinal Fluid\",\"cerebrospinal fluid[subheading]\":\"Cerebrospinal Fluid\",\"cerebrospinal fluid[sh]\":\"Cerebrospinal Fluid\",\"cerebrospinal fluid.fs.\":\"Cerebrospinal Fluid\",\"cerebrospinal fluid.fs\":\"Cerebrospinal Fluid\",\"bs[subheading]\":\"Blood Supply\",\"bs.fs.\":\"Blood Supply\",\"bs.fs\":\"Blood Supply\",\"blood[subheading]\":\"Blood\",\"blood[sh]\":\"Blood\",\"blood.fs.\":\"Blood\",\"blood.fs\":\"Blood\",\"blood supply[subheading]\":\"Blood Supply\",\"blood supply[sh]\":\"Blood Supply\",\"blood supply.fs.\":\"Blood Supply\",\"blood supply.fs\":\"Blood Supply\",\"bl[subheading]\":\"Blood\",\"bl.fs.\":\"Blood\",\"bl.fs\":\"Blood\",\"biosynthesis[subheading]\":\"Biosynthesis\",\"biosynthesis[sh]\":\"Biosynthesis\",\"biosynthesis.fs.\":\"Biosynthesis\",\"biosynthesis.fs\":\"Biosynthesis\",\"bi[subheading]\":\"Biosynthesis\",\"bi.fs.\":\"Biosynthesis\",\"bi.fs\":\"Biosynthesis\",\"antagonists and inhibitors[subheading]\":\"Antagonists & Inhibitors\",\"antagonists and inhibitors[sh]\":\"Antagonists & Inhibitors\",\"antagonists and inhibitors.fs.\":\"Antagonists & Inhibitors\",\"antagonists and inhibitors.fs\":\"Antagonists & Inhibitors\",\"antagonists & inhibitors[subheading]\":\"Antagonists & Inhibitors\",\"antagonists & inhibitors[sh]\":\"Antagonists & Inhibitors\",\"antagonists & inhibitors.fs.\":\"Antagonists & Inhibitors\",\"antagonists & inhibitors.fs\":\"Antagonists & Inhibitors\",\"anatomy and histology[subheading]\":\"Anatomy & Histology\",\"anatomy and histology[sh]\":\"Anatomy & Histology\",\"anatomy and histology.fs.\":\"Anatomy & Histology\",\"anatomy and histology.fs\":\"Anatomy & Histology\",\"anatomy & histology[subheading]\":\"Anatomy & Histology\",\"anatomy & histology[sh]\":\"Anatomy & Histology\",\"anatomy & histology.fs.\":\"Anatomy & Histology\",\"anatomy & histology.fs\":\"Anatomy & Histology\",\"analysis[subheading]\":\"Analysis\",\"analysis[sh]\":\"Analysis\",\"analysis.fs.\":\"Analysis\",\"analysis.fs\":\"Analysis\",\"analogs and derivatives[subheading]\":\"Analogs & Derivatives\",\"analogs and derivatives[sh]\":\"Analogs & Derivatives\",\"analogs and derivatives.fs.\":\"Analogs & Derivatives\",\"analogs and derivatives.fs\":\"Analogs & Derivatives\",\"analogs & derivatives[subheading]\":\"Analogs & Derivatives\",\"analogs & derivatives[sh]\":\"Analogs & Derivatives\",\"analogs & derivatives.fs.\":\"Analogs & Derivatives\",\"analogs & derivatives.fs\":\"Analogs & Derivatives\",\"an[subheading]\":\"Analysis\",\"an.fs.\":\"Analysis\",\"an.fs\":\"Analysis\",\"ai[subheading]\":\"Antagonists & Inhibitors\",\"ai.fs.\":\"Antagonists & Inhibitors\",\"ai.fs\":\"Antagonists & Inhibitors\",\"ah[subheading]\":\"Anatomy & Histology\",\"ah.fs.\":\"Anatomy & Histology\",\"ah.fs\":\"Anatomy & Histology\",\"agonists[subheading]\":\"Agonists\",\"agonists[sh]\":\"Agonists\",\"agonists.fs.\":\"Agonists\",\"agonists.fs\":\"Agonists\",\"ag[subheading]\":\"Agonists\",\"ag.fs.\":\"Agonists\",\"ag.fs\":\"Agonists\",\"ae[subheading]\":\"Adverse Effects\",\"ae.fs.\":\"Adverse Effects\",\"ae.fs\":\"Adverse Effects\",\"adverse effects[subheading]\":\"Adverse Effects\",\"adverse effects[sh]\":\"Adverse Effects\",\"adverse effects.fs.\":\"Adverse Effects\",\"adverse effects.fs\":\"Adverse Effects\",\"administration and dosage[subheading]\":\"Administration & Dosage\",\"administration and dosage[sh]\":\"Administration & Dosage\",\"administration and dosage.fs.\":\"Administration & Dosage\",\"administration and dosage.fs\":\"Administration & Dosage\",\"administration & dosage[subheading]\":\"Administration & Dosage\",\"administration & dosage[sh]\":\"Administration & Dosage\",\"administration & dosage.fs.\":\"Administration & Dosage\",\"administration & dosage.fs\":\"Administration & Dosage\",\"ad[subheading]\":\"Administration & Dosage\",\"ad.fs.\":\"Administration & Dosage\",\"ad.fs\":\"Administration & Dosage\",\"abnormalities[subheading]\":\"Abnormalities\",\"abnormalities[sh]\":\"Abnormalities\",\"abnormalities.fs.\":\"Abnormalities\",\"abnormalities.fs\":\"Abnormalities\",\"ab[subheading]\":\"Abnormalities\",\"ab.fs.\":\"Abnormalities\",\"ab.fs\":\"Abnormalities\",\"aa[subheading]\":\"Analogs & Derivatives\",\"aa.fs.\":\"Analogs & Derivatives\",\"aa.fs\":\"Analogs & Derivatives\"}");
9
-
10
8
  exports["default"] = _default;
package/lib/index.js CHANGED
@@ -3,12 +3,7 @@
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
+ exports["default"] = void 0;
12
7
  Object.defineProperty(exports, "fieldCodesObject", {
13
8
  enumerable: true,
14
9
  get: function get() {
@@ -21,46 +16,41 @@ Object.defineProperty(exports, "global", {
21
16
  return _global["default"];
22
17
  }
23
18
  });
24
- exports["default"] = void 0;
25
-
19
+ Object.defineProperty(exports, "parse", {
20
+ enumerable: true,
21
+ get: function get() {
22
+ return _parse.parse;
23
+ }
24
+ });
26
25
  var _parse = require("./modules/parse.js");
27
-
28
26
  var _engines = _interopRequireDefault(require("./modules/engines.js"));
29
-
30
27
  var _lodash = _interopRequireDefault(require("lodash"));
31
-
32
28
  var _generic = _interopRequireDefault(require("./modules/engines/generic.js"));
33
-
34
29
  var _fieldCodesObject = _interopRequireDefault(require("./data/fieldCodesObject.js"));
35
-
36
30
  var _global = _interopRequireDefault(require("./modules/global.js"));
37
-
38
31
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
39
-
40
32
  var polyglot;
41
-
42
33
  var _default = polyglot = {
43
- /**
44
- * Translate the given query using the given engine ID
45
- * This is really just a wrapper for the parse() + engine[ENGINE].compile() pipeline
46
- * Output will be run via preProcess() + postProcess()
47
- * @param {string} query The query to translate
48
- * @param {string} engine The ID of the engine to use
49
- * @param {Object} options Optional options structure to pass to the engine
50
- * @return {string} The translated search query
34
+ /**
35
+ * Translate the given query using the given engine ID
36
+ * This is really just a wrapper for the parse() + engine[ENGINE].compile() pipeline
37
+ * Output will be run via preProcess() + postProcess()
38
+ * @param {string} query The query to translate
39
+ * @param {string} engine The ID of the engine to use
40
+ * @param {Object} options Optional options structure to pass to the engine
41
+ * @return {string} The translated search query
51
42
  */
52
43
  translate: function translate(query, engine, options) {
53
44
  var tree = (0, _parse.parse)(query, options);
54
45
  return polyglot.postProcess(_generic["default"].compile(_lodash["default"].cloneDeep(tree), options, engine), options);
55
46
  },
56
-
57
- /**
58
- * Translate the given query using all the supported engines
59
- * Calling this function instead of individual 'translate()' calls is much more efficient as the tree needs to be compiled only once
60
- * Output will be run via preProcess() + postProcess()
61
- * @param {string} query The query to translate
62
- * @param {Object} options Optional options structure to pass to each engine
63
- * @return {Object} The translated search query in each case where the engine ID is the key of the object and the value is the translated string
47
+ /**
48
+ * Translate the given query using all the supported engines
49
+ * Calling this function instead of individual 'translate()' calls is much more efficient as the tree needs to be compiled only once
50
+ * Output will be run via preProcess() + postProcess()
51
+ * @param {string} query The query to translate
52
+ * @param {Object} options Optional options structure to pass to each engine
53
+ * @return {Object} The translated search query in each case where the engine ID is the key of the object and the value is the translated string
64
54
  */
65
55
  translateAll: function translateAll(query, options) {
66
56
  var output = {};
@@ -72,33 +62,32 @@ var _default = polyglot = {
72
62
  output['lexicalTreeJSON'] = _engines["default"].lexicalTreeJSON.compile(tree, options), options;
73
63
  return output;
74
64
  },
75
-
76
- /**
77
- * Pre-proess the compile tree before it gets handed to each engines compile function
78
- * @param {Object} tree The tree to compile
79
- * @param {Object} [options] Additional options - these are provided downstream from the parent 'parse()' function
80
- * @return {Object} The mutated tree
81
- * @see parse()
65
+ /**
66
+ * Pre-proess the compile tree before it gets handed to each engines compile function
67
+ * @param {Object} tree The tree to compile
68
+ * @param {Object} [options] Additional options - these are provided downstream from the parent 'parse()' function
69
+ * @return {Object} The mutated tree
70
+ * @see parse()
82
71
  */
83
72
  preProcess: function preProcess(tree, options) {
84
- var settings = _lodash["default"].defaults(options, {}); // NOTE: THIS FUNCTION IS CURRENTLY ONLY A STUB
73
+ var settings = _lodash["default"].defaults(options, {});
85
74
 
75
+ // NOTE: THIS FUNCTION IS CURRENTLY ONLY A STUB
86
76
 
87
77
  return tree;
88
78
  },
89
-
90
- /**
91
- * Post process the data from an engine
92
- * This function applies the following behaviours:
93
- * - If HTML is true all `\n` characters are replaced with `<br/>`
94
- * - If HTML is false all <span> item wrappers are removed
95
- * @param {string} text The output from the engine - called from translate() / translateAll()
96
- * @param {Object} options Options provided during post-processing - these are provided downstream from the parent 'parse()' function
97
- * @param {boolean} [options.forceString] Force the output to be a string even if the module returns something unusual (e.g. mongodb driver returns an object)
98
- * @param {boolean} [options.html=true] Provide HTML output
99
- * @param {boolean} [options.trim=true] Trim all output lines
100
- * @returns {string} The post processed text
101
- * @see parse()
79
+ /**
80
+ * Post process the data from an engine
81
+ * This function applies the following behaviours:
82
+ * - If HTML is true all `\n` characters are replaced with `<br/>`
83
+ * - If HTML is false all <span> item wrappers are removed
84
+ * @param {string} text The output from the engine - called from translate() / translateAll()
85
+ * @param {Object} options Options provided during post-processing - these are provided downstream from the parent 'parse()' function
86
+ * @param {boolean} [options.forceString] Force the output to be a string even if the module returns something unusual (e.g. mongodb driver returns an object)
87
+ * @param {boolean} [options.html=true] Provide HTML output
88
+ * @param {boolean} [options.trim=true] Trim all output lines
89
+ * @returns {string} The post processed text
90
+ * @see parse()
102
91
  */
103
92
  postProcess: function postProcess(text, options) {
104
93
  var settings = _lodash["default"].defaults(options, {
@@ -108,16 +97,13 @@ var _default = polyglot = {
108
97
  trim: false,
109
98
  transposeLines: true
110
99
  });
111
-
112
100
  if (settings.forceString && !_lodash["default"].isString(text)) text = JSON.stringify(text, null, '\t');
113
-
114
101
  if (settings.highlighting) {
115
102
  // Highlight logical operators purple
116
103
  text = text.replace(/(\sOR\s|\sAND\s|\sNOT\s)/g, function (a, b) {
117
104
  return "<font color=\"purple\">".concat(b, "</font>");
118
105
  });
119
106
  }
120
-
121
107
  if (settings.html) {
122
108
  text = text.replace(/\n/g, '<br/>').replace(/\t/g, '<span class="tab"></span>');
123
109
  } else if (_lodash["default"].isString(text)) {
@@ -126,13 +112,10 @@ var _default = polyglot = {
126
112
  text = text.replace(/<(.+)(\s.*)>(.*)<\/\1>/g, '$3');
127
113
  }
128
114
  }
129
-
130
115
  if (settings.trim) {
131
116
  text = text.replace(/^\s+/gm, '').replace(/\s+$/gm, '');
132
117
  }
133
-
134
118
  return text;
135
119
  }
136
120
  };
137
-
138
121
  exports["default"] = _default;
@@ -4,61 +4,48 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
-
8
7
  var _tools = _interopRequireDefault(require("../tools.js"));
9
-
10
8
  var _global = _interopRequireDefault(require("../global.js"));
11
-
12
9
  var _lodash = _interopRequireDefault(require("lodash"));
13
-
14
10
  var _fieldCodesObject = _interopRequireDefault(require("../../data/fieldCodesObject.js"));
15
-
16
11
  var _meshObject = _interopRequireDefault(require("../../data/meshObject.js"));
17
-
18
12
  var _meshTranslationsObject = _interopRequireDefault(require("../../data/meshTranslationsObject.js"));
19
-
20
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
-
22
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
23
-
24
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
25
-
26
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
27
-
14
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
15
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
18
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
19
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } // Translation Objects
28
20
  // Function to fix cinahl exploded mesh (move + sign back before ")
29
21
  function fixCinahl(content) {
30
22
  content = content.replace(/"\+/, '+"');
31
23
  content = content.replace(/"<\/font><font color="blue">\+/, '+"</font><font color="blue">');
32
24
  return content;
33
25
  }
34
-
35
26
  var _default = {
36
27
  id: 'generic',
37
28
  title: 'generic',
38
29
  aliases: ['generic', 'g'],
39
-
40
- /**
41
- * Compile a tree structure to PubMed output
42
- * @param {array} tree The parsed tree to process
43
- * @param {Object} [options] Optional options to use when compiling
44
- * @param {boolean} [options.replaceWildcards=true] Whether to replace wildcard characters (usually '?' or '$') within phrase nodes with this engines equivelent
45
- * @return {string} The compiled output
30
+ /**
31
+ * Compile a tree structure to PubMed output
32
+ * @param {array} tree The parsed tree to process
33
+ * @param {Object} [options] Optional options to use when compiling
34
+ * @param {boolean} [options.replaceWildcards=true] Whether to replace wildcard characters (usually '?' or '$') within phrase nodes with this engines equivelent
35
+ * @return {string} The compiled output
46
36
  */
47
37
  compile: function compile(tree, options, engine) {
48
38
  var settings = _lodash["default"].defaults(options, {
49
39
  replaceWildcards: true,
50
40
  testing: false
51
41
  });
52
-
53
42
  var compileWalker = function compileWalker(tree) {
54
43
  return tree.map(function (branch, branchIndex) {
55
44
  var buffer = '';
56
-
57
45
  switch (branch.type) {
58
46
  case 'line':
59
47
  buffer += compileWalker(branch.nodes);
60
48
  break;
61
-
62
49
  case 'group':
63
50
  if (branch.field) {
64
51
  if (engine === "Ovid MEDLINE" || engine === "Scopus (advanced search)" || engine === "Embase (Elsevier)" || engine === "WoS Advanced") {
@@ -76,20 +63,17 @@ var _default = {
76
63
  // Empty string
77
64
  return el;
78
65
  }
79
- }).join(""); // Fix to move '+' back one space when quoting
80
-
66
+ }).join("");
67
+ // Fix to move '+' back one space when quoting
81
68
  if (engine === "CINAHL (Ebsco)") {
82
69
  content = fixCinahl(content);
83
70
  }
84
-
85
71
  buffer += comment && settings.highlighting ? _tools["default"].createTooltip(content, comment) : content;
86
72
  } else {
87
73
  var translateObject = _fieldCodesObject["default"][engine] ? _fieldCodesObject["default"][engine][branch.field] : null;
88
-
89
74
  if (translateObject) {
90
75
  var _termArray = translateObject.terms;
91
76
  var _comment = translateObject.comment;
92
-
93
77
  var _content = _termArray.map(function (el) {
94
78
  if (el && el.toLowerCase() !== "test") {
95
79
  return settings.highlighting ? "<font color=\"LightSeaGreen\">".concat(el, "</font>") : el;
@@ -100,7 +84,6 @@ var _default = {
100
84
  return el;
101
85
  }
102
86
  }).join("");
103
-
104
87
  buffer += _comment && settings.highlighting ? _tools["default"].createTooltip(_content, _comment) : _content;
105
88
  }
106
89
  }
@@ -113,7 +96,6 @@ var _default = {
113
96
  if (isMesh) {
114
97
  b.type = 'mesh';
115
98
  }
116
-
117
99
  b.field = branch.field;
118
100
  });
119
101
  branch.nodes = _tools["default"].visit(branch.nodes, ['group'], function (b) {
@@ -124,14 +106,11 @@ var _default = {
124
106
  } else {
125
107
  buffer += '(' + compileWalker(branch.nodes) + ')';
126
108
  }
127
-
128
109
  break;
129
-
130
110
  case 'ref':
131
111
  if (settings.transposeLines) {
132
112
  // Expand each line to show full query
133
113
  var node;
134
-
135
114
  for (node in branch.nodes) {
136
115
  if (node == 0) {
137
116
  // First line is printed as is wrapped in brackets
@@ -156,17 +135,13 @@ var _default = {
156
135
  buffer += _tools["default"].printNumber(engine, branch.ref);
157
136
  }
158
137
  }
159
-
160
138
  break;
161
-
162
139
  case 'phrase':
163
140
  if (branch.field) {
164
141
  var translateObject = _fieldCodesObject["default"][engine] ? _fieldCodesObject["default"][engine][branch.field] : null;
165
-
166
142
  if (translateObject) {
167
143
  var _termArray2 = translateObject.terms;
168
144
  var _comment2 = translateObject.comment;
169
-
170
145
  var _content2 = _termArray2.map(function (el) {
171
146
  if (el && el.toLowerCase() !== "test") {
172
147
  return settings.highlighting ? "<font color=\"LightSeaGreen\">".concat(el, "</font>") : el;
@@ -177,7 +152,6 @@ var _default = {
177
152
  return el;
178
153
  }
179
154
  }).join("");
180
-
181
155
  buffer += _comment2 && settings.highlighting ? _tools["default"].createTooltip(_content2, _comment2) : _content2;
182
156
  } else {
183
157
  buffer += _tools["default"].createTooltip('<font color="#ff6161">' + _tools["default"].quotePhrase(branch, engine, _objectSpread(_objectSpread({}, settings), {}, {
@@ -189,70 +163,56 @@ var _default = {
189
163
  if (_global["default"].variables.no_field_tag.indexOf(branch.offset + branch.content.length) === -1) {
190
164
  _global["default"].variables.no_field_tag.push(branch.offset + branch.content.length);
191
165
  }
192
-
193
166
  if (settings.highlighting) {
194
167
  buffer += _tools["default"].createPopover(_tools["default"].quotePhrase(branch, engine, settings), branch.offset + branch.content.length);
195
168
  } else {
196
169
  buffer += _tools["default"].quotePhrase(branch, engine, settings);
197
170
  }
198
171
  }
199
-
200
172
  break;
201
-
202
173
  case 'mesh':
203
174
  var translateObject = _meshObject["default"][engine] ? _meshObject["default"][engine][branch.field] : null;
204
-
205
175
  if (translateObject) {
206
176
  var _termArray3 = translateObject.terms;
207
177
  var _comment3 = translateObject.comment;
208
178
  var containsHeading = false;
209
-
210
179
  var content = _termArray3.map(function (el) {
211
180
  if (el && el.toLowerCase() !== "test") {
212
181
  // If heading already exists dont add second / at end (for ovid)
213
182
  if (containsHeading && el == "/") {
214
183
  return "";
215
184
  }
216
-
217
185
  return settings.highlighting ? "<font color=\"blue\">".concat(el, "</font>") : el;
218
186
  } else if (el && el.toLowerCase() === "test") {
219
187
  // Perform logic for the phrase in the mesh
220
- var phrase = _tools["default"].quotePhrase(branch, engine, settings); // If a subheading exists (e.g. psoriasis/dt)
221
-
222
-
188
+ var phrase = _tools["default"].quotePhrase(branch, engine, settings);
189
+ // If a subheading exists (e.g. psoriasis/dt)
223
190
  if (branch.heading) {
224
191
  containsHeading = true;
225
192
  phrase += settings.highlighting ? _tools["default"].createTooltip("/" + branch.heading, "Subheading may need to be manually translated", "red-underline") : "/" + branch.heading;
226
193
  }
227
-
228
194
  return phrase;
229
195
  } else {
230
196
  // Empty string
231
197
  return el;
232
198
  }
233
- }).join(""); // Fix to move '+' back one space when quoting
234
-
235
-
199
+ }).join("");
200
+ // Fix to move '+' back one space when quoting
236
201
  if (engine == "CINAHL (Ebsco)") {
237
202
  content = fixCinahl(content);
238
203
  }
239
-
240
204
  buffer += _comment3 && settings.highlighting ? _tools["default"].createTooltip(content, _comment3) : content;
241
205
  } else {
242
206
  buffer += _tools["default"].createTooltip('<font color="#ff6161">' + _tools["default"].quotePhrase(branch, engine, _objectSpread(_objectSpread({}, settings), {}, {
243
207
  highlighting: false
244
208
  })) + '</font>', "No mesh tag found for engine");
245
209
  }
246
-
247
210
  break;
248
-
249
211
  case 'meshTranslation':
250
212
  var translateObject = _meshTranslationsObject["default"][engine] ? _meshTranslationsObject["default"][engine][branch.field] : null;
251
-
252
213
  if (translateObject) {
253
214
  var _termArray4 = translateObject.terms;
254
215
  var _comment4 = translateObject.comment;
255
-
256
216
  var _content3 = _termArray4.map(function (el) {
257
217
  if (el && el.toLowerCase() !== "test") {
258
218
  return settings.highlighting ? "<font color=\"purple\">".concat(el, "</font>") : el;
@@ -261,28 +221,25 @@ var _default = {
261
221
  return el;
262
222
  }
263
223
  }).join("");
264
-
265
224
  buffer += _comment4 && settings.highlighting ? _tools["default"].createTooltip(_content3, _comment4) : _content3;
266
225
  } else {
267
226
  buffer += _tools["default"].createTooltip('<font color="#ff6161">' + _tools["default"].quotePhrase(branch, engine, _objectSpread(_objectSpread({}, settings), {}, {
268
227
  highlighting: false
269
228
  })) + '</font>', "No mesh tag found for engine");
270
229
  }
271
-
272
230
  break;
273
-
274
231
  case 'joinNear':
275
232
  switch (engine) {
276
233
  case 'PubMed full':
277
234
  case 'PubMed abbreviation':
235
+ //HTA
236
+ case 'International HTA Database':
278
237
  buffer += 'AND';
279
238
  break;
280
-
281
239
  case 'Ovid MEDLINE':
282
240
  case 'PsycInfo (Ovid)':
283
241
  buffer += "ADJ".concat(branch.proximity);
284
242
  break;
285
-
286
243
  case 'Cochrane Library':
287
244
  case 'Embase (Elsevier)':
288
245
  case 'Web of Science':
@@ -290,103 +247,86 @@ var _default = {
290
247
  case 'ProQuest Health and Medical':
291
248
  buffer += "NEAR/".concat(branch.proximity);
292
249
  break;
293
-
294
250
  case 'CINAHL (Ebsco)':
295
251
  buffer += "N".concat(branch.proximity);
296
252
  break;
297
-
298
253
  case 'Scopus (basic search)':
299
254
  case 'Scopus (advanced search)':
300
255
  buffer += "W/".concat(branch.proximity);
301
256
  break;
302
-
303
257
  case 'SPORTDiscus':
304
258
  buffer += "N".concat(branch.proximity);
305
259
  break;
306
260
  }
307
-
308
261
  break;
309
-
310
262
  case 'joinNext':
311
263
  switch (engine) {
312
264
  case 'PubMed full':
313
265
  case 'PubMed abbreviation':
266
+ //HTA
267
+ case 'International HTA Database':
314
268
  buffer += 'AND';
315
269
  break;
316
-
317
270
  case 'Ovid MEDLINE':
318
271
  case 'PsycInfo (Ovid)':
319
272
  buffer += 'ADJ';
320
273
  break;
321
-
322
274
  case 'Cochrane Library':
323
275
  buffer += 'NEXT';
324
276
  break;
325
-
326
277
  case 'Embase (Elsevier)':
327
278
  buffer += 'NEXT/1';
328
279
  break;
329
-
330
280
  case 'Web of Science':
331
281
  case 'WoS Advanced':
332
282
  buffer += 'NEAR/0';
333
283
  break;
334
-
335
284
  case 'CINAHL (Ebsco)':
336
285
  buffer += 'W1';
337
286
  break;
338
-
339
287
  case 'Scopus (basic search)':
340
288
  case 'Scopus (advanced search)':
341
289
  buffer += 'W/1';
342
290
  break;
343
-
344
291
  case 'SPORTDiscus':
345
292
  buffer += 'W1';
346
293
  break;
347
-
348
294
  case 'ProQuest Health and Medical':
349
295
  buffer += 'PRE/0';
350
296
  }
351
-
352
297
  break;
353
-
354
298
  case 'joinAnd':
355
299
  buffer += 'AND';
356
300
  break;
357
-
358
301
  case 'joinOr':
359
302
  buffer += 'OR';
360
303
  break;
361
-
362
304
  case 'joinNot':
363
305
  buffer += 'NOT';
364
306
  break;
365
-
366
307
  case 'raw':
367
308
  buffer += branch.content;
368
309
  break;
369
-
370
310
  case 'template':
371
311
  buffer += _tools["default"].resolveTemplate(branch.content, engine);
372
312
  break;
373
-
374
313
  case 'comment':
375
314
  // Do nothing
376
315
  break;
377
-
378
316
  default:
379
317
  throw new Error('Unsupported object tree type: ' + branch.type);
380
318
  }
381
-
382
- return buffer // Add spacing provided... its not a raw buffer or the last entity within the structure
383
- + (branch.type == 'raw' || // Its not a raw node
384
- branch.type == 'line' || // Its not a line node
385
- branchIndex == tree.length - 1 || // Its not the last item in the sequence
319
+ return buffer
320
+ // Add spacing provided... its not a raw buffer or the last entity within the structure
321
+ + (branch.type == 'raw' ||
322
+ // Its not a raw node
323
+ branch.type == 'line' ||
324
+ // Its not a line node
325
+ branchIndex == tree.length - 1 ||
326
+ // Its not the last item in the sequence
386
327
  branchIndex < tree.length - 1 && tree[branchIndex + 1] && tree[branchIndex + 1].type && tree[branchIndex + 1].type == 'raw' ? '' : ' ');
387
328
  }).join('');
388
329
  };
389
-
390
330
  return compileWalker(tree);
391
331
  },
392
332
  open: function open(query) {