officejs_support_request_ui: more flexible way of making preview link for attachments

Instead of expecting exactly actions with "preview" or "view" name, take any
action which name contains "preview" (or title is "Preview") or name is "view".

This makes it easier to include support request applications in different
applications, where the default actions might have a different name. This also
fixes the preview link for File portal type, because there was no "preview" or
"view" actions for File.
12 jobs for master
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-Master

passed ERP5.PerformanceTest-Master

failed ERP5.UnitTest-Master

02:13:21

failed ERP5.UnitTest-Master.Medusa

passed SlapOS.Eggs.UnitTest-Master.Python2

passed SlapOS.Eggs.UnitTest-Master.Python3

00:17:41

passed ERP5.CodingStyleTest-Master

failed ERP5.UnitTest-Master

passed SlapOS.Eggs.UnitTest-Master.Python2

00:23:56

passed SlapOS.Eggs.UnitTest-Master.Python2

passed SlapOS.Eggs.UnitTest-Master.Python3

passed SlapOS.Eggs.UnitTest-Master.Python3