Skip to content

Commit d33ad71

Browse files
committed
close #11
1 parent 13029fa commit d33ad71

12 files changed

Lines changed: 25 additions & 15 deletions

builds/bfe.dev.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,14 @@ bfe.define('src/bfe', ['require', 'exports', 'module', 'src/bfestore', 'src/bfel
419419
"paging": true,
420420
"ajax": {
421421
"url": config.url + "/verso/api/bfs",
422-
"dataSrc": ""
422+
"dataSrc": "",
423+
"headers": {
424+
'Access-Control-Allow-Origin': '*',
425+
'Content-Type':'application/json',
426+
'Access-Control-Allow-Methods': 'DELETE, HEAD, GET, OPTIONS, POST, PUT',
427+
'Access-Control-Allow-Headers': 'Content-Type, Content-Range, Content-Disposition, Content-Description',
428+
'Access-Control-Max-Age': '1728000'
429+
}
423430
},
424431
"columns": [{
425432
"data": "id"
@@ -835,7 +842,9 @@ bfe.define('src/bfe', ['require', 'exports', 'module', 'src/bfestore', 'src/bfel
835842
});
836843

837844
//eliminate itemOf
838-
bfeditor.bfestore.store = _.reject(bfeditor.bfestore.store, _.find(bfeditor.bfestore.store, {"p":"http://id.loc.gov/ontologies/bflc/itemOf"}));
845+
if(_.some(bfeditor.bfestore.store, {"p":"http://id.loc.gov/ontologies/bflc/itemOf"})){
846+
bfeditor.bfestore.store = _.reject(bfeditor.bfestore.store, _.find(bfeditor.bfestore.store, {"p":"http://id.loc.gov/ontologies/bflc/itemOf"}));
847+
}
839848

840849
// _.each(_.where(bfeditor.bfestore.store, {"p":"http://www.w3.org/1999/02/22-rdf-syntax-ns#type"}), function(triple) {
841850
// _.each(_.where(bfeditor.bfestore.store, {"s":triple.s, "p":"http://www.w3.org/1999/02/22-rdf-syntax-ns#type"}), function (typeTriple){

static/profiles/bibframe/BIBFRAME 2.0 Cartographic.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
"valueDataType": {}
145145
},
146146
"propertyURI": "http://id.loc.gov/ontologies/bibframe/contribution",
147-
"propertyLabel": "Contributor (RDA 19.3)",
147+
"propertyLabel": "Contribution (RDA 19.3 and 20.2)",
148148
"remark": "http://access.rdatoolkit.org/19.3.html"
149149
},
150150
{

static/profiles/bibframe/BIBFRAME 2.0 Language.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
"valueDataType": {
1717
"dataTypeURI": "http://id.loc.gov/ontologies/bibframe/Language"
1818
},
19-
"valueLanguage": ""
19+
"valueLanguage": "",
20+
"remark": ""
2021
},
21-
"propertyURI": "http://id.loc.gov/ontologies/bflc/target",
22+
"propertyURI": "http://www.w3.org/1999/02/22-rdf-syntax-ns#value",
2223
"propertyLabel": "Language of Expression (RDA 6.11)",
2324
"remark": "http://access.rdatoolkit.org/6.11.html"
2425
},
@@ -41,7 +42,7 @@
4142
],
4243
"resourceURI": "http://id.loc.gov/ontologies/bibframe/Language",
4344
"id": "profile:bf2:Language",
44-
"resourceLabel": "Language (unused)",
45+
"resourceLabel": "Language",
4546
"remark": ""
4647
},
4748
{

static/profiles/bibframe/BIBFRAME 2.0 Monograph.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
}
160160
},
161161
"propertyURI": "http://id.loc.gov/ontologies/bibframe/contribution",
162-
"propertyLabel": "Contributor (RDA 19.3 and 20.2)",
162+
"propertyLabel": "Contribution (RDA 19.3 and 20.2)",
163163
"remark": "http://access.rdatoolkit.org/19.3.html"
164164
},
165165
{

static/profiles/bibframe/BIBFRAME 2.0 Moving Image: 35mm Feature Film.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@
259259
"valueDataType": {}
260260
},
261261
"propertyURI": "http://id.loc.gov/ontologies/bibframe/contribution",
262-
"propertyLabel": "Contributor (RDA 19.3)",
262+
"propertyLabel": "Contribution (RDA 19.3 and 20.2)",
263263
"remark": "http://access.rdatoolkit.org/19.3.html"
264264
},
265265
{

static/profiles/bibframe/BIBFRAME 2.0 Moving Image: BluRay DVD.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
"valueDataType": {}
204204
},
205205
"propertyURI": "http://id.loc.gov/ontologies/bibframe/contribution",
206-
"propertyLabel": "Contributor (RDA 19.3)",
206+
"propertyLabel": "Contribution (RDA 19.3 and 20.2)",
207207
"remark": "http://access.rdatoolkit.org/19.3.html"
208208
},
209209
{

static/profiles/bibframe/BIBFRAME 2.0 Notated Music.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
"valueDataType": {}
220220
},
221221
"propertyURI": "http://id.loc.gov/ontologies/bibframe/contribution",
222-
"propertyLabel": "Contributor (RDA 19.3)",
222+
"propertyLabel": "Contribution (RDA 19.3 and 20.2)",
223223
"remark": "http://access.rdatoolkit.org/19.3.html"
224224
},
225225
{

static/profiles/bibframe/BIBFRAME 2.0 Rare Materials.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"valueDataType": {}
6969
},
7070
"propertyURI": "http://id.loc.gov/ontologies/bibframe/contribution",
71-
"propertyLabel": "Contributor (RDA 19.3)",
71+
"propertyLabel": "Contribution (RDA 19.3 and 20.2)",
7272
"remark": "http://access.rdatoolkit.org/19.3.html"
7373
},
7474
{

static/profiles/bibframe/BIBFRAME 2.0 Serial.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
"valueDataType": {}
162162
},
163163
"propertyURI": "http://id.loc.gov/ontologies/bibframe/contribution",
164-
"propertyLabel": "Contributor (RDA 19.3)",
164+
"propertyLabel": "Contribution (RDA 19.3 and 20.2)",
165165
"remark": "http://access.rdatoolkit.org/19.3.html"
166166
},
167167
{

static/profiles/bibframe/BIBFRAME 2.0 Sound Recording: Analog.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@
252252
"valueDataType": {}
253253
},
254254
"propertyURI": "http://id.loc.gov/ontologies/bibframe/contribution",
255-
"propertyLabel": "Contributor (RDA 19.3)",
255+
"propertyLabel": "Contribution (RDA 19.3 and 20.2)",
256256
"remark": "http://access.rdatoolkit.org/19.3.html"
257257
},
258258
{

0 commit comments

Comments
 (0)