Public record search

Changes to add a "search within record" function to resources and digital objects in the public interface.

This ended up needing some reworking of the existing searches, so these changes touch the search helpers too.