Skip to content

Commit

Permalink
Updated the metadata URL to scribe web site
Browse files Browse the repository at this point in the history
  • Loading branch information
vipinpaul committed Jan 19, 2024
1 parent ded3ff4 commit 1dd75fe
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion renderer/src/components/Sync/Gitea/SyncFromGiteaUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export const importServerProject = async (updateBurrito, repo, sbData, auth, use
});
sbDataObject.idAuthorities = {
scribe: {
id: 'http://www.autographa.org',
id: 'http://www.scribe.bible',
name: {
en: 'Scribe application',
},
Expand Down
2 changes: 2 additions & 0 deletions renderer/src/core/burrito/createAudioSB.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ update,
json.identification.name.en = projectFields.projectName;
json.identification.abbreviation.en = projectFields.abbreviation;
json.languages[0].name.en = language;
// Adding the below line in 0.5.8 version, since the id in the previous versions is autographa.org
json.idAuthorities.scribe.id = 'http://www.scribe.bible';
if (call === 'edit' && project?.copyright?.shortStatements && (copyright.licence).length <= 500) {
json.copyright.shortStatements[0].statement = copyright.licence;
} else {
Expand Down
2 changes: 2 additions & 0 deletions renderer/src/core/burrito/createObsSB.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ update,
json.identification.name.en = projectFields.projectName;
json.identification.abbreviation.en = projectFields.abbreviation;
json.languages[0].name.en = language;
// Adding the below line in 0.5.8 version, since the id in the previous versions is autographa.org
json.idAuthorities.scribe.id = 'http://www.scribe.bible';
if (call === 'edit' && project?.copyright?.shortStatements && (copyright.licence).length <= 500) {
json.copyright.shortStatements[0].statement = copyright.licence;
} else {
Expand Down
2 changes: 2 additions & 0 deletions renderer/src/core/burrito/createTranslationSB.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ update,
json.identification.name.en = projectFields.projectName;
json.identification.abbreviation.en = projectFields.abbreviation;
json.languages[0].name.en = language;
// Adding the below line in 0.5.8 version, since the id in the previous versions is autographa.org
json.idAuthorities.scribe.id = 'http://www.scribe.bible';
if (call === 'edit' && project?.copyright?.shortStatements && (copyright.licence).length <= 500) {
json.copyright.shortStatements[0].statement = copyright.licence;
} else {
Expand Down
2 changes: 1 addition & 1 deletion renderer/src/core/burrito/importBurrito.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ const importBurrito = async (filePath, currentUser, updateBurritoVersion, concat
});
metadata.idAuthorities = {
scribe: {
id: 'http://www.autographa.org',
id: 'http://www.scribe.bible',
name: {
en: 'Scribe application',
},
Expand Down
2 changes: 2 additions & 0 deletions renderer/src/layouts/projects/Export/ExportProjectPopUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ export default function ExportProjectPopUp(props) {
logger.debug('ExportProjectPopUp.js', 'Updated Scripture burrito');
let data = fs.readFileSync(path.join(folder, 'metadata.json'), 'utf-8');
const sb = JSON.parse(data);
// Adding the below line in 0.5.8 version, since the id in the previous versions is autographa.org
sb.idAuthorities.scribe.id = 'http://www.scribe.bible';
if (!sb.copyright?.shortStatements && sb.copyright?.licenses) {
delete sb.copyright.publicDomain;
data = JSON.stringify(sb);
Expand Down
2 changes: 1 addition & 1 deletion renderer/src/lib/AudioBurritoTemplete.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"idAuthorities": {
"scribe": {
"id": "http://www.autographa.org",
"id": "http://www.scribe.bible",
"name": {
"en": "Scribe application"
}
Expand Down
2 changes: 1 addition & 1 deletion renderer/src/lib/BurritoTemplete.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"idAuthorities": {
"scribe": {
"id": "http://www.autographa.org",
"id": "http://www.scribe.bible",
"name": {
"en": "Scribe application"
}
Expand Down
2 changes: 1 addition & 1 deletion renderer/src/lib/OBSTemplete.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"idAuthorities": {
"scribe": {
"id": "http://www.autographa.org",
"id": "http://www.scribe.bible",
"name": {
"en": "Scribe application"
}
Expand Down

0 comments on commit 1dd75fe

Please sign in to comment.