commit e3ab3ab03e01684ff793ed59c5d7a90799cada57
parent 4233d2ebbdaa1832a67fd911c6aa351f011dc367
Author: Aurimas Vinckevicius <aurimas.dev@gmail.com>
Date: Fri, 5 Jun 2015 16:31:57 -0500
Add institutional author to sample test data
Diffstat:
6 files changed, 696 insertions(+), 35 deletions(-)
diff --git a/test/content/support.js b/test/content/support.js
@@ -293,6 +293,16 @@ function generateAllTypesAndFieldsData() {
lastName: typeName + 'Last'
});
}
+
+ // Also add a single-field mode author, which is valid for all types
+ let primaryCreatorType = Zotero.CreatorTypes.getName(
+ Zotero.CreatorTypes.getPrimaryIDForType(itemTypes[i].id)
+ );
+ creators.push({
+ creatorType: primaryCreatorType,
+ lastName: 'Institutional Author',
+ fieldMode: 1
+ });
}
return data;
@@ -315,8 +325,13 @@ function populateDBWithSampleData(data) {
let creators = item[itemField];
for (let i=0; i<creators.length; i++) {
let creator = new Zotero.Creator();
- creator.firstName = creators[i].firstName;
creator.lastName = creators[i].lastName;
+ if (creators[i].fieldMode) {
+ creator.fieldMode = creators[i].fieldMode;
+ } else {
+ creator.firstName = creators[i].firstName;
+ }
+
creator = Zotero.Creators.get(creator.save());
zItem.setCreator(i, creator, creators[i].creatorType);
diff --git a/test/tests/data/allTypesAndFields.js b/test/tests/data/allTypesAndFields.js
@@ -16,6 +16,11 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "artist",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -56,6 +61,11 @@
"creatorType": "wordsBy",
"firstName": "wordsByFirst",
"lastName": "wordsByLast"
+ },
+ {
+ "creatorType": "performer",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -94,6 +104,11 @@
"creatorType": "cosponsor",
"firstName": "cosponsorFirst",
"lastName": "cosponsorLast"
+ },
+ {
+ "creatorType": "sponsor",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -130,6 +145,11 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -175,6 +195,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -232,6 +257,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -272,6 +302,11 @@
"creatorType": "counsel",
"firstName": "counselFirst",
"lastName": "counselLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -305,6 +340,11 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "programmer",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -356,6 +396,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -406,6 +451,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -458,6 +508,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -489,6 +544,11 @@
"creatorType": "recipient",
"firstName": "recipientFirst",
"lastName": "recipientLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -532,6 +592,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -579,6 +644,11 @@
"creatorType": "scriptwriter",
"firstName": "scriptwriterFirst",
"lastName": "scriptwriterLast"
+ },
+ {
+ "creatorType": "director",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -608,6 +678,11 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -630,6 +705,11 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "contributor",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -667,6 +747,11 @@
"creatorType": "recipient",
"firstName": "recipientFirst",
"lastName": "recipientLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -704,6 +789,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "interviewee",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -750,6 +840,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -791,6 +886,11 @@
"creatorType": "recipient",
"firstName": "recipientFirst",
"lastName": "recipientLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -831,6 +931,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -868,6 +973,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -905,6 +1015,11 @@
"creatorType": "seriesEditor",
"firstName": "seriesEditorFirst",
"lastName": "seriesEditorLast"
+ },
+ {
+ "creatorType": "cartographer",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -950,6 +1065,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -988,6 +1108,11 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "inventor",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1025,6 +1150,11 @@
"creatorType": "guest",
"firstName": "guestFirst",
"lastName": "guestLast"
+ },
+ {
+ "creatorType": "podcaster",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"extra": "Extra",
@@ -1052,6 +1182,11 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "presenter",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1102,6 +1237,11 @@
"creatorType": "scriptwriter",
"firstName": "scriptwriterFirst",
"lastName": "scriptwriterLast"
+ },
+ {
+ "creatorType": "director",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1146,6 +1286,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1179,6 +1324,11 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1211,6 +1361,11 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1263,6 +1418,11 @@
"creatorType": "scriptwriter",
"firstName": "scriptwriterFirst",
"lastName": "scriptwriterLast"
+ },
+ {
+ "creatorType": "director",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1313,6 +1473,11 @@
"creatorType": "scriptwriter",
"firstName": "scriptwriterFirst",
"lastName": "scriptwriterLast"
+ },
+ {
+ "creatorType": "director",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1350,6 +1515,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
diff --git a/test/tests/data/citeProcJSExport.js b/test/tests/data/citeProcJSExport.js
@@ -17,7 +17,8 @@
{
"family": "artistLast",
"given": "artistFirst"
- }
+ },
+ {}
],
"call-number": "Call number",
"dimensions": "Artwork size",
@@ -58,7 +59,8 @@
{
"family": "performerLast",
"given": "performerFirst"
- }
+ },
+ {}
],
"call-number": "Call number",
"collection-title": "Series title",
@@ -108,7 +110,8 @@
{
"family": "sponsorLast",
"given": "sponsorFirst"
- }
+ },
+ {}
],
"authority": "Legislative body",
"chapter-number": "Session",
@@ -150,7 +153,8 @@
{
"family": "authorLast",
"given": "authorFirst"
- }
+ },
+ {}
],
"container-title": "Publication title",
"genre": "Type",
@@ -189,7 +193,8 @@
{
"family": "authorLast",
"given": "authorFirst"
- }
+ },
+ {}
],
"call-number": "Call number",
"collection-editor": [
@@ -255,7 +260,8 @@
{
"family": "authorLast",
"given": "authorFirst"
- }
+ },
+ {}
],
"call-number": "Call number",
"collection-editor": [
@@ -325,7 +331,8 @@
{
"family": "authorLast",
"given": "authorFirst"
- }
+ },
+ {}
],
"authority": "Court",
"container-title": "Reporter",
@@ -368,7 +375,8 @@
{
"family": "programmerLast",
"given": "programmerFirst"
- }
+ },
+ {}
],
"call-number": "Call number",
"collection-title": "Series title",
@@ -414,7 +422,8 @@
{
"family": "authorLast",
"given": "authorFirst"
- }
+ },
+ {}
],
"call-number": "Call number",
"collection-editor": [
@@ -479,7 +488,8 @@
{
"family": "authorLast",
"given": "authorFirst"
- }
+ },
+ {}
],
"call-number": "Call number",
"collection-editor": [
@@ -545,7 +555,8 @@
{
"family": "authorLast",
"given": "authorFirst"
- }
+ },
+ {}
],
"call-number": "Call number",
"editor": [
@@ -600,7 +611,8 @@
{
"family": "authorLast",
"given": "authorFirst"
- }
+ },
+ {}
],
"id": 48,
"issued": {
@@ -643,7 +655,8 @@
{
"family": "authorLast",
"given": "authorFirst"
- }
+ },
+ {}
],
"call-number": "Call number",
"collection-editor": [
@@ -709,7 +722,8 @@
{
"family": "directorLast",
"given": "directorFirst"
- }
+ },
+ {}
],
"call-number": "Call number",
"dimensions": "1:22:33",
@@ -749,7 +763,8 @@
{
"family": "authorLast",
"given": "authorFirst"
- }
+ },
+ {}
],
"container-title": "Publication title",
"genre": "Type",
@@ -785,7 +800,8 @@
{
"family": "contributorLast",
"given": "contributorFirst"
- }
+ },
+ {}
],
"authority": "Legislative body",
"chapter-number": "Session",
@@ -829,7 +845,8 @@
{
"family": "authorLast",
"given": "authorFirst"
- }
+ },
+ {}
],
"id": 53,
"issued": {
@@ -871,7 +888,8 @@
{
"family": "intervieweeLast",
"given": "intervieweeFirst"
- }
+ },
+ {}
],
"call-number": "Call number",
"id": 54,
@@ -924,7 +942,8 @@
{
"family": "authorLast",
"given": "authorFirst"
- }
+ },
+ {}
],
"call-number": "Call number",
"collection-title": "Series title",
@@ -986,7 +1005,8 @@
{
"family": "authorLast",
"given": "authorFirst"
- }
+ },
+ {}
],
"call-number": "Call number",
"genre": "Type",
@@ -1032,7 +1052,8 @@
{
"family": "authorLast",
"given": "authorFirst"
- }
+ },
+ {}
],
"call-number": "Call number",
"container-title": "Publication title",
@@ -1086,7 +1107,8 @@
{
"family": "authorLast",
"given": "authorFirst"
- }
+ },
+ {}
],
"call-number": "Call number",
"event-place": "Place",
@@ -1135,7 +1157,8 @@
{
"family": "cartographerLast",
"given": "cartographerFirst"
- }
+ },
+ {}
],
"call-number": "Call number",
"collection-editor": [
@@ -1187,7 +1210,8 @@
{
"family": "authorLast",
"given": "authorFirst"
- }
+ },
+ {}
],
"call-number": "Call number",
"container-title": "Publication title",
@@ -1241,7 +1265,8 @@
{
"family": "inventorLast",
"given": "inventorFirst"
- }
+ },
+ {}
],
"authority": "Issuing authority",
"call-number": "Application number",
@@ -1294,7 +1319,8 @@
{
"family": "podcasterLast",
"given": "podcasterFirst"
- }
+ },
+ {}
],
"collection-title": "Series title",
"dimensions": "1:22:33",
@@ -1323,7 +1349,8 @@
{
"family": "presenterLast",
"given": "presenterFirst"
- }
+ },
+ {}
],
"event": "Meeting name",
"event-place": "Place",
@@ -1363,7 +1390,8 @@
{
"family": "directorLast",
"given": "directorFirst"
- }
+ },
+ {}
],
"call-number": "Call number",
"container-title": "Publication title",
@@ -1408,7 +1436,8 @@
{
"family": "authorLast",
"given": "authorFirst"
- }
+ },
+ {}
],
"call-number": "Call number",
"collection-editor": [
@@ -1463,7 +1492,8 @@
{
"family": "authorLast",
"given": "authorFirst"
- }
+ },
+ {}
],
"chapter-number": "Session",
"container-title": "Code",
@@ -1506,7 +1536,8 @@
{
"family": "authorLast",
"given": "authorFirst"
- }
+ },
+ {}
],
"call-number": "Call number",
"event-place": "Place",
@@ -1549,7 +1580,8 @@
{
"family": "directorLast",
"given": "directorFirst"
- }
+ },
+ {}
],
"call-number": "Call number",
"container-title": "Publication title",
@@ -1595,7 +1627,8 @@
{
"family": "directorLast",
"given": "directorFirst"
- }
+ },
+ {}
],
"call-number": "Call number",
"collection-title": "Series title",
@@ -1639,7 +1672,8 @@
{
"family": "authorLast",
"given": "authorFirst"
- }
+ },
+ {}
],
"container-title": "Publication title",
"genre": "Type",
diff --git a/test/tests/data/itemJSON.js b/test/tests/data/itemJSON.js
@@ -18,6 +18,10 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "artist",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -65,6 +69,10 @@
"creatorType": "wordsBy",
"firstName": "wordsByFirst",
"lastName": "wordsByLast"
+ },
+ {
+ "creatorType": "performer",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -112,6 +120,10 @@
"creatorType": "cosponsor",
"firstName": "cosponsorFirst",
"lastName": "cosponsorLast"
+ },
+ {
+ "creatorType": "sponsor",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -153,6 +165,10 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -204,6 +220,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -269,6 +289,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -316,6 +340,10 @@
"creatorType": "counsel",
"firstName": "counselFirst",
"lastName": "counselLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"dateAdded": "2015-04-12T09:00:22Z",
@@ -356,6 +384,10 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "programmer",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -413,6 +445,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -470,6 +506,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -529,6 +569,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -567,6 +611,10 @@
"creatorType": "recipient",
"firstName": "recipientFirst",
"lastName": "recipientLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -617,6 +665,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -671,6 +723,10 @@
"creatorType": "scriptwriter",
"firstName": "scriptwriterFirst",
"lastName": "scriptwriterLast"
+ },
+ {
+ "creatorType": "director",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -707,6 +763,10 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -736,6 +796,10 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "contributor",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -780,6 +844,10 @@
"creatorType": "recipient",
"firstName": "recipientFirst",
"lastName": "recipientLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -824,6 +892,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "interviewee",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -877,6 +949,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -925,6 +1001,10 @@
"creatorType": "recipient",
"firstName": "recipientFirst",
"lastName": "recipientLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -972,6 +1052,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1016,6 +1100,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1060,6 +1148,10 @@
"creatorType": "seriesEditor",
"firstName": "seriesEditorFirst",
"lastName": "seriesEditorLast"
+ },
+ {
+ "creatorType": "cartographer",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1112,6 +1204,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1157,6 +1253,10 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "inventor",
+ "name": "Institutional Author"
}
],
"dateAdded": "2015-04-12T09:00:22Z",
@@ -1202,6 +1302,10 @@
"creatorType": "guest",
"firstName": "guestFirst",
"lastName": "guestLast"
+ },
+ {
+ "creatorType": "podcaster",
+ "name": "Institutional Author"
}
],
"dateAdded": "2015-04-12T09:00:22Z",
@@ -1235,6 +1339,10 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "presenter",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1293,6 +1401,10 @@
"creatorType": "scriptwriter",
"firstName": "scriptwriterFirst",
"lastName": "scriptwriterLast"
+ },
+ {
+ "creatorType": "director",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1343,6 +1455,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1383,6 +1499,10 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"dateAdded": "2015-04-12T09:00:22Z",
@@ -1422,6 +1542,10 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1481,6 +1605,10 @@
"creatorType": "scriptwriter",
"firstName": "scriptwriterFirst",
"lastName": "scriptwriterLast"
+ },
+ {
+ "creatorType": "director",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1538,6 +1666,10 @@
"creatorType": "scriptwriter",
"firstName": "scriptwriterFirst",
"lastName": "scriptwriterLast"
+ },
+ {
+ "creatorType": "director",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1582,6 +1714,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
diff --git a/test/tests/data/translatorExport.js b/test/tests/data/translatorExport.js
@@ -19,6 +19,10 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "artist",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -68,6 +72,10 @@
"creatorType": "wordsBy",
"firstName": "wordsByFirst",
"lastName": "wordsByLast"
+ },
+ {
+ "creatorType": "performer",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -117,6 +125,10 @@
"creatorType": "cosponsor",
"firstName": "cosponsorFirst",
"lastName": "cosponsorLast"
+ },
+ {
+ "creatorType": "sponsor",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -160,6 +172,10 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -213,6 +229,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -280,6 +300,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -329,6 +353,10 @@
"creatorType": "counsel",
"firstName": "counselFirst",
"lastName": "counselLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"dateAdded": "2015-04-12T05:45:15Z",
@@ -371,6 +399,10 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "programmer",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -430,6 +462,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -489,6 +525,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -550,6 +590,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -590,6 +634,10 @@
"creatorType": "recipient",
"firstName": "recipientFirst",
"lastName": "recipientLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -642,6 +690,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -698,6 +750,10 @@
"creatorType": "scriptwriter",
"firstName": "scriptwriterFirst",
"lastName": "scriptwriterLast"
+ },
+ {
+ "creatorType": "director",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -736,6 +792,10 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -767,6 +827,10 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "contributor",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -813,6 +877,10 @@
"creatorType": "recipient",
"firstName": "recipientFirst",
"lastName": "recipientLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -859,6 +927,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "interviewee",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -914,6 +986,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -964,6 +1040,10 @@
"creatorType": "recipient",
"firstName": "recipientFirst",
"lastName": "recipientLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1013,6 +1093,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1059,6 +1143,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1105,6 +1193,10 @@
"creatorType": "seriesEditor",
"firstName": "seriesEditorFirst",
"lastName": "seriesEditorLast"
+ },
+ {
+ "creatorType": "cartographer",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1159,6 +1251,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1206,6 +1302,10 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "inventor",
+ "name": "Institutional Author"
}
],
"dateAdded": "2015-04-12T05:45:15Z",
@@ -1253,6 +1353,10 @@
"creatorType": "guest",
"firstName": "guestFirst",
"lastName": "guestLast"
+ },
+ {
+ "creatorType": "podcaster",
+ "name": "Institutional Author"
}
],
"dateAdded": "2015-04-12T05:45:15Z",
@@ -1288,6 +1392,10 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "presenter",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1348,6 +1456,10 @@
"creatorType": "scriptwriter",
"firstName": "scriptwriterFirst",
"lastName": "scriptwriterLast"
+ },
+ {
+ "creatorType": "director",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1400,6 +1512,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1442,6 +1558,10 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"dateAdded": "2015-04-12T05:45:15Z",
@@ -1483,6 +1603,10 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1544,6 +1668,10 @@
"creatorType": "scriptwriter",
"firstName": "scriptwriterFirst",
"lastName": "scriptwriterLast"
+ },
+ {
+ "creatorType": "director",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1603,6 +1731,10 @@
"creatorType": "scriptwriter",
"firstName": "scriptwriterFirst",
"lastName": "scriptwriterLast"
+ },
+ {
+ "creatorType": "director",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1649,6 +1781,10 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "name": "Institutional Author"
}
],
"date": "1999-12-31",
diff --git a/test/tests/data/translatorExportLegacy.js b/test/tests/data/translatorExportLegacy.js
@@ -19,6 +19,11 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "artist",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -89,6 +94,11 @@
"creatorType": "wordsBy",
"firstName": "wordsByFirst",
"lastName": "wordsByLast"
+ },
+ {
+ "creatorType": "performer",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -166,6 +176,11 @@
"creatorType": "cosponsor",
"firstName": "cosponsorFirst",
"lastName": "cosponsorLast"
+ },
+ {
+ "creatorType": "sponsor",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -234,6 +249,11 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -305,6 +325,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -399,6 +424,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -477,6 +507,11 @@
"creatorType": "counsel",
"firstName": "counselFirst",
"lastName": "counselLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -544,6 +579,11 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "programmer",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -628,6 +668,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -715,6 +760,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -805,6 +855,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -864,6 +919,11 @@
"creatorType": "recipient",
"firstName": "recipientFirst",
"lastName": "recipientLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -931,6 +991,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1016,6 +1081,11 @@
"creatorType": "scriptwriter",
"firstName": "scriptwriterFirst",
"lastName": "scriptwriterLast"
+ },
+ {
+ "creatorType": "director",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1079,6 +1149,11 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1128,6 +1203,11 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "contributor",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1198,6 +1278,11 @@
"creatorType": "recipient",
"firstName": "recipientFirst",
"lastName": "recipientLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1258,6 +1343,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "interviewee",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1333,6 +1423,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1411,6 +1506,11 @@
"creatorType": "recipient",
"firstName": "recipientFirst",
"lastName": "recipientLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1480,6 +1580,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1549,6 +1654,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1617,6 +1727,11 @@
"creatorType": "seriesEditor",
"firstName": "seriesEditorFirst",
"lastName": "seriesEditorLast"
+ },
+ {
+ "creatorType": "cartographer",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1697,6 +1812,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1768,6 +1888,11 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "inventor",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1842,6 +1967,11 @@
"creatorType": "guest",
"firstName": "guestFirst",
"lastName": "guestLast"
+ },
+ {
+ "creatorType": "podcaster",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"dateAdded": "2015-04-26 06:40:48",
@@ -1896,6 +2026,11 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "presenter",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -1974,6 +2109,11 @@
"creatorType": "scriptwriter",
"firstName": "scriptwriterFirst",
"lastName": "scriptwriterLast"
+ },
+ {
+ "creatorType": "director",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -2054,6 +2194,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -2123,6 +2268,11 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -2188,6 +2338,11 @@
"creatorType": "contributor",
"firstName": "contributorFirst",
"lastName": "contributorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -2273,6 +2428,11 @@
"creatorType": "scriptwriter",
"firstName": "scriptwriterFirst",
"lastName": "scriptwriterLast"
+ },
+ {
+ "creatorType": "director",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -2360,6 +2520,11 @@
"creatorType": "scriptwriter",
"firstName": "scriptwriterFirst",
"lastName": "scriptwriterLast"
+ },
+ {
+ "creatorType": "director",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",
@@ -2434,6 +2599,11 @@
"creatorType": "translator",
"firstName": "translatorFirst",
"lastName": "translatorLast"
+ },
+ {
+ "creatorType": "author",
+ "fieldMode": 1,
+ "lastName": "Institutional Author"
}
],
"date": "1999-12-31",