brainvisa / brainvisa.github.io

Source of BrainVISA developers site
2 stars 2 forks source link

Search is broken on brainvisa.info #32

Closed ylep closed 3 years ago

ylep commented 3 years ago

The search leads to a 404 error on google.com

denisri commented 3 years ago

google has probably changed its search api... well, we need to look at it.

denisri commented 3 years ago

Yes it has visibly changed. It seems that we cannot any longer send a request on google/cse, but we need to create something (a "personalized search engine") on google servers before. I'm not sure to understand what it is before doing it...

denisri commented 3 years ago

Well, I'll do it anyway...

sapetnioc commented 3 years ago

We may use another search engine such as DuckDuckGo. For instance, searching for constellation in brainvisa.info site with !brainvisa.info constellation give the following URL : https://duckduckgo.com/?q=!brainvisa.info+constellation&t=h_&ia=web

denisri commented 3 years ago

OK let's go for duckduck, because I can't integrate the new google widget in our page layout and style (I can't avoid a line break and cannot force styles on every element).

denisri commented 3 years ago

It's fixed, but I did not know your procedure to update the web site so I messed a little bit. I finally used the web-build casa-distro on the web server + rsync -L, I hope it's OK.

sapetnioc commented 3 years ago

You are right, I did not share the procedure. I wrote a script for that : web-build/src/communication/web/bug_fix/scripts/bv_publish_web

sapetnioc commented 3 years ago

This scrip remove the directories it replaces. This is why we should not do any manual changes in brainvisa.info directory, it may be restored by a script.