curationexperts / mahonia

Oregon Health & Science Repository
Apache License 2.0
6 stars 0 forks source link

Force downcase in MESH authority queries #283

Closed no-reply closed 6 years ago

no-reply commented 6 years ago

MESH ids are in lowercase. Since query is case sensitive, we need to downcase query terms in order to prevent false negatives based on typist idiosyncracies.

Since it's not possible to redirect authorities in Qa due to the TermsController behavior (https://github.com/samvera/questioning_authority/issues/137), we simply monkeypatch the existing Qa::Authorities::Mesh class.

Closes #244.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.3%) to 97.954% when pulling 8a1915beabf8ba0202110715bffa682d33e1d4f6 on mesh-downcase into 8003c4a38d442ba72d2d408a3b6f5670c842402b on master.