forked from Inist-CNRS/ezark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcastor.config.js
88 lines (87 loc) · 2.26 KB
/
castor.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
'use strict'
module.exports = {
"browserifyModules" : [
"mongodb-querystring",
"heartbeats",
"async",
"vue",
"vue-validator",
"vue-resource",
"components/metrics",
"components/modal-generate",
"components/modal-addsubpub",
"components/form-resolve",
],
"rootURL" : "index.html",
"loaders": [
{
"script": "subpub.js",
"pattern" : '**/*.sp'
},
{
"script": "genark.js",
"pattern" : '**/*.ark'
}
],
"routes": [
"echo.js",
"status.js",
"generator.js",
"resolver.js",
"addsubpub.js",
"rest-crud.js"
],
"defaultColumns": {
"ark": {
"label" : "Archive Resource Key",
"scheme" : "http://purl.org/dc/terms/URI",
"type": "https://www.w3.org/TR/xmlschema-2/#string",
"get": "ark"
},
"range": {
"label" : "Sub publisher prefix",
"scheme" : "http://purl.org/dc/terms/isPartOf",
"type": "https://www.w3.org/TR/xmlschema-2/#string",
"get": "_table._wid",
"downcase": true
},
"batchID": {
"label" : "Batch ID",
"scheme" : "http://purl.org/dc/elements/1.1/source",
"type": "https://www.w3.org/TR/xmlschema-2/#string",
"get": "bundle"
}
},
"indexColumns" : {
"subpub" : {
"label" : "Sub publisher prefix",
"scheme" : "http://purl.org/dc/elements/1.1/identifier",
"type": "https://www.w3.org/TR/xmlschema-2/#string",
"get" : "_wid"
},
"title" : {
"label" : "Title",
"scheme" : "http://purl.org/dc/elements/1.1/title",
"type": "https://www.w3.org/TR/xmlschema-2/#string",
"get" : [
"_content.json.name",
"_content.json.subject"
],
"join" : "/"
},
"description" : {
"label" : "Description",
"scheme" : "http://purl.org/dc/terms/description",
"type": "https://www.w3.org/TR/xmlschema-2/#string",
"get" : "_content.json.description"
},
"target" : {
"label" : "Application URL",
"scheme" : "http://purl.org/dc/terms/provenance",
"type": "https://www.w3.org/TR/xmlschema-2/#anyURI",
"get" : "_content.json.target"
}
},
'allowedAltValues': ['csv', 'jsonld', 'jbj', 'xls', 'tsv', 'dry', 'raw']
};
module.exports.package = require('./package.json');