Link thumbnails to previews when applicable.
- Resolves VUFIND-923
- Thanks to Chris Hallberg for elegant JS solutions!