From 8c80b554d63dbf19ac6c883255b0e604757b20d8 Mon Sep 17 00:00:00 2001 From: Richard Mahn Date: Thu, 30 May 2024 20:28:32 -0600 Subject: [PATCH 1/4] Update RcObsTranslationNotes.jsx --- src/components/RcObsTranslationNotes.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/RcObsTranslationNotes.jsx b/src/components/RcObsTranslationNotes.jsx index 3b36544..7aff766 100644 --- a/src/components/RcObsTranslationNotes.jsx +++ b/src/components/RcObsTranslationNotes.jsx @@ -391,7 +391,7 @@ ${convertNoteFromMD2HTML(row.Note, bookId, 'front')} for (let storyIdx = 0; storyIdx < 50; storyIdx++) { const storyStr = String(storyIdx + 1); html += ` -
+

${obsData.stories[storyIdx].title}

`; if (tnTsvData?.[storyStr]?.['intro']) { From f7c0fe4640d3b2705fdd3ef9aef40c4d22b0cfe1 Mon Sep 17 00:00:00 2001 From: Richard Mahn Date: Thu, 30 May 2024 20:29:44 -0600 Subject: [PATCH 2/4] Update RcObsTranslationQuestions.jsx --- src/components/RcObsTranslationQuestions.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/RcObsTranslationQuestions.jsx b/src/components/RcObsTranslationQuestions.jsx index d40ebc7..0e2f0b7 100644 --- a/src/components/RcObsTranslationQuestions.jsx +++ b/src/components/RcObsTranslationQuestions.jsx @@ -313,15 +313,15 @@ export default function RcObsTranslationQuestions() { for (let storyIdx = 0; storyIdx < 50; storyIdx++) { const storyStr = String(storyIdx + 1); html += ` -
-

${obsData.stories[storyIdx].title}

+
+

${obsData.stories[storyIdx].title}

`; if (tqTsvData?.[storyStr]?.['intro']) { html += `
`; for (let row of tqTsvData[storyStr]['intro']) { - const link = `nav-${bookId}-${storyStr}-intro-${row.ID}`; + const link = `nav-obs-${storyStr}-intro-${row.ID}`; const article = `
${catalogEntry.title} :: Introduction @@ -337,7 +337,7 @@ export default function RcObsTranslationQuestions() { for (let frameIdx = 0; frameIdx < obsData.stories[storyIdx].frames.length; frameIdx++) { const frameStr = String(frameIdx + 1); - const frameLink = `nav-${bookId}-${storyStr}-${frameStr}`; + const frameLink = `nav-obs-${storyStr}-${frameStr}`; html += `

${storyStr}:${frameStr}

@@ -359,7 +359,7 @@ export default function RcObsTranslationQuestions() { if (tqTsvData?.[storyStr]?.[frameStr]) { for (let rowIdx in tqTsvData[storyStr][frameStr]) { const row = tqTsvData[storyStr][frameStr][rowIdx]; - const questionLink = `nav-${bookId}-${storyStr}-${frameStr}-${row.ID}`; + const questionLink = `nav-obs-${storyStr}-${frameStr}-${row.ID}`; if (row.Question) { let article = `
From 77f27a08908d3347ec3e21a0ae70925943f4e99c Mon Sep 17 00:00:00 2001 From: Richard Mahn Date: Thu, 30 May 2024 20:31:11 -0600 Subject: [PATCH 3/4] Update RcObsTranslationNotes.jsx --- src/components/RcObsTranslationNotes.jsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/RcObsTranslationNotes.jsx b/src/components/RcObsTranslationNotes.jsx index 7aff766..0b58824 100644 --- a/src/components/RcObsTranslationNotes.jsx +++ b/src/components/RcObsTranslationNotes.jsx @@ -333,7 +333,7 @@ export default function RcObsTranslationNotes() { title: file, body: `${resource.toUpperCase()} ARTICLE NOT FOUND`, rcLink, - anchor: `nav-${bookId}--${resource}-${file.replace(/\//g, '-')}`, + anchor: `nav-obs--${resource}-${file.replace(/\//g, '-')}`, }; const fileParts = file.split('/'); switch (resource) { @@ -364,8 +364,8 @@ export default function RcObsTranslationNotes() { const generateHtml = async () => { let html = ` -