ontoportal-lirmm / goo

Graph Oriented Objects (GOO) for Ruby. A RDF/SPARQL based ORM.
http://ncbo.github.io/goo/
Other
0 stars 4 forks source link

Change the mainlang behavior to not return a nil if no lang found #8

Closed syphax-bouazzouni closed 2 years ago

syphax-bouazzouni commented 2 years ago

The new Algorithm

Exemple

If we set ["en", "fr"] in main_laguages config variable. We will except to have in order :

  1. Attribute values with "en" language tag and values with no language tags
  2. Otherwise we take values with "fr" language.
  3. Else take all values in the other languages
syphax-bouazzouni commented 2 years ago

Merged in https://github.com/ontoportal-lirmm/goo/commit/56fc95c3a9981e2467afe6f61ff466e5e550ed48 Feature branch https://github.com/ontoportal-lirmm/goo/tree/pl/add-mainlang-defaults-refactored