summary logic and submission to search

each doctype shows one global summary with duplicates plus one summary
per label