We do want this feature in the P5 branch too. See https://github.com/collective/collective.documentviewer/pull/63