HIERARCHYM-4: Display documents from a list given by parameter

(cherry picked from commit da0c79633f098884127cf1eb803aee440aa0251a)