Remove the former search form, filters and SlimSelect (F2)

- materio_sapi: MaterioSapiSearchForm, AjaxSearchForm and the
  /materio_sapi/search_form route removed, with the fieldset legend hook
  they needed. The search block is only the place where the Vue field
  mounts (placement and access unchanged).
- materiotheme: filters removed from the search store and Base.vue (the
  parameter of former URLs is ignored), formhtml removed from main.js and
  SearchBlock.vue, filter styles and SlimSelect import removed.
- slim-select uninstalled, with its postinstall patch step.
- Production build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
This commit is contained in:
2026-11-17 21:11:18 +01:00
co-authored by Claude Opus 5.5
parent b73057f453
commit fca4be3155
29 changed files with 26 additions and 406 deletions
@@ -9,9 +9,7 @@ import SearchForm from 'vuejs/components/Form/SearchForm'
import { mapState } from 'vuex'
export default {
// formhtml: HTML of the former Drupal form, still passed by main.js, no
// longer used: the form is a Vue component (F1).
props: ['blockid', 'formhtml'],
props: ['blockid'],
computed: {
...mapState({
canSearch: state => state.User.canSearch
@@ -60,7 +60,7 @@ export default {
// Hide the keyboard on mobile devices.
this.$refs.input.blur()
// Base.vue reacts to the route change and runs the search.
// Only the phrase: no more terms (F7) nor filters (F2).
// Only the phrase: no more terms (F7) nor filters.
this.$router.push({ name: 'base', query: phrase ? { keys: phrase } : {} })
.catch(() => {})
}
@@ -92,11 +92,7 @@ export default {
this.$store.commit('Search/reSetTerms')
}
if (params.has('filters')) {
this.$store.commit('Search/setFilters', params.get('filters').split(','))
} else {
this.$store.commit('Search/reSetFilters')
}
// The filters parameter of former URLs is ignored (F2).
this.newSearch()
},
@@ -113,11 +109,6 @@ export default {
}else{
this.$store.commit('Search/reSetTerms')
}
if (to.query.hasOwnProperty('filters')) {
this.$store.commit('Search/setFilters', to.query.filters)
}else{
this.$store.commit('Search/reSetFilters')
}
if (to.query.hasOwnProperty('keys')) {
const r = /,\s?$/
let keys = to.query.keys.replace(r,'').split(', ')
@@ -17,7 +17,6 @@ export default {
state: {
keys: [],
terms: [],
filters: [],
uuids: [],
items: [],
offset: 0,
@@ -92,13 +91,6 @@ export default {
reSetTerms (state) {
state.terms = []
},
setFilters (state, filters) {
console.log('store search setFilters', filters)
state.filters = typeof filters === 'string' ? filters.split(',') : filters
},
reSetFilters (state) {
state.filters = []
},
setInfos (state, infos) {
state.infos = infos
},
@@ -169,10 +161,6 @@ export default {
limit: state.limit
}
console.log('search store getResults, params', params)
if (state.filters) {
console.log('getResults filters', state.filters)
params.filters = state.filters.join(',')
}
// console.log('Search getResults params', params)
const q = qs.stringify(params)
// * Qs.Stringify () Arrayformat: 'Repeat' : https://programmerall.com/article/31901061156/