learn-awesome / learn

A social network of lifelong learners built around humanity's universal learning map.
https://learnawesome.org/
Other
344 stars 41 forks source link

Intelligent selection for primary link #172

Open teampolyglot opened 4 years ago

teampolyglot commented 4 years ago

Currently, on the item page, one of the links is selected RANDOMLY and shown as a primary. This creates inconsistent / sub-optimal behavior. For eg, book pages sometimes show Amazon or GoodReads link as primary, when actually Wikipedia or OpenLibrary pages should be prioritized.

Check the implementation in Item#primary_link

BrittanyBunk commented 4 years ago

how come this is not a github issue on the OL repository? You have a valid concern. Idk why it's like this - but the OL uses Amazon for its book imports, so that might be why there. The other ones idk why they're there - as you're right - they do look like advertising - and gives the wrong message. I think they do it for partnerships, but I'm not an expert here.

teampolyglot commented 4 years ago

@BrittanyBunk This is an improvement for learnawesome's item pages like this, not OL's. :) LearnAwesome intends to be a good citizen of the Open Web ecosystem so it matters HOW we choose one of the links as primary. The random selection behaviour was a quick and dirty hack which now needs to be fixed.

tejpochiraju commented 3 years ago

For ranking/sorting links, would a reasonable approach be the following :

  1. Links from known "good" sites (whitelist based)
  2. Links from Youtube/Vimeo
  3. Links from .edu / .org
  4. Links from unknown sites
  5. Links from .com
  6. Links from known ecommerce sites