Remove unused item_status() function
[sitka/overdrive-evergreen-opac.git] / src / od_config_template.coffee
CommitLineData
8ebc3fff
SC
1# This file represents a template to write a configuration module for the
2# system.
3
4define [
5 'moment'
6], (M) ->
7
8 # Mapping between long name of home library and Overdrive authorization name
9 longname =
10 'long name one': 'name1'
11 'long name two': 'name2'
12
13 # Default configuration of date formats for Moment object;
14 # see http://devdocs.io/moment/index#customization-long-date-formats
15 M.lang 'en', longDateFormat:
16 LT: "h:mm A",
17 L: "MM/DD/YYYY",
18 LL: "MMMM Do YYYY",
19 LLL: "MMMM Do YYYY LT",
20 LLLL: "dddd, MMMM Do YYYY LT"
21
22 return {
23
24 # Define the credentials to use to get client authentication to the
25 # API. The text string is a combination of the client key and client
26 # secret combined in the method described in
27 # https://developer.overdrive.com/apis/client-auth, which can be
28 # expressed by the following function:
29 #
30 # OAuthFormat = (key, secret) -> CryptoJS.enc.Base64.stringify CryptoJS.enc.Utf8.parse "#{key}:#{secret}"
31 #
32 credentials: '' # Base64 encoded text string
33
34 # Define the credentials to use to get patron authentication, as described in
35 # https://developer.overdrive.com/apis/patron-auth
36 accountID: 4321
37 websiteID: 321
38
39 # Define the mapping function between long name and authorization name
40 authorizationname: (id) -> longname[id]
41
42 # Define whether a user password is required to complete patron authentication
43 password_required: 'false' # or 'true'
44 }