search: fix filtered output format

* Addresses issue with research and export that not accept the "ot"
  filter argument. (closes #2292)

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
You can shorten there 4 lines by: `ot = (request.values.get('ot', ctx.get('ot')) or '').split(',')`