re: #193 - Institutional objects with PDFs

* only adding data-record attribute to the a tag for objects with type = 'TEXT'
* adjusted js so that it only attempts to determine if a media file is a pdf when the data-record attribute is present in the a tag