Display a collection item's details and, if applicable, its EAD data. Also manage the state of the viewer which is used to show items which have thumbnails.
Dependencies:
| Name | Type | Description |
|---|---|---|
| searchFacets | Service which manages the UI-State and by extension the query string in the URL |
|
| configSeparated | Object containing the API URLs |
|
| currentEnvironment | What API URL configuration to use when making queries |
|
| keywordSearcher | Service which wraps search related API calls |
|
| $transitions | allows for registering hooks to preform action when certain UI-Router event occur |
|
| $rootScope | Universal parent scope for the app |
Methods
-
clNextResults
-
Manage infinite scrolling for the child list. Every API call retrieves 20 items. Every time this function is called it adds four elements to those shown. If there are no more elements in memory, then call the API again.
-
containerFinder
-
Determine labels for the Albers Boxes based on metadata.
-
convertToString (value)
-
Convert value to type string
Parameters:
Name Type Description value The value to be converted
Returns:
The string version of value
-
downloadPageChanger (direction)
-
Updates the thumbnail shown in the download section.
Parameters:
Name Type Description direction 'forward' will advance the shown thumbnail by 1. 'back' will retreat the shown image by one.
-
onDestroy
-
Clean up function called when a component is removed.
-
onInit
-
Initialization code run every time the component is created, used to setup variables and to retrieve data from API.
-
pageChanger (direction)
-
Updates the image shown in the viewer.
Parameters:
Name Type Description direction 'forward' will advance the shown thumbnail by 1. 'back' will retreat the shown image by one.
-
toggleRightsArea
-
Open or close the copyright information area.