elabftw / elabftw

:notebook: eLabFTW is the most popular open source electronic lab notebook for research labs.
https://www.elabftw.net
GNU Affero General Public License v3.0
1k stars 217 forks source link

Facilitate discoverability for open science projects #718

Closed mcoster closed 6 years ago

mcoster commented 6 years ago

Description of the problem

Feature request - facilitate discoverability for open science projects

Really appreciate the recent developments that have made eLabFTW suitable for open science projects, eg. Anonymous user. We would now like to make our eLabFTW notebook public experiments more discoverable. For example, if we google a compound identifier, like an InChIKey or Open Source Malaria compound number, we'd like our eLabFTW public experiments to show up in the results. Is this possible?

Informations

For git/zip installation method:

NicolasCARPi commented 6 years ago

Hello,

The first step would probably be to change the robots.txt file that for now is just forbidding access to bots to everything.

And that's probably the last step, too :)

I'll add a config option for that. In the mean time you can do that (works until container is restarted):

docker exec -it elabftw rm /elabftw/robots.txt

Then add your website to google, bing and yahoo.

mcoster commented 6 years ago

Thanks @NicolasCARPi - this sounds very easy to do! So, will Google, Bing, etc be able to crawl the public pages even though a human user would need to login as Anonymous user?

NicolasCARPi commented 6 years ago

Hmm yes you're right, it would not be able to because it would need to "fake login as anonymous" first…

This has to do with the "closed by default" design of the app. I'd need to add a way to remove completely the mandatory anonymous login. Like maybe a global "public notebook" flag that would be more lax for reading permissions.

mcoster commented 6 years ago

That would be perfect! Maybe all Public experiments are available without login and a GET query like

https://myelabftwurl.net/experiments.php?visibility=public

gives all public experiments?

NicolasCARPi commented 6 years ago

I think I'm onto something good. It might make it to 2.0.0 ;)

2018-07-27-012456_559x134_scrot

mcoster commented 6 years ago

That's fantastic! :) Will it be instance-wide, or could it be a per-team toggle?

NicolasCARPi commented 6 years ago

Well the thing with autologin, is that you have to be logged in in a team. So I was thinking of a sysadmin switch, also designating the team in wich the visitor will be logged in. So it will be instance wide but only for one team. The other teams can still have anonymous visitors, but they will need to go through the login page.

NicolasCARPi commented 6 years ago

Ok so here is what I have now:

2018-07-27-121439_1096x387_scrot

Now what I need to know is if this sounds good to you @mcoster or not. The limitation is that there is only one team that can have its experiments visible to search engines. Is that a big issue? I don't see a way around it. Because every team has its own world, anonymous visitor has to choose one (or be assigned one).

mcoster commented 6 years ago

This sounds perfect, thanks @NicolasCARPi :)

NicolasCARPi commented 6 years ago

Very good then :)