Renamed view function for clarity.
Corrected wrong ORM column mapping.
Added file downloading/viewing from AIP search.