@abi-software/map-side-bar 1.3.3 → 1.3.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/dist/map-side-bar.common.js +87 -89
- package/dist/map-side-bar.common.js.map +1 -1
- package/dist/map-side-bar.css +1 -1
- package/dist/map-side-bar.umd.js +87 -89
- 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 -4
- package/src/algolia/utils.js +0 -1
- package/src/components/ContextCard.vue +0 -1
- package/src/components/SideBar.vue +2 -2
- package/src/components/SidebarContent.vue +1 -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
|
+
return ub.replace('_',':')
|
|
113
114
|
}
|
|
114
115
|
|
|
115
116
|
/**
|
|
@@ -165,7 +166,6 @@ export class AlgoliaClient {
|
|
|
165
166
|
})
|
|
166
167
|
.then(response => {
|
|
167
168
|
let keywords = this._processKeywords(response.hits)
|
|
168
|
-
console.log(response.hits)
|
|
169
169
|
resolve(keywords)
|
|
170
170
|
})
|
|
171
171
|
})
|
package/src/algolia/utils.js
CHANGED
|
@@ -23,7 +23,6 @@ export const shownFilters = {
|
|
|
23
23
|
* and each of those results is then joined with an AND.
|
|
24
24
|
* i.e. (color:blue OR color:red) AND (shape:circle OR shape:red) */
|
|
25
25
|
export function getFilters(selectedFacetArray=undefined) {
|
|
26
|
-
console.log('calling getFilters!')
|
|
27
26
|
// return all datasets if no filter
|
|
28
27
|
if (selectedFacetArray === undefined) {
|
|
29
28
|
return 'NOT item.published.status:embargo'
|
|
@@ -139,8 +139,8 @@ export default {
|
|
|
139
139
|
EventBus.$on("PopoverActionClick", (payLoad) => {
|
|
140
140
|
this.$emit("actionClick", payLoad);
|
|
141
141
|
})
|
|
142
|
-
EventBus.$on('
|
|
143
|
-
this.$emit('
|
|
142
|
+
EventBus.$on('keywordsFound', (payLoad)=> {
|
|
143
|
+
this.$emit('search-changed', {
|
|
144
144
|
type: 'keyword-update',
|
|
145
145
|
value: payLoad
|
|
146
146
|
})
|
|
@@ -193,9 +193,7 @@ export default {
|
|
|
193
193
|
// Algolia search
|
|
194
194
|
this.loadingCards = true
|
|
195
195
|
this.algoliaClient.keywordsInSearch(getFilters(filters), query).then(keywords => {
|
|
196
|
-
|
|
197
|
-
console.log(keywords)
|
|
198
|
-
EventBus.$emit("kewordsFound", keywords)
|
|
196
|
+
EventBus.$emit("keywordsFound", keywords)
|
|
199
197
|
})
|
|
200
198
|
this.algoliaClient.search(getFilters(filters), query, this.numberPerPage, this.page).then(searchData => {
|
|
201
199
|
this.numberOfHits = searchData.total
|