diff --git a/src/components/RegisterCardNavigation.vue b/src/components/RegisterCardNavigation.vue index 0253c81..b4ffece 100644 --- a/src/components/RegisterCardNavigation.vue +++ b/src/components/RegisterCardNavigation.vue @@ -25,7 +25,7 @@

{{ mainLabel }}


Accéder aux ressources

-

Lien vers la salle de lecture virtuelle des AN : ici +

Lien vers la salle de lecture virtuelle des Archives nationales : ici

Lien vers le fac-similé du registre {{ volume }} : ici

diff --git a/src/components/RegisterNoSketchSearchBox.vue b/src/components/RegisterNoSketchSearchBox.vue index cfba884..7829490 100644 --- a/src/components/RegisterNoSketchSearchBox.vue +++ b/src/components/RegisterNoSketchSearchBox.vue @@ -46,7 +46,11 @@ export default { * @returns {string} */ _prepareNoSketchRequest() { - let cqlQuery = encodeURIComponent(`[word="${this.NoSketchTermSearch}"] within ="${this.yearRange[0]}") & (date<="${this.yearRange[1]}") />`); + let wordsSplitted = this.NoSketchTermSearch.split(" "); + let wordsPrepared = wordsSplitted.map(word => `[word="${word}"]`).join("") + // if wordsPrepared contains [word=""] then we remove all occurences be careful to Unnecessary escape character: \" + wordsPrepared = wordsPrepared.replace(/\[word=""]/g, ""); + let cqlQuery = encodeURIComponent(`${wordsPrepared} within ="${this.yearRange[0]}") & (date<="${this.yearRange[1]}") />`); let baseNoSketchUrl = `${this.noSketchService}#concordance`; let queryParams = `corpname=endp&tab=advanced&queryselector=cql&attrs=word&viewmode=kwic&attr_allpos=all&refs_up=0&shorten_refs=1&glue=1&gdexcnt=300&show_gdex_scores=0&itemsPerPage=20&structs=s%2Cg&refs=%3Ddoc.id&default_attr=word&cql=${cqlQuery}&showresults=1&showTBL=0&tbl_template=&gdexconf=&f_tab=basic&f_showrelfrq=1&f_showperc=0&f_showreldens=0&f_showreltt=0&c_custom=`; return `${baseNoSketchUrl}?${queryParams}`; diff --git a/vue.config.js b/vue.config.js index 427aced..f713e60 100644 --- a/vue.config.js +++ b/vue.config.js @@ -10,6 +10,6 @@ module.exports = { devServer: { port: 9091, }, - // publicPath: process.env.NODE_ENV === 'production' ? "/endp" : "/" - publicPath: process.env.NODE_ENV === 'production' ? "/" : "/" + publicPath: process.env.NODE_ENV === 'production' ? "/endp" : "/" + // publicPath: process.env.NODE_ENV === 'production' ? "/" : "/" } \ No newline at end of file