Silence websockets install echo
[sitka/sitka-tools.git] / overdrive-eg-opac / build / od_config_template.js
CommitLineData
7c653aa3
JD
1// Generated by CoffeeScript 1.8.0
2var __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
3
4define(['moment'], function(M) {
5 var longname;
6 M.lang('en', {
7 longDateFormat: {
8 LT: "h:mm A",
9 L: "MM/DD/YYYY",
10 LL: "MMMM Do YYYY",
11 LLL: "MMMM Do YYYY LT",
12 LLLL: "dddd, MMMM Do YYYY LT"
13 }
14 });
15 longname = {
16 'long name one': 'name1',
17 'long name two': 'name2'
18 };
19 return {
20 credentials: '',
21 accountID: 4321,
22 websiteID: 321,
23 authorizationname: function(id) {
24 return longname[id];
25 },
26 password_required: function(libraryname) {
27 var no_password;
28 no_password = ['long name one'];
29 if (__indexOf.call(no_password, libraryname) >= 0) {
30 return 'false';
31 } else {
32 return 'true';
33 }
34 },
35 baseURL: 'http://example.com/ContentDetails.htm',
36 productbaseURLs: ['elm.lib.overdrive.com'],
37 blacklisted: function(hn, bl) {
38 var v, _i, _len, _ref;
39 if (hn == null) {
40 hn = window.location.hostname;
41 }
42 if (bl == null) {
43 bl = ['abc', 'xyz'];
44 }
45 if (!(hn = (_ref = hn.match(/^(.+?)\./)) != null ? _ref[1] : void 0)) {
46 return;
47 }
48 if (!((bl != null ? bl.length : void 0) > 0)) {
49 return;
50 }
51 for (_i = 0, _len = bl.length; _i < _len; _i++) {
52 v = bl[_i];
53 if (v === hn) {
54 return true;
55 }
56 }
57 }
58 };
59});