Source:detail-view.component.js

(function () {
    'use strict';
    /**
     * Component to display and manage the detail view for search results.
     * @namespace Component
     * @memberof mohistory
     */
    angular.module('mohistory').component('detailView', {
        templateUrl: 'app/components/detail-view/detail-view.component.html',
        controller: detailViewCtrl,
        controllerAs: 'detailView',
        bindings: {
            context: '<',
            items: '<',
            addFacet: '<',
            isFacetSelected: '<',
        }
    });
    detailViewCtrl.$inject = [];
    /**
     * Controller for the detail view component
     * @memberof mohistory
     * @name detailView
     * @ngdoc component
     */
    function detailViewCtrl() {
        var vm = this;
        /* ----- Variables ----- */
        vm.locationLookup = {
            'MHS': 'Society',
            'LRC': 'Library',
            'MHM': 'Museum',
            'SM': 'Memorial',
            'Off-Site': 'Off-Site',
        };
    }
})();