@abi-software/map-side-bar 1.3.4 → 1.3.5
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/dist/map-side-bar.common.js +6 -4
- package/dist/map-side-bar.common.js.map +1 -1
- package/dist/map-side-bar.umd.js +6 -4
- package/dist/map-side-bar.umd.js.map +1 -1
- package/dist/map-side-bar.umd.min.js +1 -1
- package/dist/map-side-bar.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/algolia/algolia.js +4 -3
package/package.json
CHANGED
package/src/algolia/algolia.js
CHANGED
|
@@ -99,7 +99,7 @@ export class AlgoliaClient {
|
|
|
99
99
|
hit.item.keywords.forEach(keywordObj=>{
|
|
100
100
|
let keyword = keywordObj.keyword
|
|
101
101
|
if (keyword.includes('UBERON') || keyword.includes('ilxtr') || keyword.includes('ILX')) {
|
|
102
|
-
foundKeyWords.push(this.
|
|
102
|
+
foundKeyWords.push(this._processUberonURL(keyword))
|
|
103
103
|
uniqueKeywords = [...new Set(foundKeyWords)]
|
|
104
104
|
}
|
|
105
105
|
})
|
|
@@ -108,8 +108,9 @@ export class AlgoliaClient {
|
|
|
108
108
|
return uniqueKeywords
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
_processUberonURL(url){
|
|
112
|
+
let ub = url.split('/').pop()
|
|
113
|
+
ub.replace('_',':')
|
|
113
114
|
}
|
|
114
115
|
|
|
115
116
|
/**
|