When the Desitin Look and Feed is enable a search for e.g. levetiracetam http://ch.oddb.org/de/gcc/search/zone/drugs/search_query/levetiracetam/search_type/st_combined?#best_result it should return all desitin products at the top.
Also at the moment the original "Keppra 100 mg/mL" is not displayed at the top, but in the middle. Why?
Fixed an simple error in src/util/resultsort.rb
and made test/test_util/resultsort.rb
(which had 5 skipped tests) pass with the original test with commit Fix unit tests for resultsort
Now trying to add a unit test for my situation. Done. Pushed commit List desitin products first for Evidentia LnF
Pulled the changes and now all desitin products appear in the front when looking at http://desitin.oddb.org/de/desitin/search/zone/drugs/search_query/Levetiracetam/search_type/st_oddb?#best_result where at ch.oddb.org they still have the old order.
Fixed the unit-tests for the bsp_xml plugin via commit Fix unittest for unchange atc_class.
I think that the BAG-Preparation.xml has wrong entries for "Keppra 100 mg/mL". No, but inside oddb.org we have generic_type and sl_generic_type, which was not take into account properly inside result_sort.rb. Fixed with commit Desitin after original. Fix sorting of packges with only sl_generic_type
Also the client wanted to have the following order of found drugs: 1) original, 2) desitin, 3) other generics.