Adjust loop and display logic for contents

Adjust extraction loop and search results display logic for bib
contents.

Signed-off-by: Jeff Godin <jgodin@tadl.org>